Skip to Content.
Sympa Menu

freetds - Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Paul Thurston <pthurston AT netegrate.com>
  • To: Harry Sfougaris <hsfougaris AT gmail.com>
  • Cc: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010
  • Date: Sun, 9 May 2010 12:29:41 -0700

Harry:

The emulator might be doing something weird to the Windows 64 bit
environment; there is really no I can tell for certain.
I'm afraid I can't replicate your environment (all Red Hat Linux and Windows
7 on Intel here), so I’ll end my support effort here.

I'm setting up a local copy of Sql Server 2008 now on my dev box to check out
the 64 bit connectivity.
I'll send you note after everything is up and running with 64 bit calls.

Good Luck!

Paul


From: Harry Sfougaris [mailto:hsfougaris AT gmail.com]
Sent: Sunday, May 09, 2010 2:29 PM
To: Paul Thurston
Cc: FreeTDS Development Group
Subject: Re: [freetds] 0.83.dev.20100507 and Visual Studio 2010

I coped your exact source (changing my conf file and login, but it still
fails.
I have the following in my linker input:
dblib.lib
libTDS.lib
FreeTDS.lib
WS2_32.lib

I trust this code compiles for you fine?
Could it have anything to do that I'm running it through parallels on my
MacBook Pro?
I'll try rebooting and testing it now, just in case...

Harry


On 09 Μαϊ 2010, at 9:15 μ.μ., Paul Thurston wrote:



#include <config.h>
#include <stdarg.h>
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <sqlfront.h>
#include <sqldb.h>


int main(int argc, char* argv[])
{
LOGINREC *login;
//RETCODE erc;
DBPROCESS *dbproc;

if (dbinit() == FAIL)
{
return (-1);
}

if ((login = dblogin()) == NULL)
{
return (2);
}


dbsetifile((char*)"C:\\Users\\Paul\\Downloads\\FreeTDS\\FreeTDS_64Bit\\etc\\freetds.conf<smb://Users/Paul/Downloads/FreeTDS/FreeTDS_64Bit/etc/freetds.conf>");

DBSETLUSER(login, "***" );
DBSETLPWD(login, "***" );
DBSETLCHARSET(login, "CP1253" );
if ((dbproc = dbopen(login, "dev" )) == NULL)
{
return (-3);
}

return 0;

}//end global method main

Harry Sfougaris







Archive powered by MHonArc 2.6.24.

Top of Page