[freetds] dbuse failure to connect to a database name containing numbers

Shaun Craig s.craig at andronics.com
Thu Oct 26 12:10:29 EDT 2006


Hi,

I have no problems connecting to the following database 'Test' using dbuse()

#define  DBNAME    "Test"


*if* ( dbuse(dbconn_pool, DBNAME) == FAIL ) *
    return* -1; *
else* *
    return* 0;


However when I use a number in the database name it fails

#define  DBNAME    "Test2"


Any ideas why it fails? I can connect to 'Test2' through tsql and 
queries work fine.

Thanks,

Shaun.


More information about the FreeTDS mailing list