G
gawime
Guest
I have a form that asks for login parameters (Server, Database, Username, Password) and then creates a connection string.
The connection string looks something like
ODBC;
DRIVER={SQL Server}
;SERVER=<server>
;DATABASE=<database>
;UID=<uid>
;PWD=<pwd>;
I keep getting Error 3151 ODBC --- Connection to {SQL Server}<server} failed
What gives?
If I use a DSN in the connect string like
ODBC; DSN=<dsn>;
;UID=<uid>
;PWD=<pwd>;
it works just fine, but I would like to be able to connect to SQL server without using a DSN
The connection string looks something like
ODBC;
DRIVER={SQL Server}
;SERVER=<server>
;DATABASE=<database>
;UID=<uid>
;PWD=<pwd>;
I keep getting Error 3151 ODBC --- Connection to {SQL Server}<server} failed
What gives?
If I use a DSN in the connect string like
ODBC; DSN=<dsn>;
;UID=<uid>
;PWD=<pwd>;
it works just fine, but I would like to be able to connect to SQL server without using a DSN