Compatibility Script for Stored Procedures and Views | Database Journal

Compatibility Script for Stored Procedures and Views

Mar 31, 2008
1 minute read

I developed this script because I couldn’t find a good tool to determine if our company’s custom applications’ stored procedures and views were going to be SQLS2K-compatible. It does a brute-force text search of syscomments for syntax that may be unsupported/deprecated in SQLS2K such as: unsupported config options, unsupported sp’s, unsupported systables, etc. The script does not check schema or table information.

It uses cursors and will search against all databases found in master (except FoodMart, Northwind, etc; more can be excluded) so best to run off hours. Some syntax can not be programmatically (read: easily) searched for so it’s still best to do a full analysis of your applications before upgrade. But hopefully this will give you a good idea where your apps stand.

It was developed in 2000 and tested to work in 7.0. Version 6.5 has not been tested. Almost all the information came from the “Upgrade to SQL Server 2000” Whitepaper from MS: http://www.microsoft.com/sql/howtobuy/Upgrade_to_SQL_Server_2000.doc.

Author: Erik Pearson

Download Script:
SqlServer2000_compatibility.txt



Disclaimer:
We hope that the information on these script pages is
valuable to you. Your use of the information contained in these pages,
however, is at your sole risk. All information on these pages is provided
“as -is”, without any warranty, whether express or implied, of its accuracy,
completeness, or fitness for a particular purpose…

Disclaimer Continued

Back to Database Journal Home

Database Journal Logo

DatabaseJournal.com publishes relevant, up-to-date and pragmatic articles on the use of database hardware and management tools and serves as a forum for professional knowledge about proprietary, open source and cloud-based databases--foundational technology for all IT systems. We publish insightful articles about new products, best practices and trends; readers help each other out on various database questions and problems. Database management systems (DBMS) and database security processes are also key areas of focus at DatabaseJournal.com.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.