Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

SQL Server syntax error Expand / Collapse
Author
Message
Posted Wednesday, July 01, 2009 7:33 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679, Visits: 953
I'm receiving this error:
Msg 102, Level 15, State 1, Line 1
Incorrect syntax near '90'.

when i trie to compile this t-sql:

ALTER DATABASE SGCT SET compatibility_level = 90


Does anyone know why?

thank you,

Pedro
Post #745375
Posted Wednesday, July 01, 2009 7:38 AM


SSC-Addicted

SSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-AddictedSSC-Addicted

Group: General Forum Members
Last Login: Thursday, May 16, 2013 9:42 AM
Points: 446, Visits: 980
If this is SQL Server 2005 Try this:

USE [master]
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'Database_Name', @new_cmptlevel=90
GO
Post #745383
Posted Wednesday, July 01, 2009 7:39 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:07 AM
Points: 1,221, Visits: 2,614
The only thing that I can think of that would cause it may be a case sensativity issue. Try this and see if it works.


ALTER DATABASE [SGCT] SET COMPATIBILITY_LEVEL = 90


Ken Simmons
http://twitter.com/KenSimmons
Post #745386
Posted Wednesday, July 01, 2009 7:41 AM


Ten Centuries

Ten CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen CenturiesTen Centuries

Group: General Forum Members
Last Login: Thursday, May 09, 2013 8:07 AM
Points: 1,221, Visits: 2,614
Kenneth Langner Jr. (7/1/2009)
If this is SQL Server 2005 Try this:

USE [master]
GO
EXEC dbo.sp_dbcmptlevel @dbname=N'Database_Name', @new_cmptlevel=90
GO


That's right. I have been working with 2008 for too long.


Ken Simmons
http://twitter.com/KenSimmons
Post #745392
Posted Wednesday, July 01, 2009 8:43 AM
Say Hey Kid

Say Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey KidSay Hey Kid

Group: General Forum Members
Last Login: Tuesday, May 07, 2013 6:56 AM
Points: 679, Visits: 953
this :

EXEC dbo.sp_dbcmptlevel @dbname=N'Database_Name', @new_cmptlevel=90


resolved the question.

thank you
Post #745465
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse