freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
[freetds] trying to connect to SQLServer with dblib.lib / dbopen() fails
- From: Gal Rubinstein <galrub AT gmail.com>
- To: freetds AT lists.ibiblio.org
- Subject: [freetds] trying to connect to SQLServer with dblib.lib / dbopen() fails
- Date: Wed, 15 Sep 2010 16:23:05 +0200
I'm trying to setup the correct string to connect to a server on localhost (window 7, VC++).
here is the code:
login = dblogin();
DBSETLAPP(login, "northwind");
DBSETLPWD(login, "123123");
DBSETLUSER(login, "stam");
dbproc = dbopen(login, "GAL-PC");
dbloginfree(login);
dbexit();
as for the data here: I'm trying to use the northwind database on the local server.
when I'm using the server management studio, I'm able to login using this username and password
the database name is "northwind" and "GAL-PC" is the name of the server (and of my computer).
any ideas why dbopen doesn't work, is ther another way of getting the correct variables?
thanks,
Gal
- [freetds] trying to connect to SQLServer with dblib.lib / dbopen() fails, Gal Rubinstein, 09/15/2010
Archive powered by MHonArc 2.6.24.