My problem is to get connected so I can create my SS db from the VB6 application.
The answer I needed was how to connect so I could run the SQL create DB.
Your answer is Database=Master ;
The rest is -
ConnectionStrin g = "Provider=SQLNC LI;Server=YourS erverName;Datab ase=Master;Inte grated Security=SSPI;"
Many thanks
User Profile
Collapse
-
How to create sql server database file from VB6 application
Using SQL Server 2005 Express.
I want to create and maintain the SQL database and tables from within a VB6 application. First I need to create an empty database file. This I can't do.
Using
Set mcn = New ADODB.Connectio n
mcn.Open mstrConnectStri ng
I have tried various connection strings -
mstrConnectStri ng="server=(loc al)\SQLEXPRESS; " & "integrated security=sspi;d atabase=;"...
No activity results to display
Show More
Leave a comment: