Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"Set Location" change on the fly...

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
Has anyone ever used the web interface of CR 8.0 and changed the database table to use at the time of execution? If so, please show me the code. I can't seem to get it right.

Jerry Scannell
JScannell1@Home
 
Hi! I'm calling reports from ASP, and I used the SetLogonInfo method and the Location property to change table at runtime. I got the following sample code from Seagate's support web site at

'pass the physical server name, database, user ID and password to the SetLogonInfo method.
'SetLogonInfo can be used to connect to the existing server or a new server
Report.Database.Tables.Item(1).SetLogOnInfo "Server2", "master", "admin ", "admin"

'The location property sets the new database owner and table name.
Report.Database.Tables.Item(1).Location = "master.dbo.authors2"

Hope this helps!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top