Hi team,
we are migration one server, i have login scripts,once we executing the login script in new server we are getting below error message :
Supplied parameter sid is in use.
how to drop the SID and how to fix this issue?
Hi team,
we are migration one server, i have login scripts,once we executing the login script in new server we are getting below error message :
Supplied parameter sid is in use.
how to drop the SID and how to fix this issue?
Hello,
I recenlty upgraded My SQL 2005 server to SQL 2012 SP1. The system_health in Extended Events is now continuously reporting the event listed below.
After upgrading to SQL 2012 SP1 I installed a second instance on the same server. This instance does not report the same event.
Any help would be welcome.
name: security_error_ring_buffer_recorded
timestamp:2012-12-20 15:37:22.0779695
id: 968697679
session_id: 84
error_code: 5023
api_name:ImpersonateSecurityContext
calling_api_name:NLShimImpersonate
call_stack: 0x0657506CF815306CDF88C26B4BC1956BE1C6956B9CCF956BEE39966BC8D4C26B4D05966B4EE60F6D7AEA0F6DABE80F6D41090E6D3E080E6D48060E6DA70B0E6D
I have gone through the related posts. However not found the answer to this problem.
Environment: -
Problem Summary: - We have multiple SQL maintenance plan scheduled on the server which is in question here. It appears to be running fine for few days after restart of the server and then suddenly start failing. It always fails while cleanup and also we start experiencing that the Error log file is also not opening under SSMS.
In event viewer: -"Exception happened when running extended stored procedure 'xp_delete_file' in the library 'xpstar.dll'. SQL Server is terminating process 277. Exception type: Win32 exception; Exception code: 0xc0000005."
As per my analysis: - This situation stops three XPs to execute - xp_delete_file, xp_enumerrorlogs and xp_readerrorlog.
Access Right: - I have tried this with SA.
SQL error log: -
SqlDumpExceptionHandler: Process 231 generated fatal exception c0000005 EXCEPTION_ACCESS_VIOLATION. SQL Server is terminating this process.What is a good way to find out if a view is updatable or not?
The following options I know but are not useful for me:
- try a update / insert statement: because I check all views existing in a unknown database
- look for check_option: there are updatable views with check off
- compare of create / modify date: modify date is also modified if an index is rebuild or if the view is changed even if it is not updateable - not really sure about it, but I think so
In sys.views I have not found a column with the information I ma looking for. I thought also about OBJECTPROPERTY, but I also have found nothing. Perhaps I have only not seen it ...
Hello,
I have two servers with Windows Server 2008 R2 and SQL Server 2012 Standard that were just setup about a week ago. Both SQL Server instances will randomly stop the service and become disabled. I have been reviewing the SQL Server Logs in C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log and I am not seeing any issues that would cause it.
Edit: I am figuring that it is not a coincidence that is happening to two different servers setup at the same time. One with Reporting Services and the other with Integration Services.
Here is the log file:
2013-05-16 15:15:07.55 Server Microsoft SQL Server 2012 (SP1) - 11.0.3000.0 (X64)
Oct 19 2012 13:38:57
Copyright (c) Microsoft Corporation
Standard Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1) (Hypervisor)
2013-05-16 15:15:07.55 Server (c) Microsoft Corporation.
2013-05-16 15:15:07.55 Server All rights reserved.
2013-05-16 15:15:07.55 Server Server process ID is 3380.
2013-05-16 15:15:07.55 Server System Manufacturer: 'VMware, Inc.', System Model: 'VMware Virtual Platform'.
2013-05-16 15:15:07.55 Server Authentication mode is WINDOWS-ONLY.
2013-05-16 15:15:07.55 Server Logging SQL Server messages in file 'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG'.
2013-05-16 15:15:07.55 Server The service account is '<Service Account>'. This is an informational message; no user action is required.
2013-05-16 15:15:07.55 Server Registry startup parameters:
-d C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\master.mdf
-e C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\ERRORLOG
-l C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\DATA\mastlog.ldf
2013-05-16 15:15:07.57 Server Command Line Startup Parameters:
-s "MSSQLSERVER"
2013-05-16 15:15:07.76 Server SQL Server detected 2 sockets with 2 cores per socket and 2 logical processors per socket, 4 total logical processors; using 4 logical processors based on SQL Server licensing. This is an informational
message; no user action is required.
2013-05-16 15:15:07.76 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2013-05-16 15:15:07.76 Server Detected 8191 MB of RAM. This is an informational message; no user action is required.
2013-05-16 15:15:07.76 Server Using conventional memory in the memory manager.
2013-05-16 15:15:07.79 Server Error: 8319, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server Windows kernel object 'Global\SQL_110_MEMOBJ_24_MSSQLSERVER_0' already exists. It's not owned by the SQL Server service account. SQL Server performance counters are disabled.
2013-05-16 15:15:07.79 Server Error: 3409, Severity: 16, State: 1.
2013-05-16 15:15:07.79 Server Performance counter shared memory setup failed with error -1. Reinstall sqlctr.ini for this instance, and ensure that the instance login account has correct registry permissions.
2013-05-16 15:15:07.82 Server Perfmon counters for resource governor pools and groups failed to initialize and are disabled.
2013-05-16 15:15:07.83 Server This instance of SQL Server last reported using a process ID of 1740 at 5/16/2013 3:15:02 PM (local) 5/16/2013 8:15:02 PM (UTC). This is an informational message only; no user action is required.
2013-05-16 15:15:07.83 Server Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational
message only. No user action is required.
2013-05-16 15:15:07.84 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2013-05-16 15:15:07.85 Server Software Usage Metrics is disabled.
2013-05-16 15:15:07.85 spid5s Starting up database 'master'.
2013-05-16 15:15:07.94 Server CLR version v4.0.30319 loaded.
2013-05-16 15:15:07.98 Server Common language runtime (CLR) functionality initialized using CLR version v4.0.30319 from C:\Windows\Microsoft.NET\Framework64\v4.0.30319\.
2013-05-16 15:15:08.70 spid5s SQL Server Audit is starting the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.70 spid5s SQL Server Audit has started the audits. This is an informational message. No user action is required.
2013-05-16 15:15:08.76 spid5s SQL Trace ID 1 was started by login "sa".
2013-05-16 15:15:08.79 spid5s Server name is '<Server Name>'. This is an informational message only. No user action is required.
2013-05-16 15:15:08.81 spid5s Failed to verify Authenticode signature on DLL 'c:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Binn\ftimport.dll'.
2013-05-16 15:15:08.81 spid13s Starting up database 'msdb'.
2013-05-16 15:15:08.81 spid16s Starting up database 'red'.
2013-05-16 15:15:08.81 spid9s Starting up database 'mssqlsystemresource'.
2013-05-16 15:15:08.82 spid17s Starting up database 'SSISDB'.
2013-05-16 15:15:08.83 spid9s The resource database build version is 11.00.3000. This is an informational message only. No user action is required.
2013-05-16 15:15:09.02 spid12s A self-generated certificate was successfully loaded for encryption.
2013-05-16 15:15:09.02 spid12s Server is listening on [ 'any' <ipv6> 1433].
2013-05-16 15:15:09.03 spid12s Server is listening on [ 'any' <ipv4> 1433].
2013-05-16 15:15:09.03 spid12s Server local connection provider is ready to accept connection on [ ].
2013-05-16 15:15:09.03 spid12s Server local connection provider is ready to accept connection on [ ].
2013-05-16 15:15:09.03 Server Server is listening on [ ::1 <ipv6> 1434].
2013-05-16 15:15:09.03 Server Server is listening on [ 127.0.0.1 <ipv4> 1434].
2013-05-16 15:15:09.03 Server Dedicated admin connection support was established for listening locally on port 1434.
2013-05-16 15:15:09.04 Server SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This
is an informational message. No user action is required.
2013-05-16 15:15:09.04 spid12s SQL Server is now ready for client connections. This is an informational message; no user action is required.
2013-05-16 15:15:09.07 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/ ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure to
register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2013-05-16 15:15:09.07 Server The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc<FQDN>/:1433 ] for the SQL Server service. Windows return code: 0x2098, state: 15. Failure
to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually
registered.
2013-05-16 15:15:09.58 spid9s Starting up database 'model'.
2013-05-16 15:15:09.74 spid9s Clearing tempdb database.
2013-05-16 15:15:10.00 spid9s Starting up database 'tempdb'.
2013-05-16 15:15:10.12 spid18s The Service Broker endpoint is in disabled or stopped state.
2013-05-16 15:15:10.12 spid18s The Database Mirroring endpoint is in disabled or stopped state.
2013-05-16 15:15:10.13 spid18s Service Broker manager has started.
2013-05-16 15:15:10.27 spid16s CHECKDB for database 'red' finished without errors on 2013-05-16 10:03:37.250 (local time). This is an informational message only; no user action is required.
2013-05-16 15:15:10.28 spid5s Recovery is complete. This is an informational message only. No user action is required.
2013-05-16 15:15:10.32 spid5s Launched startup procedure 'sp_ssis_startup'.
2013-05-16 15:15:11.08 spid16s AppDomain 2 (SSISDB.dbo[runtime].1) created.
2013-05-16 15:15:11.25 spid16s Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:11.29 spid16s Unsafe assembly 'microsoft.sqlserver.integrationservices.server, version=11.0.0.0, culture=neutral, publickeytoken=89845dcd8080cc91, processorarchitecture=msil' loaded into appdomain 2 (SSISDB.dbo[runtime].1).
2013-05-16 15:15:48.03 spid52 Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.03 spid52 Configuration option 'Agent XPs' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.04 spid52 Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-16 15:15:48.51 spid52 Attempting to load library 'xpsqlbot.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.52 spid52 Using 'xpsqlbot.dll' version '2011.110.2100' to execute extended stored procedure 'xp_qv'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.66 spid52 Attempting to load library 'xpstar.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.68 spid52 Using 'xpstar.dll' version '2011.110.3000' to execute extended stored procedure 'xp_instance_regread'. This is an informational message only; no user action is required.
2013-05-16 15:15:48.80 spid52 Attempting to load library 'xplog70.dll' into memory. This is an informational message only. No user action is required.
2013-05-16 15:15:48.81 spid52 Using 'xplog70.dll' version '2011.110.2100' to execute extended stored procedure 'xp_msver'. This is an informational message only; no user action is required.
2013-05-16 15:17:21.23 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.23 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.23 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'model'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.54 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.54 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'red'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 15:17:21.62 Logon Error: 18456, Severity: 14, State: 38.
2013-05-16 15:17:21.62 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-16 23:47:21.20 Logon Login failed for user 'NT AUTHORITY\SYSTEM'. Reason: Failed to open the explicitly specified database 'SSISDB'. [CLIENT: <IP Address>]
2013-05-17 00:00:13.38 spid24s This instance of SQL Server has been using a process ID of 3380 since 5/16/2013 3:15:10 PM (local) 5/16/2013 8:15:10 PM (UTC). This is an informational message only; no user action is required.
2013-05-17 00:01:34.28 spid51 Configuration option 'show advanced options' changed from 0 to 1. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.37 spid51 Configuration option 'Agent XPs' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:34.38 spid51 Configuration option 'show advanced options' changed from 1 to 0. Run the RECONFIGURE statement to install.
2013-05-17 00:01:35.94 spid18s Service Broker manager has shut down.
2013-05-17 00:01:36.09 spid5s .NET Framework runtime has been stopped.
2013-05-17 00:01:37.09 spid5s SQL Server is terminating in response to a 'stop' request from Service Control Manager. This is an informational message only. No user action is required.
2013-05-17 00:01:37.09 spid5s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
I have also reviewed the Event Viewer and I see three entries one for disabling MSSQLSERVER, stopping SQL Server Agent, and one for stopping the SQL Server service. I do not see that any specific user information associated with the event.
System
Provider
[ Name] Service Control Manager
[ Guid] {555908d1-a6d7-4695-8e1e-26931d2012f4}
[ EventSourceName] Service Control Manager
EventID 7040
[ Qualifiers] 16384
Version 0
Level 4
Task 0
Opcode 0
Keywords 0x8080000000000000
TimeCreated
[ SystemTime] 2013-05-17T05:01:32.109975600Z
EventRecordID 3733
Correlation
Execution
[ ProcessID] 620
[ ThreadID] 2600
Channel System
Computer <FQDN>
Security
[ UserID] S-1-5-18
EventData
param1 SQL Server (MSSQLSERVER)
param2 auto start
param3 disabled
param4 MSSQLSERVER
Our servers do have System Center Operations Manager 2012 installed if that makes a difference. I am not sure what else I can check to see if I can find the cause of the problem. Any assistance would be appreciated.
I have a procedure that returns several results. One of which has a column with a long string, but I am trimming it to 300 characters.
Regardless, when the email is received, the attached file contains the query results.
The one resultset with the long strings doesnt look right. It is wrapping within the column, and this throws off the other columns and their headers.
I want it all on one line, no wrapping.
How can I force that one column not to wrap its text
What setting or parameter value should I look at?
USE msdb EXEC sp_send_dbmail @profile_name = 'DevSQL', @recipients = 'me@somewhere.com', @subject = 'my report', @body = 'my report', @query_result_header=1, @execute_query_database = 'DBdev', @attach_query_result_as_file = 1, @query_attachment_filename = 'MyReport.rpt', @query_result_width = 4000, @query = 'EXEC Myprocedure'
Hi! I'm making a small research on how system date time change may influence on correct behavior of windows services.
Actually i need to do some trick in my .Net application on server to make it execute a certain important procedure in the context of time that differs from current (correct) system time. The only way i see is to change system time for a while, execute the procedure, and change date and time back =)
The server (Windows Server 2008R2) is running SQL server 2008 R2 and SharePoint server 2010. So i want to understand what potential problems it can cause in work environment.
Jo Lee
My question relates to what happens when you have to rollback the VM.
If all your databases are on a SAN and the SQL Server is on a VM, but you rollback your VM, won't the state of SQL and the state of the databases now not match? The databases aren't rolled back since they are separate.
I think that was the root cause of a suspect database and DBCC CheckDB reporting errors on other databases, but I want to find documentation on this kind of issue.
Hi team ,
we are configured log shipping primary and secondary both server are 2005 enterprise edition, but monitor server is 2008 enterprise edition, it can be working or not???
We are in US using code page 437 (chcp at command prompt returns 437). We have a 3rd party accounting platform with back-end SQL database that we recently migrated from SQL 2005 to 2008 R2. After changing compatibility level to 100, the vendor required us to change collation (using vendor supplied scripting packaged as an executable) from the SQL default to SQL_Latin1_General_Cp850_BIN.
Now, after collation change, in the vendor platform client program the euro symbol displays as a ? instead of €
The vendor says this is a "known MSS issue" but I can't find anything to indicate this except way back with SQL 2000 and 850 not yet supporting the euro symbol.
Can anybody tell me why this might be happening? (I am not an SQL professional)
Thanks,
Joan
Hi! all,
I need to migrate a database with extended store procedures from SQL 2005 64 bit EE to SQL Server 2008 R2 EE, the targuet os is Windows 2008 R2 EE.
I went trought the http://msdn.microsoft.com/en-us/library/ms164653(v=sql.90).aspx when I call a extended store procedure inside the dll é get :
Msg 17750, Level 16, State 0, Procedure xp_fmove, Line 1
Could not load the DLL R:\X_SP\xp_sgt_64.dll, or one of the DLLs it references. Reason: 14001(failed to retrieve text for this error. Reason: 15105).
Am i doing any thing wrong ?
Please assist me to fix the problem.
Best regards.
We have a table that has around 500 rows.
I ran DELETE FROM Table WHERE PKID = 1 and the query ran for over 5 minutes before I finally killed it.
I backed up the database and restored to another server, same issue.
After I dropped all the FK constraints and dropped the table itself, I created an exact duplicate an reloaded with the same data and I was then able to delete the row.
I checked the FK constraints and verified they did not have cascade update or deletes (they were set to NO ACTION).
When the DELETE query ran in Activity Monitor I would see wait types of PAGEIOLATCH_SH and CXPacket which swap around for suspended.
The CPU spikes to around 40%.
As for parallelism, I tried setting it to 1 (vs the default of 0) for Max Degree of Parallelism.
After setting it to 1 and trying again, no change (still ran for a while and I killed it).
I am uncertain as to what is causing this.
As I have a backup of the database and I can replicate this issue by restoring it and trying again to delete a row I'd really like to investigate this and understand the root cause.
Thoughts/suggestions/ideas?
This is SQL Server 2008 (not R2)
SQL 2005 Enterprise
Even if I logon as Administrator and try to backup any of my databases to local partitions, I get this error below. I have been operating fine up until this point and doing backups all the time. As far as I know, and after checking, no permissions have changed and of course Administrator has ntfs permissions to my local C and other partitions on this server:
TITLE: Microsoft SQL Server Management Studio
------------------------------
Backup failed for Server 'servername'. (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
System.Data.SqlClient.SqlError: Cannot open backup device 'F:\foldername'. Operating system error 5(Access is denied.). (Microsoft.SqlServer.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.1399.00&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
In the Event log for Windows Server 2003 I see this:
Event Type: Error
Event Source: DCOM
Event Category: None
Event ID: 10016
Date: 3/6/2006
Time: 3:35:06 PM
User: NT AUTHORITY\NETWORK SERVICE
Computer: servername
Description:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Hi there,
Got an issue with a transactio log that was initially set to 1,275,880 mb. Huge since the db is only about 6.5 gb.
The problem is that the disk is out of space and the log is full.
I'm familiar with shrinking the log, but since I have no space on the server, I was going to back the log to another server via SMB. However, since the file is well over a TB, I'm afraid that network perfomance might be an issue.
I wanted to detach and reatach without the log, but since it's full, no dice.
Was wondering if there was something else that I might be able to do.
Thanks!
Justin
CPU time = 47 ms, elapsed time = 1692 ms.
Edward R. Joell MCSD MCDBA
Hi Friends,
using sql powershell script how to store files from network location.Can anyone help me on same.
Thanks,
Tiru
tirupal
We are seeing a huge performance hit with a query that uses the IS_MEMBER function to make sure the current login is part of an specific set of groups in AD.
When we run the code containing the IS_MEMBER function, the query runs in 02:06 minutes.
When the IS_MEMBER piece of code is removed, without checking for the group information, the query runs in 1 second.
While observing the query running for over 2 minutes, I see most of time being spent on the following WAIT STATS:
PREEMPTIVE_OS_LOOKUPACCOUNTSID
PREEMPTIVE_OS_AUTHORIZATIONOPS
These are not well documented WAIT STATS. It seems that only Paul Randal has some information on them.
About my environment:
SQL Server 2012 with AlwaysOn Enabled. This query runs in one of the AlwaysOn Replicas.
For troubleshooting purposes we ran this on the principal as well, and we're still having the same performance.
Are you guys familiar with any issues with that function?
Would the ADSI link work better than the IS_MEMBER function?
Anywhere you guys could point me to?
--- Best Regards, Igor Santos Twitter: @sqlsantos Blog: sqlsantos.wordpress.com
Hello at all,
I have a win2003 server with sql2005 exp with 4 instance. Now I can remove a one of these istances but the add/remove procedure faill and this instance can not uninstall. I would like to tray to remove it manually butI want to besure that I notcreateproblemsover the other
3instances.
Can you suggestthe bestprocedure for themanual removalof an instancewithout beinginvolvedthe other
Thanks a lot