1

I'm receiving this error:

Msg 102, Level 15, State 1, Line 1 Incorrect syntax near '90'.

when i tried to compile this t-sql:

ALTER DATABASE SGCT SET compatibility_level = 90

Does anyone know why?

2
  • 2
    What is the SQL-Server Version u r working on ?? Commented Aug 25, 2015 at 8:27
  • I am Working On SQL Server 2005 Commented Aug 25, 2015 at 8:29

2 Answers 2

3

For SQL SERVER – 2005 try to use:

EXEC sp_dbcmptlevel AdventureWorks, 80;
GO

More details

Sign up to request clarification or add additional context in comments.

Comments

1

Sets certain database behaviors to be compatible with the specified version of SQL Server. You are already using 2005 and 90 is to set for 2005. If you need to do a backward COMPATIBILITY

You should try this.

ALTER DATABASE SGCT 
SET COMPATIBILITY_LEVEL = 80;
GO

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.