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
ASKER
It work fine.
Yalon