Enable OPENROWSET
When you try to execute queries involving OPENROWSET on SQL Server you get the following error: SQL Server blocked access to STATEMENT ‘OpenRowset/OpenDatasource’ of component ‘Ad Hoc Distributed...
View ArticleThe media family on device is incorrectly formed. SQL Server cannot process...
When you try to restore a backup of the database you get the following error: The media family on device ” is incorrectly formed. SQL Server cannot process this media family. RESTORE HEADERONLY is...
View Articleenable xp_cmdshell on SQL Server
How to enable xp_cmdshell on SQL Server 2005/2008? If xp_cmdshell is disabled on SQL Server you get the following error: Query: EXEC xp_cmdshell 'dir' SQL Server blocked access to procedure...
View ArticleThere is insufficient system memory in resource pool ‘default’ to run this query
When you try to execute a query on SQL Server you get the error: There is insufficient system memory in resource pool ‘default’ to run this query. This memory problem would also occur in the following...
View ArticleMsg 2812, Level 16, State 62, Line 1 Could not find stored procedure ”
This error message occurs when SQL server interprets the text you have given as a stored procedure and cannot find a procedure with that name. Possible reasons: Summary: Syntax error in sql code,...
View Articlesql server error 18456 – Login failed for user
Microsoft sql server error 18456 – Login failed for the user When you try to connect to SQL Server you get the error 18456. Error Message: Cannot connect to Servername. ADDITIONAL INFORMATION: Login...
View Articlesql server error 26
microsoft sql server error 26 – Error Locating Server/Instance Specified This is an instance specific error.This error does not Occur for default instances.This occurs mainly as a result of missing...
View ArticleSQL Server Error Messages List
table.hovertable { font-family: verdana,arial,sans-serif; font-size:11px; color:#333333; border-width: 1px; border-color: #999999; border-collapse: collapse; } table.hovertable th {...
View Articlerestore higher version database backup on lower version sql server – restore...
when you try to resore higher version database backup of sql server on a lower version of sql server you get an error: The database was backed up on a server running version 10.50.1600. That version is...
View ArticleSQL Server Peculiar Issue – Error Converting Varchar to Bigint
Yesterday I had a chat with one of my friend who was having problem with his SQL Query. Ill just list down his Peculiar problem and the way we solved it in this blog post. It would be a good learning...
View ArticleVerify SQL Server Database Backup
Today I wanted to share on this blog a simple but yet very powerfull SQL Server command RESTORE VERIFYONLY. Syntax: RESTORE VERIFYONLY FROM DISK = '<<location of database backup>>' This...
View ArticleCauses For Network Related Errors in SQL Server
Following are the main reasons for network related errors in SQL Server. 1) Server/Instance name is wrong Fix: Check for the correct name of the Server/Instance and try to connect again 2) SQL Server...
View ArticleThe ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.
While using transactions in SQL Server sometimes you get the following errors: The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION. The COMMIT TRANSACTION request has no...
View Articlecannot drop database because it is currently in use
When you try to drop a database you get the below error: Msg 3702, Level 16, State 3, Line 1 Cannot drop database “DataBaseName” because it is currently in use. How to drop database when this error...
View ArticleMSG 1013 – The objects and in the FROM clause have the same exposed names
When you try to execute a SQL Query involving From clause you get the below error: Msg 1013, Level 16, State 1, Line 1 The objects “Table1″ and “Table1″ in the FROM clause have the same exposed names....
View Articlesql server cannot generate sspi context
fix for the error microsoft sql server cannot generate sspi context 1- Check if the system is up in the network. Telnet/Ping the server. 2- Check if the date/time match between the server and the...
View Articleprocedure has no parameters and arguments were supplied sql server
When you try to pass arguments to stored procedure which do not have parameters you get the below error: Msg 8146, Level 16, State 1, Procedure sp_helpsort, Line 0 Procedure sp_helpsort has no...
View ArticleAll queries combined using a UNION, INTERSECT or EXCEPT operator must have an...
Error: Msg 205, Level 16, State 1, Line 1 All queries combined using a UNION, INTERSECT or EXCEPT operator must have an equal number of expressions in their target lists. Reason: The select statements...
View ArticleCannot use the ROW granularity hint on the table because locking at the...
Error: Msg 651, Level 16, State 1, Line 1 Cannot use the ROW granularity hint on the table because locking at the specified granularity is inhibited. This error could occur due to creation of indexes...
View ArticleCannot use the PAGE granularity hint on the table because locking at the...
Error: Msg 651, Level 16, State 1, Line 1 Cannot use the PAGE granularity hint on the table [table name] because locking at the specified granularity is inhibited. This error could occur due to...
View Article