>Hi,
>
>When I am testing my ASP.NET to connect to SQL Server I use the following connecting string:
>
>
>connString = "server=MYCOMPUTER\\SQLEXPRESS; database=MyDatabaseName; Trusted_Connection=Yes"
>
>
>But I get an error:
>
>
>Cannot open database "MyDatabaseName" requested by login. The login failed.
>Login failed for user 'MYCOMPUTER\Dmitry'
>
>
>I suppose the "Trusted_Connection" syntax is not recognized, right? What should I change in my connString?
You could try swapping it for 'Integrated Security=True' - but the simplest way to get it right might be to just let the IDE create the string via ServerExplorer ?