>Greetings,
>I am unable to connect to my SQl Database with this connection string (see below) from within a C# program. Same parameters work fine in SQL Query Analyzer when connecting.
>
>This is the code:
>
>public class DataAccessSql : DataAccessBase
>{
>public DataAccessSql()
>this.ConnectionString= "server=myserver;uid=sa;pwd=mypass;database=Northwind;";
>
>Many thanks, Todd
Probably SQL server is configured for Windows authentication (good and recommended way).
Query Analyzer or another local application would succeed with that connection string as behind the scenes it'd use windows authentication. You might try in Query analyzer with a dummy password succeeding (might need a valid connection first, connect, disconnect and try dummy pw).
Cetin