zwieback89
Programmer
Hi,
I have a report in 8.5 which when designed was connected to one ODBC name (ODBC_1). Except for the table name, I stripped off the databasename.dbo before the table name. I am able to see the results of the report. I pass a Patient ID and am able to see the report in the browser window.
My question now is as follows:
From my ASP page, I pass a parameter to the SetlongonInfo method in the following way:
stAlias catches the database name passed from the previous ASP page.
if stAlias = "Database1" then
stODBC = "odbc1"
stDatabase = "Database1"
elseif stAlias = "Database2" then
stODBC = "odbc2"
stDatabase = "Database2"
end if
userid = "sa"
password = ""
crtable.SetLogonInfo cstr(stODBC), cstr(stDatabase), cstr(userid), cstr(password)
Even though there are two different databases (databases with different names), the tables and the views are the same. Basically both the database have different data.
But when I designed the report, it was created off odbc1. How can I pass the ODBC and the database name as well so that I get to see the same report reflecting different data from two different databases.
What is it that I must do in the CR to strip off the ODBC name ?
Hope that I was clear in my explanation.
Regards, Padmaja.
I have a report in 8.5 which when designed was connected to one ODBC name (ODBC_1). Except for the table name, I stripped off the databasename.dbo before the table name. I am able to see the results of the report. I pass a Patient ID and am able to see the report in the browser window.
My question now is as follows:
From my ASP page, I pass a parameter to the SetlongonInfo method in the following way:
stAlias catches the database name passed from the previous ASP page.
if stAlias = "Database1" then
stODBC = "odbc1"
stDatabase = "Database1"
elseif stAlias = "Database2" then
stODBC = "odbc2"
stDatabase = "Database2"
end if
userid = "sa"
password = ""
crtable.SetLogonInfo cstr(stODBC), cstr(stDatabase), cstr(userid), cstr(password)
Even though there are two different databases (databases with different names), the tables and the views are the same. Basically both the database have different data.
But when I designed the report, it was created off odbc1. How can I pass the ODBC and the database name as well so that I get to see the same report reflecting different data from two different databases.
What is it that I must do in the CR to strip off the ODBC name ?
Hope that I was clear in my explanation.
Regards, Padmaja.