The SQL Server is on the same PC as the application. The connection string is the following:
SQLSTRINGCONNECT([DRIVER=SQL Server;SERVER=(local);DATABASE=MyDatabase;Trusted_Connection=Yes])
Thank you.
>Can you post the connection string from your application? Is SQL Server on the same PC as your application?
>
>>Thank you for explaining the default database, so it does not apply to my case. I have two users on this PC but almost always (99.99%) use one user. What I did, after I had the error this morning, is restarted my PC. The problem didn't go away. So I connected to the database using SSMS and had no problems connecting to the database. After that my application also had no problem connecting.
>>
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham