all groups > sql server connect > march 2006 >
You're in the

sql server connect

group:

Coonection to SQL Server 2005 Express


Coonection to SQL Server 2005 Express Roy
3/27/2006 7:16:01 PM
sql server connect:
What is the proper connection string for SQL Server 2005 Express on XP?
I want to connect to the master database by VBScript as the following:
Dim computer : computer = CreateObject("WScript.Network").ComputerName
Dim connectionString:connectionString = "Provider=SQLOLEDB.1;Integrated
Security=SSPI;Persist Security Info=False;Initial Catalog=Master;Data
Source=" + computer
Dim connection
Set connection= CreateObject("ADODB.Connection")
With connection
.Provider = "SQLOLEDB"
.ConnectionString = connectionString
.Open
End With

It works on MSDE. But I got a "[DBNETLIB][ConnectionOpen (Connect()).]SQL
Server does not exist or access denied. " error for SQL Express. I have the
TCP/IP enabled for SQL Server Express too.

RE: Coonection to SQL Server 2005 Express Satya SKJ
3/29/2006 5:00:02 AM
take help from KBA
http://support.microsoft.com/default.aspx?scid=kb;EN-US;Q328306 and
http://www.connectionstrings.com/ for all types of connection strings.
--
-----------------
Satya SKJ
Visit http://www.sql-server-performance.com for tips and articles on
Performance topic.


[quoted text, click to view]
AddThis Social Bookmark Button