hi,
i am having problem on connecting ms sql db. i don't know what i am missing or what i m doing wrong.
i have WinXP and ms sql 2000 installed my pc. i haven't changed the password for sa, it is blank i think.
when i want to test the connection from following ASP.NET code it gives error.
ERROR
Line 19: mySqlConnection.Open()
[SqlException: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.]
anyone can guide me?
Do i need to any other setting like DataSource setting in the WinXP control panel?
i am having problem on connecting ms sql db. i don't know what i am missing or what i m doing wrong.
i have WinXP and ms sql 2000 installed my pc. i haven't changed the password for sa, it is blank i think.
when i want to test the connection from following ASP.NET code it gives error.
VB.NET:
<%
Dim myDataReader as SqlDataReader
Dim mySqlConnection as SqlConnection
Dim mySqlCommand as SqlCommand
mySqlConnection = new SqlConnection("server=localhost;database=dbname; uid=sa;pwd=")
mySqlCommand = new SqlCommand("SELECT * FROM pubs", mySqlConnection)
mySqlConnection.Open()
%>
ERROR
Line 19: mySqlConnection.Open()
[SqlException: Login failed for user 'sa'. Reason: Not associated with a trusted SQL Server connection.]
anyone can guide me?
Do i need to any other setting like DataSource setting in the WinXP control panel?