-----------------------------------------------------------
New Message on MumbaiUserGroup
-----------------------------------------------------------
From: Star_Venkat
Message 1 in Discussion
Compatibility Level:
It's used to govern the new features of sql server. It instructs the database
to react accordinly. Consider am having a SQL Server 2000 database which is
restored in SSMS(SQL Server Management Studio).
Right click the database properties and check the compatibility level in
options tab, a drop down lists out different compatibility levels like,
70 = SQL Server 7.0
80 = SQL Server 2000
90 = SQL Server 2005
We can select among the options like, if we want legacy support for some
queries or stored procedures we have to opt either Compatiblity level = 80 or
70.
Below is the query to retrieve the Compatibility Level of databases in a
server,
SELECT name, cmptlevel FROM master.dbo.sysdatabases
It output resembles like,
-----------------------
Name Cmptlevel
-----------------------
Master 90
MSDB 90
TempDB 90
Venkat 80
Model 90
------------------------
T-SQL Query to update the Compatibility level,
EXEC sp_dbcmptlevel AdventureWorks, 80;
Regards,
Venkatesan Prabu .J
Get More SQL Server Tips and Tricks from Blog:
http://venkattechnicalblog.blogspot.com/
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/MumbaiUserGroup/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member
Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you
received this message by mistake, please click the "Remove" link below. On the
pre-addressed e-mail message that opens, simply click "Send". Your e-mail
address will be deleted from this group's mailing list.
mailto:[EMAIL PROTECTED]