Re: ADO OpenSchema( adSchemaPrimaryKeys , ...)



Pete d'Oronzio [pdmagic] wrote:
Any chance you know how to test the SP level from code?

Thanks!

Just do a "select @@version" and compare the result to this chart:
http://www.aspfaq.com/sql2000Builds.asp

Hmm.. That select @@version is handy to look at, but not much for
coding against. I don't imagine the format is defined and will be
consistant.

For SQL 2000 and up, rthis will work:

SELECT 'SQL Server '
+ CAST(SERVERPROPERTY('productversion') AS VARCHAR) + ' - '
+ CAST(SERVERPROPERTY('productlevel') AS VARCHAR) + ' ('
+ CAST(SERVERPROPERTY('edition') AS VARCHAR) + ')'

--
Microsoft MVP -- ASP/ASP.NET
Please reply to the newsgroup. The email account listed in my From
header is my spam trap, so I don't check it very often. You will get a
quicker response by posting to the newsgroup.


.



Relevant Pages

  • RE: SQL Server Express on SBS2003 standard
    ... This newsgroup only focuses on SBS technical issues. ... you may want to contact Microsoft CSS directly. ... After you applied the SBS 2003 SP1 successfully, you can install the ... SQL Server Express on SBS. ...
    (microsoft.public.windows.server.sbs)
  • Re: Accessing sql server
    ... port, select All ports, in Remote port, select Fixed port and input 1433 ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... | I have now checked and I can access the sql server when creating an ODBC ...
    (microsoft.public.windows.server.sbs)
  • Re: Accessing sql server
    ... Filters rule to see if we can resolve this issue. ... Microsoft CSS Online Newsgroup Support ... This newsgroup only focuses on SBS technical issues. ... | I have now checked and I can access the sql server when creating an ODBC ...
    (microsoft.public.windows.server.sbs)
  • RE: Allow access to external SQL server via ODBC thru ISA 2004
    ... Thank you for posting in SBS newsgroup. ... SQL server though SBS with ISA2004. ... To make the client access normally to external ODBC source, ... configure a protocol definition and a access rule on ISA. ...
    (microsoft.public.windows.server.sbs)
  • RE: SQL Server Agent Logon Issue (SBS 2003)
    ... The service did not start due to a logon failure. ... the SQL Server startup service account or the SQL Server Agent startup ... service account is not correct. ... Microsoft CSS Online Newsgroup Support ...
    (microsoft.public.windows.server.sbs)