473,503 Members | 3,884 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

What are the strings that define a connection's server version?

If I use Dim Myconn as new sqlclient.connection
Dim srvVer as string
srvVer = MyConn.serverversion

What should I get back as string if I was connected to sql server 2000
(standard full version)
what would I get back if it was sqlserver 2005 (standard full version)
are the returend strings different for the sql server developper editions
and the free versions for both 2000 and 2005?

Where can I find docs on this subject?

Some SQL statements seem to require slightly different syntax in the 2005
over the 2000 ver.
Does the 2005 versions support ALL 2000 SQL syntax or do I need to detect
the version to generate the dynamic sql statements in my vb code to adapt to
the correct version of sql server.

Any help would be greatly appreciated.
Bob
Oct 22 '06 #1
1 1292
From MSDN
(http://msdn2.microsoft.com/en-us/lib...version.aspx):

The version is of the form ##.##.####, where the first two digits are
the major version, the next two digits are the minor version, and the
last four digits are the release version. The string is of the form
major.minor.build, where major and minor are exactly two digits and
build is exactly four digits.

As long as you do not use system tables or views, SQL2005 is backward
compatible with SQL2000.

Robert Dufour wrote:
If I use Dim Myconn as new sqlclient.connection
Dim srvVer as string
srvVer = MyConn.serverversion

What should I get back as string if I was connected to sql server 2000
(standard full version)
what would I get back if it was sqlserver 2005 (standard full version)
are the returend strings different for the sql server developper editions
and the free versions for both 2000 and 2005?

Where can I find docs on this subject?

Some SQL statements seem to require slightly different syntax in the 2005
over the 2000 ver.
Does the 2005 versions support ALL 2000 SQL syntax or do I need to detect
the version to generate the dynamic sql statements in my vb code to adapt to
the correct version of sql server.

Any help would be greatly appreciated.
Bob

Oct 23 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2978
by: Chris Cioffi | last post by:
I started writing this list because I wanted to have definite points to base a comparison on and as the starting point of writing something myself. After looking around, I think it would be a...
24
2373
by: Xah Lee | last post by:
in computer languages, often a function definition looks like this: subroutine f (x1, x2, ...) { variables ... do this or that } in advanced languages such as LISP family, it is not uncommon...
56
3681
by: Xah Lee | last post by:
What are OOP's Jargons and Complexities Xah Lee, 20050128 The Rise of Classes, Methods, Objects In computer languages, often a function definition looks like this: subroutine f (x1, x2, ...)...
2
4402
by: Sriram | last post by:
Hi, I am having trouble matching a regex that combines a negated character class and an anchor ($). Basically, I want to match all strings that don't end in a digit. So I tried: ...
1
2062
by: Liza | last post by:
Hi guys, can anyone explain line number 5 to me. i don't quite understand what is going on there and why. 1 <script language="vbscript" runat="server">sub Application_OnStart 2 getcustomers...
4
2023
by: Minh Tran | last post by:
In order to minimize the number of connection strings I have to use to access different databases on the same Sql Server, I was considering storing all stored procedures in just one database. I...
4
5365
by: Matt Colegrove | last post by:
I'm working on a web app that is published to a hosting service. I'm developing it on my local PC with VS 2005 and SQL Express. The hosting service DB is SQL Server 2000. I have two...
669
25390
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
5
2511
by: Alan Silver | last post by:
Hello, Server configuration: Windows 2003 Server SP2 SQL Server 2000 SP4 ..NET v2.0.50727 just built up a new server using the same configuration as my current one. I even used the same CDs...
0
7188
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7063
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7313
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6970
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5558
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
1
4987
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
3156
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3146
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1489
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.