Quantcast
Channel: SQL Errors – SQLSERVERLEARNER
Browsing all 74 articles
Browse latest View live

Cannot grant, deny, or revoke permissions to sa, dbo, entity owner,...

Message: Cannot grant deny or revoke permissions to sa dbo entity owner information_schema sys or yourself. This message occurs when yoy try to revoke permissions for the following users: - yourself -...

View Article


Msg 229 Level 14 State 5 Procedure XXXXXX Line 1 The EXECUTE permission was...

Error Message: Msg 229, Level 14, State 5, Procedure test, Line 1 The EXECUTE permission was denied on the object ‘test’, database ‘AdventureWorksDW2008R2′, schema ‘dbo’. This error occurs when the...

View Article


Msg 297, Level 16, State 1, Line 1 The user does not have permission to...

Error Message: Msg 297, Level 16, State 1, Line 1 The user does not have permission to perform this action. Reason: This error occurs when the user does not have permission to execute a specific query....

View Article

Msg 15151 Level 16 State 1 Line 1 Cannot find the user ‘username’ because it...

Msg 15151, Level 16, State 1, Line 1 Cannot find the user ‘username’, because it does not exist or you do not have permission. Example: GRANT EXECUTE ON OBJECT::dbo.test to username Fix/resolution: -...

View Article

Msg 4606 Level 16 State 1 Line 1 Granted or revoked privilege SELECT is not...

Error Message: Msg 4606, Level 16, State 1, Line 1 Granted or revoked privilege SELECT is not compatible with object. This error occurs when you try to grant or revoke select permissions on stored...

View Article


Msg 7919, Level 16, State 3, Line 1 Repair statement not processed. Database...

Error Message: Msg 7919, Level 16, State 3, Line 1 Repair statement not processed. Database needs to be in single user mode. Example: DBCC CHECKDB('AdventureWorks', REPAIR_REBUILD) This error occurs...

View Article

sql server error 10061

Check if the SQL Server Service is running. Check the below link to for additional steps to solve this error: http://sqlserverlearner.com/2012/causes-for-network-related-errors-in-sql-server

View Article

SQL Server Error 10060

Check if the SQL Server Service is running. Check the below link to for additional steps to solve this error: http://sqlserverlearner.com/2012/causes-for-network-related-errors-in-sql-server

View Article


sql server error 15405

Error Message: Cannot use the special principal sa Cannot use the special principal dbo Fix/resolution: Try to change the db owner. Sample Script: exec sp_changedbowner 'sa','true'

View Article


Image may be NSFW.
Clik here to view.

SQL Server error 15195 – The MUST_CHANGE option is not supported by this...

Error Message: The MUST_CHANGE option is not supported by this version of Microsoft Windows. Fix/Resolution: If you are creating user using the UI then Uncheck User Must Change Password at Next Login...

View Article

Msg 15099 Level 16 State 1 Line 1 The MUST_CHANGE option cannot be used when...

Error Message: Msg 15099, Level 16, State 1, Line 1 The MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF. Fix/resolution: Add CHECK_EXPIRATION=ON TO the script or remove MUST_CHANGE from...

View Article

Msg 15122 Level 16 State 1 Line 1 The CHECK_EXPIRATION option cannot be used...

Error Message: Msg 15122, Level 16, State 1, Line 1 The CHECK_EXPIRATION option cannot be used when CHECK_POLICY is OFF. Fix/Resolution: Turn On CHECK_POLICY in the script or remove CHECK_EXPIRATION...

View Article

Msg 141, Level 15, State 1, Line 3 A SELECT statement that assigns a value to...

Error Message: Msg 141, Level 15, State 1, Line 3 A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations. Sample Query: DECLARE @I INT SELECT @I =...

View Article


Msg 10054, Level 20, State 0, Line 0

Error Message: .Net SqlClient Data Provider: Msg 10054, Level 20, State 0, Line 0 A transport-level error has occurred when sending the request to the server. (provider: TCP Provider, error: 0 – An...

View Article

A value for the parameter @retention cannot be specified when the job type is...

The Parameter @retention should NOT be supplied with a NOT NULL value when the value of @job_type is ‘capture’ The above code gives the below error. Msg 22995, Level 16, State 1, Procedure...

View Article


The column prefix ‘A’ does not match with a table name or alias name used in...

Error Message: Msg 107, Level 15, State 1, Line 1 The column prefix ‘A’ does not match with a table name or alias name used in the query. This error occurs when the correct table name/alias is not...

View Article

The select list for the INSERT statement contains fewer items than the insert...

Error Message: Msg 120, Level 15, State 1, Line 2 The select list for the INSERT statement contains fewer items than the insert list. The number of SELECT values must match the number of INSERT...

View Article


The select list for the INSERT statement contains more items than the insert...

Error Message: Msg 121, Level 15, State 1, Line 3 The select list for the INSERT statement contains more items than the insert list. The number of SELECT values must match the number of INSERT...

View Article

A TOP N value may not be negative

Error Message: Msg 127, Level 15, State 1, Line 1 A TOP N value may not be negative. This error occurs when you try to specify negative value for the TOP Clause in the select statement. Simple...

View Article

String or binary data would be truncated

Error Message: Msg 8152, Level 16, State 14, Line 4 String or binary data would be truncated. The statement has been terminated. Why this error? This error occurs whan the size of data that is...

View Article
Browsing all 74 articles
Browse latest View live