Microsoft Knowledge Base Email Alertz

(209643) - This article describes how to find the version of catalog stored procedures in Microsoft SQL Server.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 209643 - Last Review: January 26, 2005 - Revision: 2.1

ACC2000: How to Determine the Version of Catalog Stored Procedures

This article was previously published under Q209643
Advanced: Requires expert coding, interoperability, and multiuser skills.

This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).

On This Page

SUMMARY

This article describes how to find the version of catalog stored procedures in Microsoft SQL Server.

MORE INFORMATION

There are situations in which you need to know the version of a stored procedure, such as when you are experiencing difficulties attaching to a SQL Server database. Method 1 uses the Query Analyzer in SQL Server to obtain a version number. Method 2 uses an attached table in Microsoft Access.

Method 1

Using the Query Analyzer, log on to SQL Server with a userID and password; using the SQL administrator's login ID (SA) is ideal, but it is not always readily available. After you log on, open the query window and issue the command USE MASTER. This action tells SQL Server to use the Master database that contains the system tables. To determine a version, type the following SQL command:
   USE MASTER
   GO
   SELECT Attribute_Value FROM Spt_Server_Info WHERE Attribute_ID = 500
				
NOTE: If you are using a version of the SQL Server earlier than version 4.2, substitute "MsServer_Info" for "Spt_Server_Info."

Method 2

In a situation where you can successfully link (attach) SQL Server data, you can link the Spt_Server_Info table from the Master database to a Microsoft Access database, and then create a query to retrieve the Attribute_Value for the record where the Attribute_ID is equal to 500.

If you are using a Microsoft Access project (.adp), you can open the the Master database as a new project, and then create a query in the same manner as described for a Microsoft Access database (.mdb).

NOTE: If you are using a version of SQL Server earlier than version 4.2, link to the table MsServer_Info, instead of Spt_Server_Info.

APPLIES TO
  • Microsoft Access 2000 Standard Edition
Keywords: 
kbhowto kbusage KB209643
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate