Can't open SQL database

connection string  = "Database=Database1;server=(local)"

the program stops at the .open command to open the database.
The error states can't connect to remote database.

But the database is local (on my laptop).  It is visible in the IDE and the
connection test was successful.  File path reference is fine too.

Thanks.


Answer this question

Can't open SQL database

  • RobertV

    I didn't use the correct connection string.
  • Can't open SQL database