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=;"
mstrConnectStri ng="Data Source=.\SQLEXP RESS;AttachDbFi lename=" & "xxx.mdf" & ";Integrate d Security=True;C onnect Timeout=30;User Instance=True"
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=;"
mstrConnectStri ng="Data Source=.\SQLEXP RESS;AttachDbFi lename=" & "xxx.mdf" & ";Integrate d Security=True;C onnect Timeout=30;User Instance=True"
Comment