![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I used code in a vb6 application to attach a database to MSDE, but I get an error that says "Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection." What does that mean? My code looks like this: ..... |
#3
| |||
| |||
|
|
I used code in a vb6 application to attach a database to MSDE, but I get an error that says "Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection." What does that mean? My code looks like this: Private Sub Command1_Click() Dim oSvroot As SQLDMO.SQLServer Set oSvroot = New SQLDMO.SQLServer oSvroot.Connect "(local)", "sa", "password" oSvroot.AttachDB "Sales", "C:\DB\Sales.mdf, C:\DB\Sales.ldf" oSvroot.DisConnect Set oSvroot = Nothing End Sub Daniel |
#4
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |