Advertisement

07.20.2008 at 12:13AM PDT, ID: 23579822
[x]
Attachment Details

excel 2003 vba to sql server 2005 express

Asked by ygnd in Apple Programming, Microsoft Excel Spreadsheet Software, SQL Server 2005

hello to the expert,
I'm trying to connect to sql server 2005 express with excel 2003 vba using this connection
strConn = "PROVIDER=SQLOLEDB;"
strConn = strConn & "DATA SOURCE=(local);" ' the sever on my LepTop
strConn = strConn & "Initial Catalog=test;" ' my database
strConn = strConn & "Trusted_Connection=Yes;"
Dim cnPubs As ADODB.Connection
Set cnPubs = New ADODB.Connection
cnPubs.Open strConn
geting error
[DBNETLIB][connectionOpen(connect().)]sql server not exist
please advice.
Thank you,
Yalon
 Start Free Trial
[+][-]07.20.2008 at 03:01AM PDT, ID: 22045140

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apple Programming, Microsoft Excel Spreadsheet Software, SQL Server 2005
Sign Up Now!
Solution Provided By: ozi_lion
Participating Experts: 1
Solution Grade: B
 
 
[+][-]07.20.2008 at 09:54AM PDT, ID: 22046238

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.20.2008 at 10:09AM PDT, ID: 22046286

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628