hi,
i'm rather new to developing apps with SQL (2K) server, and i'm having a problem with connecting to a database within my local instance.
the error i'm getting back states that the account i'm trying to log on with doesn't have permission, yet i've created this logon account (within the server) and made it (out of a brute force tactic) a member of the Owner's role for my testing database file.
the (C#) code for access is...
any thoughts or suggestions are greatly appreciated. thanks in advance!
..:: mirirom ::..
i'm rather new to developing apps with SQL (2K) server, and i'm having a problem with connecting to a database within my local instance.
the error i'm getting back states that the account i'm trying to log on with doesn't have permission, yet i've created this logon account (within the server) and made it (out of a brute force tactic) a member of the Owner's role for my testing database file.
the (C#) code for access is...
Code:
string strSQL = "SELECT * FROM someTable";
string strSource = "data source=myInstanceName;"
+ "initial catalog=testDataStore;user id=webuser"
+ "password=123";
SqlConnection cnn = new SqlConnection(strSource);
SqlAdapter adt = new SqlAdapter(strSQL, cnn);
Dataset d = new Dataset();
cnn.Open(); //fails here
adt.Fill(d, "foo");
any thoughts or suggestions are greatly appreciated. thanks in advance!
..:: mirirom ::..