I have a stored procedure where i change DB properties . It uses ALTER DATABASE CURRENT in the script. But i found that this works fine in 2012 MSSQL version , but gives an exception in the older version. How to solve this problem ?
sample Script content:
ALTER DATABASE CURRENT SET ANSI_PADDING OFF
GO
Error:
Incorrect syntax near the keyword CURRENT