how can i connect win nt sqlexpress? i am using this code to connect.it works with any version and kind of sql.
internal string GetConnectionString()
{
return "Data Source=" + "MyPC\SQLExpress" +
";Initial Catalog=Master;User ID=" + username +
";Password=" + password;
}
when connectiong with express ===>>>
Login failed for user 'NT AUTHORITY'. The user is not associated with a trusted SQL Server connection.
or
Login failed for user 'sa'. The user is not associated with a trusted SQL Server connection.
or
Login failed for user 'sysadmin'. The user is not associated with a trusted SQL Server connection.