473,608 Members | 1,809 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to determinate the version Sql2005

ad
The user of my asp.net program use Sql2005 or Sql2005 express as database,
both are possible.

I have try both version of data base, I found:
If I use Sql2005 express, the Data Source in connection string will be
..\SQLEXPRESS, like:
Data Source=.\SQLEXP RESS;Initial Catalog=myDB;In tegrated Security=True

But I use Sql2005 , the Data Source in connection string can be use
(local), like:
Data Source(local);I nitial Catalog=myDB;In tegrated Security=True

My questions are:

1.Is it possible use the some connection string with both version of
DataBase.

2. If question 1 is impossible, how to determinate the version of Sql2005?
I want to composite the connection string with program.
Nov 17 '05 #1
2 1796
Hello,
I think if you use the format <Server>\<SQLIn stanceName> it will work on any
edition of sql server.
Thanks,
Ashish

"ad" <fl****@wfes.tc c.edu.tw> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
The user of my asp.net program use Sql2005 or Sql2005 express as database,
both are possible.

I have try both version of data base, I found:
If I use Sql2005 express, the Data Source in connection string will be
.\SQLEXPRESS, like:
Data Source=.\SQLEXP RESS;Initial Catalog=myDB;In tegrated Security=True

But I use Sql2005 , the Data Source in connection string can be use
(local), like:
Data Source(local);I nitial Catalog=myDB;In tegrated Security=True

My questions are:

1.Is it possible use the some connection string with both version of
DataBase.

2. If question 1 is impossible, how to determinate the version of
Sql2005? I want to composite the connection string with program.

Nov 17 '05 #2
ad
If the usrs' computer have just one vesion of Sql2005,
can we omit <SQLInstanceNam e>
"Ashish Kaila" <as*********@no spam.com> ¼¶¼g©ó¶l¥ó·s»D: us************* *@TK2MSFTNGP15. phx.gbl...
Hello,
I think if you use the format <Server>\<SQLIn stanceName> it will work on
any edition of sql server.
Thanks,
Ashish

"ad" <fl****@wfes.tc c.edu.tw> wrote in message
news:%2******** ********@TK2MSF TNGP14.phx.gbl. ..
The user of my asp.net program use Sql2005 or Sql2005 express as
database, both are possible.

I have try both version of data base, I found:
If I use Sql2005 express, the Data Source in connection string will be
.\SQLEXPRESS, like:
Data Source=.\SQLEXP RESS;Initial Catalog=myDB;In tegrated Security=True

But I use Sql2005 , the Data Source in connection string can be use
(local), like:
Data Source(local);I nitial Catalog=myDB;In tegrated Security=True

My questions are:

1.Is it possible use the some connection string with both version of
DataBase.

2. If question 1 is impossible, how to determinate the version of
Sql2005? I want to composite the connection string with program.


Nov 17 '05 #3

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

Similar topics

1
1931
by: ad | last post by:
Hi, It will fail to call a web service when the connection to internet is not OK. I wnant to check the connection to internet before call a web service. How to determinate if the connection to internet is OK?
6
1586
by: Xero | last post by:
How do you determinate whether a varible of data type 'Char' is null or not? I used the following code, but it seemed that it didn't work: Dim ans As Char If ans = "" Then MsgBox("Ans contains no value") Else MsgBox("Ans contains a value") End If
1
2736
by: r1100r98 | last post by:
I am having a problem moving the data from a datatable to the SQL2005 table (using VB2005). See code below. The SQL2005 table is empty, the datatable is being filled from a text file, not from the SQL2005 table. I have tried various ways, but the SQL table is not updating. Help would be appreciated. Code is below Thanks Imports System Imports System.Data
1
1895
by: ad | last post by:
I want to determinate if a value in a Text is digital or character. How can I determinate it with Javascript
5
3898
by: Mike | last post by:
I'm having trouble accessing SQL2005 Standard Edition as a second instance of SQL Server where the first instance is SQL 2000 Enterprise Edition. I installed SQL 2005 as a named instance "SQL2005". The server is running Windows 2000 SP4 ON A 32-Bit machine. When I look in Services I see the SQL Server (SQL2005), SQL Server Agent (SQL2005) services there. I went into SQL Server Configuration manager and disabled the named pipes protocol...
1
1304
by: Robert Dufour | last post by:
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?
7
6500
by: Olegus | last post by:
Hello, in order to perform backup/restore MSSQL database using SMO, one needs to reference several namespaces in a backup class : using Microsoft.SqlServer.Management.Common; using Microsoft.SqlServer.Management.Smo; Unfortunately, MSSQL 2005 and MSSQL Express keep them in different place. For MSSQL2005 they are located in C:\Program Files\Microsoft SQL Server \90\SDK\Assemblies and for MSSQL Express you can find them in C:
3
2887
by: Michael Schöller | last post by:
Hello, First of all english is not my natural language so please fogive me some bad mistakes in gramatic and use of some vocables :). I have a great problem here. Well I will not use it anymore but I want to know why it is as it is ^^. I tried with .NET3.0 but I think it will be the same with 2.0 and 3.5. MSDTC is configured and working.
0
1996
by: nic829 | last post by:
Hi, I was upgrading a instance from SQL2000 to SQL2005. During SQL2005 setup I accidently allow the files to be installed in C drive, but I should have them all installed in D drive. My databases are still sits in D drive, but other files (Management studio, analysis service, etc.) all sits in C drive. Is there anyway that I can move SQL2005 from C to D drive? I thought of uninstalling current SQL2005, install it back and load current...
0
8011
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8503
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8160
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8358
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
6826
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
3972
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2479
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 we have to send another system
1
1611
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1339
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.