Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Server Native Client 10

Status
Not open for further replies.

sparkbyte

Technical User
Sep 20, 2002
879
US
OK What have I done wronge?

Code:
Set objSQLDataBaseCat = New ADOX.Catalog
cnn.Open "Provider = SQLNCLI10;" & _
            "Data Source = strServer;" & _
            "Initial Catalog = strDatabase;" & _
            "Integrated Security = SSPI;"
            
Set objSQLDataBaseCat.ActiveConnection = cnn

Thanks

John Fuhrman
 
I guess that strServer and strDatabase are variables:
Code:
cnn.Open "Provider = SQLNCLI10;" & _
            "Data Source = " & strServer & ";" & _
            "Initial Catalog = " & strDatabase & ";" & _
            "Integrated Security = SSPI;"

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top