I'm a C++ programme and I use this function (SetLogOnInfo) to log on on the server runtime:
CRAXDRT::IDatabaseTablesPtr tables = pReport->Database->GetTables();
for ( i = 1; i <= tables->Count; i++) {
tables->GetItem(i)->SetLogOnInfo(strServer,strDataBase,strUserId,strPasswd);
}
I don't have the servername, but I have the DSN of the database (SQL Server).
How i can configure SetLogInfo without the name of Server, only with the ODBC??
Thanks...
Marco
CRAXDRT::IDatabaseTablesPtr tables = pReport->Database->GetTables();
for ( i = 1; i <= tables->Count; i++) {
tables->GetItem(i)->SetLogOnInfo(strServer,strDataBase,strUserId,strPasswd);
}
I don't have the servername, but I have the DSN of the database (SQL Server).
How i can configure SetLogInfo without the name of Server, only with the ODBC??
Thanks...
Marco