|
From: <car...@ho...> - 2002-06-25 11:34:55
|
Hello:
I´m trying to make a connection with the driver in Visual Studio .Net
Beta 2 ( Spanish ), but it don't connect, the problem is
that the connection throguth OleDB for ODBC provider get info about the
server name and this is unsuportted by the driver, i made the next
changes to solve this:
InfoItems.h ( Line 79 )
Change:
UITEM (SQL_SERVER_NAME, 0)
For :
CITEM (SQL_SERVER_NAME, 0)
OdbcConnection.cpp
Add this at line 572 ( OdbcConnection::sqlGetInfo ):
case SQL_SERVER_NAME:
string = metaData->getDatabaseServerName();
break;
Connection.h
Add this at line 120 ( into the definition of theclass DatabaseMetaData ):
virtual const char* getDatabaseServerName() = 0;
IscDatabaseMetadata.h
Add this at line 64:
virtual const char* getDatabaseServerName();
IscDatabaseMetadata.cpp
Add this at line 254:
const char* IscDatabaseMetaData::getDatabaseServerName()
{
return "InterBase Server";
}
Best regards
Carlos Guzmán Álvarez
|