473,405 Members | 2,445 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 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 847

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: aa | last post by:
Thought this question might be out of this NG's scope, there are always knowledgable people who might hava an answer. A hyperlink to a shortcut to a file returnes an empty screen, and the source...
2
by: Frank | last post by:
The destruction of a sub instantiated obj that I’m pointing too. This is a pseudo code example, don’t get all bent if I forgot a semicolon etc for something like some of you do. This will...
1
by: dbtoo_dbtoo | last post by:
Hello If we have nicknames created in DB1 to, say, three other databases (DB2,DB3, and DB4) in the same instance. How can one find out what table/database is a nickname pointing to? For...
31
by: Andrej Prsa | last post by:
Hi! What happens to a globally defined pointer, e.g. void *value; that points to a particular type in a function: int dummy_func (int a) {
1
by: Stephan Bour | last post by:
Hi, I am trying to implement a SQLServer database update inside a catch loop and I'm having difficulties pointing to the row to update using the current order's OrderID primary key Identifier in...
3
by: Greg | last post by:
I like the Web hosting site I'm using (though alternate hosting suggestions are welcome), and it allows me to point mulitple domains to the root folder for free, but it charges extra for pointing...
16
by: mailforpr | last post by:
How do I do that? The thing is, the only information I have about the iterator is the iterator itself. No container it is belonging to or anything. Like template<Iteratorvoid...
1
by: mbosco51 | last post by:
Hi. I have an external facing website that has both a customer login and an admin login. I want to prevent external access to the admin login for security reasons. On the same webserver I...
0
by: wildman | last post by:
RE: ASP 1.0 site, pointing to ASP 2.0 site. SSL and authentication obsticles?? First off, Is there any way to simple development on an asp.net 1.0 site using vs 2005, if you don't have the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.