Thanks for reply!
Here are some error messages I received from exception handler paired with connection strings.
1.
connectionstring="Driver={SQL Server};Server=(local);Trusted_Connection=Yes;Database=Proba;"
Connection:NetConn: 00000000
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = 42000
Native Error Code = 4060
[Microsoft][ODBC SQL Server Driver][SQL Server]Cannot open database requested in
login 'Proba'. Login fails.
2.
connectionstring="Server=PCDEVELOP03/SQLEXPRESS;Database=Proba;Trusted_Connection=Yes;
Connection:Not applicable
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = IM002
Native Error Code = 0
[Microsoft][ODBC Driver Manager] Data source name not found and no default drive
r specified
3.
connectionstring="Server=.\SQLExpress;AttachDbFilename=e:\proba.mdf;Database=proba; Trusted_Connection=Yes;"
Connection:Not applicable
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = IM002
Native Error Code = 0
[Microsoft][ODBC Driver Manager] Data source name not found and no default drive
r specified
4.
connectionstring="Server=PCDEVELOP03\SQLEXPRESS;Database=Proba;Trusted_Connection=Yes;"
Connection:Not applicable
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = IM002
Native Error Code = 0
[Microsoft][ODBC Driver Manager] Data source name not found and no default drive
r specified
5.
connectionstring="data source=PCDEVELOP03\SQLEXPRESS;initial catalog=Proba;Trusted_Connection=TRUE;"
Connection:Not applicable
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = IM002
Native Error Code = 0
[Microsoft][ODBC Driver Manager] Data source name not found and no default drive
r specified
6.
connectionstring="Driver={SQL Server};Server=(local)\SQLExpress;Trusted_Connection=Yes;Database=Proba;"
Connection:NetConn: 00000000
Server:Not applicable
===========================
ODBC Diagnostic record #1:
===========================
SQLSTATE = 08001
Native Error Code = 17
[Microsoft][ODBC SQL Server Driver][DBMSLPCN]SQL Server does not exist or access
denied.
===========================
ODBC Diagnostic record #2:
===========================
SQLSTATE = 01000
Native Error Code = 53
[Microsoft][ODBC SQL Server Driver][DBMSLPCN]ConnectionOpen (Connect()).
Ialso have installed older versions of MS SQL on my computer so I suppose that maybe some of the answers are from there. I'm using windows authentication mode for connecting to my databases.