|
|
|
Say 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
|
|
|
|
|
SSC-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
|
|
|
|
|
Ten 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
|
|
|
|
|
Ten 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
|
|
|
|
|
Say 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
|
|
|
|