K
kate
I need to pass along parms in an SQLConnection.
EG
con = (New SqlConnection("Data Source=mySQLserver;user
id=UserName; password=UserPassword;Initial
Catalog=northwind"))
The function is passed the values as parms and needs to
pass them along to SQLServer.
ie:
<WebMethod()> Public Function ValidateUser(ByVal UserName
As String, _
ByVal UserPassword As String) As Boolean
I have tried UserName, @UserName, &UserName in the
SQLConnection string. None work.. It thinks it is a user
name in plain text.
What is the correct syntax for passing userid and password
so that the VALUES are passed, rather than the literal?
All the examples show either username/password in plain
text or "Integrated Security=SSPI;".
Thanks!
EG
con = (New SqlConnection("Data Source=mySQLserver;user
id=UserName; password=UserPassword;Initial
Catalog=northwind"))
The function is passed the values as parms and needs to
pass them along to SQLServer.
ie:
<WebMethod()> Public Function ValidateUser(ByVal UserName
As String, _
ByVal UserPassword As String) As Boolean
I have tried UserName, @UserName, &UserName in the
SQLConnection string. None work.. It thinks it is a user
name in plain text.
What is the correct syntax for passing userid and password
so that the VALUES are passed, rather than the literal?
All the examples show either username/password in plain
text or "Integrated Security=SSPI;".
Thanks!