Quantcast
Channel: Karthick P.K – SQLServerScribbles.COM
Viewing all 89 articles
Browse latest View live

Cannot bring the Windows Server Failover Clustering (WSFC) resource (ID ‘‘) online (Error code 5018).

$
0
0
Problem description You might get below error when configuring Always on availability group If the cluster services startup account is not part of SQL Server logins. Error: TITLE: Microsoft SQL Server Management Studio —————————— Creating availability group resulted in an error. (Microsoft.SqlServer.Management.HadrTasks) —————————— ADDITIONAL INFORMATION: Create failed for Availability Group ‘KK_AG’.  (Microsoft.SqlServer.Smo) For help, click: […]

SSIS package fails with out of memory errors

$
0
0
You might get below out of memory errors when you run SSIS packages  Errors A buffer failed while allocating n bytes. The system reports n percent memory load. There are n bytes of physical memory with n bytes free. There are 2147352576 bytes of virtual memory with 44814336 bytes free. The paging file has 687069143034 […]

Sp_rename fails : Either the parameter @objname is ambiguous or the claimed @objtype (object) is wrong.

$
0
0
Sp_rename fails with Msg 15248, Level 11, State 1, Procedure sp_rename, Line 357 Either the parameter @objname is ambiguous or the claimed @objtype (object) is wrong. You would get this error if you have ‘DOT’ in between your constraint name. SP_rename fails because object_id(ContraintnamewithDOT) returns NULL for constraint objects with DOT (.) in their name. […]

The selected Subscriber does not satisfy the minimum version compatibility level of the selected publication.

$
0
0
When you configure replication subscriber and if your subscriber instance is in higher version than publisher instance you might get below error Example when you configuring subscriber on SQL Server 2014 instance for SQL Server 2012 Publisher  using SQL Server 2012 SSMS you would get below error. Error: The selected Subscriber does not satisfy the […]

SQL Server setup fails with “Failed to retrieve data for this request”

$
0
0
  SQL Server setup would fail with below error in message box “Failed to retrieve data for this request” { TITLE: SQL Server Setup failure. —————————— SQL Server Setup has encountered the following error: Failed to retrieve data for this request.. For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&EvtType=0xE8A0C283%25400xAC7B1A58%25401233%254053 —————————— BUTTONS: OK } In Summary.txt you will notice error […]

Integration Services server cannot be configured because there are active operations. Wait until there are no active operations, and then try to configure the server again

