G
Guest
hi,
i was trying to create a DB in a SQL Server.
but when i try to connect it with :
Dim conn As SqlConnection = New SqlConnection("Initial Catalog=master; " & _
"Data Source=SERVER-MACHINE;" & _
"UID=sa; PWD=;")
It gave me this SQLexception "Incorrect syntax near keyword 'ON"
which i have no idea what it means............
but when i tried to remove the UID and PWD
it saids "Login fails for usernull). Reason: Not associated with a trusted
SQL Server connection".
Any help is appreciated......many thanks.
i was trying to create a DB in a SQL Server.
but when i try to connect it with :
Dim conn As SqlConnection = New SqlConnection("Initial Catalog=master; " & _
"Data Source=SERVER-MACHINE;" & _
"UID=sa; PWD=;")
It gave me this SQLexception "Incorrect syntax near keyword 'ON"
which i have no idea what it means............
but when i tried to remove the UID and PWD
it saids "Login fails for usernull). Reason: Not associated with a trusted
SQL Server connection".
Any help is appreciated......many thanks.