Hi guys:
I have this line
declare @v varchar(max)
and I get this error
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'max'.
I'm using sql server 2005 and I have read I must set compatibility level at 90 but when I type this code
EXEC sp_dbcmptlevel 'MyBase', '90';
I get this
Msg 15416, Level 16, State 1, Procedure sp_dbcmptlevel, Line 92
Usage: sp_dbcmptlevel [dbname [, compatibilitylevel]]
Valid values of database compatibility level are 60, 65, 70, or 80.
What can I do?
Thanks!
I have this line
declare @v varchar(max)
and I get this error
Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'max'.
I'm using sql server 2005 and I have read I must set compatibility level at 90 but when I type this code
EXEC sp_dbcmptlevel 'MyBase', '90';
I get this
Msg 15416, Level 16, State 1, Procedure sp_dbcmptlevel, Line 92
Usage: sp_dbcmptlevel [dbname [, compatibilitylevel]]
Valid values of database compatibility level are 60, 65, 70, or 80.
What can I do?
Thanks!