$
0
0
SSISDB.internal.cleanup_server_log will fail with { Integration Services server cannot be configured because there are active operations. Wait until there are no active operations, and then try to configure the server again. } SSISDB.internal.cleanup_server_log will fail with below error { Integration Services server cannot be configured because there are active operations. Wait until there are no […]

How to audit SQLServer logins?

$
0
0
We can audit SQL Server logins using multiple ways like running a profiler, Logon triggers and creating a audit.   Below script will create a audit to capture the login events. We can capture the login in event logs or file. Below is example to capture login events in file.  Replace D:\Audit\ in below script […]

The specified credentials for the SQL Server service are not valid. To continue, provide a valid account and password for the SQL Server service."

$
0
0
When you install SQL 2008/SQL 2008R2/SQLServer2012 “The specified credentials for the SQL Server service are not valid. To continue, provide a valid account and password for the SQL Server service.” Even when you specify correct user name and password You will see errors similar to one below in details.txt   Slp: Sco.User.LookupADEntry – Attempting to […]

How to view xml plan as graphical execution plan

$
0
0
Do you want to look XML execution plan as graphical execution plan? It is simple save the xml plan with .sqlplan extension and then open with management studio. Similarly to view graphical plan as XML execution plan. Save the file with .XML extension or rename the existing graphical plan with .xml extension Filed under: SQLServer […]

Query to find SQL Server CPU utilization 2012.

$
0
0
Query to find SQL Server CPU utilization 2012. This query will help you to find the CPU utilization of server and SQL. If like to know the steps to bring down the SQL Server CPU utilization follow http://mssqlwiki.com/2012/10/04/troubleshooting-sql-server-high-cpu-usage/ Filed under: SQLServer engine, SQLServer general, SQLServer performance Tagged: CPU usage of SQL Server, SQL Server high […]

SQL Server integration services fails to start.

$
0
0
If SQL Server integration services fails to start. Create a backup of DTExec.exe.config and MsDtsSrvr.exe.config file  in   “C:\Program Files\Microsoft SQL Server\90\DTS\Binn” and add  <generatePublisherEvidence enabled=”false”/> under runtime tag and the start the SSIS service.     Here is an example DTExec.exe.config file for SSIS 2005: <configuration> <startup> <requiredRuntime version=”v2.0.50727″/> </startup> <runtime> <generatePublisherEvidence enabled=”false”/> </runtime> </configuration> […]

XP_readerrorlog fails with Failed to open loopback connection.

$
0
0
We might get below error when we open sqlserver errorlog in SSMS or using xp_readerrorlog or sp_readerrorlog { Msg 22004, Level 16, State 1, Line 0 Failed to open loopback connection. Please see event log for more information. Msg 22004, Level 16, State 1, Line 0 error log location not found } 1. If you […]

SQL Server assert in Location: purecall.cpp:51

$
0
0
SQL Server assert in purecall.cpp:51 BEGIN STACK DUMP: spid 231 Location: purecall.cpp:51 Expression: !”purecall” SPID: 200 Process ID: 5125 Description: Pure virtual function call Server Error: 17065, Severity: 16, State: 1. Server SQL Server Assertion: File: <purecall.cpp>, line = 51 Failed Assertion = ‘!”purecall”‘ Pure virtual function call. This error may be timing-related. If the […]

Builtin\Administrators cannot login in to SQL Server

$
0
0
  If you add a windows login to administrators group and even though administrators group is part of SQL Server login you may not be able to login in to SQL Server using the windows login. Similarly 1. You remove a windows login from a windows group and assume windows group is part of SQL […]

SQLServer LooksAlive and IsAlive Check

$
0
0
The resource DLL for the SQL Server service uses two functions that are used by MS Cluster service to check for availability of the SQL Server resource. A simple check LooksAlive and more rigorous check called IsAlive LooksAlive check: Cluster service calls looksAlive function every 5 seconds and LookAlive function Queries the service status by […]

Removing database mirroring

$
0
0
When you try to recover and open mirrored database using dbcc dbrecover([DBNAME]) You would get below error { Msg 7930, Level 20, State 1, Line 1 Mirroring must be removed from the database for this DBCC command. } When you try to recover and open the database using “restore database [DBNAME] with recovery” { Msg […]

SQL Server monitoring

$
0
0
Every SQL Server DBA would have faced situations similar to SQL Server not accepting connections for few minutes, SQL Server not responding for few minute or Applications not able to connect with SQL Server for few minutes. Before DBA’s gets alerted about the situation and starts troubleshooting the issue. Everything becomes normal. Challenge in this […]

How to stimulate a SQL Server resource failure in cluster

$
0
0
How to stimulate a SQL Server resource  failure in cluster? If you like to perform a check in SQL Server cluster to identify if the SQL Server resources are failing over properly follow the below steps. you can use Step 2 to create a SQL Server hang and deadlocked scheduler dump in standalone server as […]

SSIS package fails when executed as job using proxy account

$
0
0
Issue The SQL server Integration package which transfers the data from data source like excel to SQL Server database fails when executed from SQL Agent job using proxy account ERROR Date                      4/25/2013 4:16:34 PM Log                         Job History (SSISTest) Step ID                 1 Server                   Myserver\SQL2008STD Job Name                            SSISTest Step Name                         SSISJob1 Duration                              00:00:01 Sql Severity                        0 Sql […]

Bulk insert fails with error 4861 Cannot bulk load because the file could not be opened

$
0
0
When you do bulk insert in SQL Server it may fail with below error because of double hop . Error : Msg 4861, Level 16, State 1, Line 3 Cannot bulk load because the file “\\path\” could not be opened. Operating system error code 5(failed to retrieve text for this error. Reason: 15105). Steps to […]
Viewing all 89 articles
Browse latest View live


Latest Images