Your code has:
db = ".\\SQLEXPRESS;";
backslash before SQL Express which is correct but your error says
- a front slash!
It should be like:
Refer: Connection String for SQL Server
Make sure that the connection string is correct. Use Visual Studio DEBUGGER and see what is the value of '
' being passed to adapter.