471,350 Members | 1,436 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

cr pointing to another server

i have a bunch of reports developed with dev db. reports are called from c#
windows app and all works fine. now i need to move to production and i can't
programaticaly repoint to another server. settingTableLogOnInfo objects with
all the required parameters parameters and passing it to tables is not
working.
the only way i can get it to work if i open report repoint db location in
crystal save it and only than it works. is there a way to avoid this, as i
said a have a bunch.
code looks something like this
crConnectionInfo.ServerName = "server_name"
crConnectionInfo.DatabaseName = "db_name";
crConnectionInfo.UserID = "account_name";
crConnectionInfo.Password = "password";

crDatabase = myreport.Database;
crTables = crDatabase.Tables;
for (int i = 0; i < crTables.Count; i++)
{
crTable = crTables [i];
crTable.Location=Begin.server;
crTableLogOnInfo = crTable.LogOnInfo;
crTableLogOnInfo.ConnectionInfo = crConnectionInfo;
crTable.ApplyLogOnInfo(crTableLogOnInfo);
}


Dec 15 '05 #1
0 808

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by dbtoo_dbtoo | last post: by
31 posts views Thread by Andrej Prsa | last post: by
1 post views Thread by Stephan Bour | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.