Dynamically change Database, Server and Command From VB6
I have a crystal report which connects to an iSeries box via an OLE DB datasource, however i need to have this same report conect to two different iSeries, with the tables for the sql (command) located in two different libraries.
Is it possible to change the command in vb (as well as the connection etc) so i can change the box and library t execute the sql against at run time ?
Hi,
From VB 6 you can change the report's datasource. Depending on the version of Crystal you are using, you may be able to change the SQL but if the data is the same on all the iSeries boxes then you shouldn't have to.
Again, the way to do this will depend on the version of Crystal you are using and the method you are using to call the reports.
Basically, there is a property in the reporting object that will allow you to logon to the database. This would give you the same functionality as if you were in the Report Designer and went to Database | Set Database Location.
Without knowing the version of Crystal and the method for calling the report, it's a bit difficult to get into specifics.
Good luck,
Brian
Similar Messages
-
Dynamically change the db and server in execute sql task
Pkg 2: Moves data from B_STG (Staging DB) to B_Det_STG (Staging DB) ---- option1
Pkg 3: Moves data from B_STG (Staging DB) to B_Det (PC DB) ---- option2
This part is duplicating in both the packages
So they want me to merge both of them into in execute sql task and dynamically change between option1 and option2 depending on a pkg level variable.
So, I create a pkg level variable called ExecutionVariable: 'ANALYSIS' or 'LOADING'
If 'ANALYSIS' it needs to do option1 else option2.
So, I ma trying to create a dynamic connection string in execute sql task.
I change the connection property in execute sql task editor dynamically my giving the expression: @[User::ExecutionVariable] == "ANALYSIS"? @[User::STAGINGDBConnectionString] : @[User::PCDBConnectionString]
which evaluates to : Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb
But when I run the sql task, its giving me an error:
ERROR:
TITLE: Microsoft Visual Studio
Nonfatal errors occurred while saving the package:
Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Error at PC_DataLoad: The connection "Data Source=AW-ETL-D1;Initial Catalog=Staging;Integrated Security=SSPI;Provider=sqloledb" is not found. This error is thrown by Connections collection when the specific connection element is not found.
Can u please help me.Hi ,
Don't try to make the "Execute Sql" task as dynamic.
Try to make OLEDB connection Manager as "Dynamic".
Steps:
1. Create OLE DB Connection pointing to any database then set expression to connection string variables like below.
Provider=SQLNCLI10.1;Integrated Security=SSPI;Initial Catalog=YourDBname;Data Source=YourServerName.
2. Make Delayed Validation property to "True".
3. Set the created dynamic OLE DB connection to your Execute SQL task.
4. Change the connection string variable accordingly before running the "Execute SQL" task.
Hope it will help you.
Regards,
Nandhu -
Changing database server on a report with subreports = formula error
Good morning,
I currently have several reports that print out, and were developed attached to our development database. However, I need to be able to dynamically change the server that the report uses according to the server configured in our application. Each of these reports contains one or more subreports, which point to the same server and database as the main report. All reports, both the main and subreports, are based on manual SQL commands.
I'm running into some significant issues. So significant, in fact, that we were forced to deploy our application with reports that had been switched to our production environment in the designer in order to get them functional. This is, obviously, not an acceptable or long-term solution.
I've gone round and round a couple of times I get different results with different methods of changing this information. I'll outline them below. First, my current code:
ConnectionInfo connectionInfo = new ConnectionInfo();
TableLogOnInfo logOnInfo = new TableLogOnInfo();
Console.WriteLine("Report \"{0}\"", report.Name);
foreach (Table table in report.Database.Tables)
logOnInfo = table.LogOnInfo;
connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
connectionInfo.ServerName = "panthers-dev";
connectionInfo.DatabaseName = "Prosys";
logOnInfo.ConnectionInfo = connectionInfo;
//table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
table.ApplyLogOnInfo(logOnInfo);
table.LogOnInfo.ConnectionInfo = connectionInfo;
Console.WriteLine("\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
foreach (Section section in report.ReportDefinition.Sections)
foreach (ReportObject ro in section.ReportObjects)
if (ro.Kind == ReportObjectKind.SubreportObject)
SubreportObject sro = (SubreportObject)ro;
ReportDocument subreport = report.OpenSubreport(sro.SubreportName);
Console.WriteLine("\tSubreport \"{0}\"", subreport.Name);
foreach (Table table in subreport.Database.Tables)
logOnInfo = table.LogOnInfo;
connectionInfo = new ConnectionInfo(logOnInfo.ConnectionInfo);
connectionInfo.ServerName = "panthers-dev";
connectionInfo.DatabaseName = "Prosys";
logOnInfo.ConnectionInfo = connectionInfo;
//table.Location = "Prosys.dbo." + table.Location.Substring(table.Location.LastIndexOf(".") + 1);
table.ApplyLogOnInfo(logOnInfo);
table.LogOnInfo.ConnectionInfo = connectionInfo;
Console.WriteLine("\t\t\"{0}\": \"{1}\", \"{2}\", \"{3}\", {4}", table.Name, table.LogOnInfo.ConnectionInfo.ServerName, table.LogOnInfo.ConnectionInfo.DatabaseName, table.Location, table.TestConnectivity());
Using this approach, my console output prints what I expect and want to see: the correct server and database information, and True for TestConnectivity for all reports and subreports. The two reports I have that have no subreports print out correctly, with data from the proper server. However, all of the reports with subreports fail with formula errors. If this procedure is not run, they work just fine on either server.
I had to place the assignment of table.LogOnInfo.ConnectionInfo = connectionInfo after the call to ApplyLogOnInfo, as that function did not behave as expected. If I perform the assignment first (or not at all), then calling ApplyLogOnInfo on the outer report's table did NOT affect the values of its ConnectionInfo object, but it DID affect the values of the ConnectionInfo object's of its subreports!
In any event, if anyone could post a code sample of changing database connection information on a report containing subreports, I would appreciate it.
Any help is greatly appreciated and anxiously awaited!Hi Adam,
Code for changing database connection information on a report containing subreports :
private ReportDocument northwindCustomersReport;
private void ConfigureCrystalReports()
northwindCustomersReport = new ReportDocument();
string reportPath = Server.MapPath("NorthwindCustomers.rpt");
northwindCustomersReport.Load(reportPath);
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = "localhost";
connectionInfo.DatabaseName = "Northwind";
connectionInfo.IntegratedSecurity = false;
SetDBLogonForReport(connectionInfo, northwindCustomersReport);
SetDBLogonForSubreports(connectionInfo, northwindCustomersReport);
crystalReportViewer.ReportSource = northwindCustomersReport;
private void Page_Init(object sender, EventArgs e)
ConfigureCrystalReports();
private void SetDBLogonForReport(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogonInfo);
private void SetDBLogonForSubreports(ConnectionInfo connectionInfo, ReportDocument reportDocument)
Sections sections = reportDocument.ReportDefinition.Sections;
foreach (Section section in sections)
ReportObjects reportObjects = section.ReportObjects;
foreach (ReportObject reportObject in reportObjects)
if (reportObject.Kind == ReportObjectKind.SubreportObject)
SubreportObject subreportObject = (SubreportObject)reportObject;
ReportDocument subReportDocument = subreportObject.OpenSubreport(subreportObject.SubreportName);
SetDBLogonForReport(connectionInfo, subReportDocument);
Hope this helps!!
Regards,
Shweta -
Revision: 1602
Author: [email protected]
Date: 2008-05-07 13:20:02 -0700 (Wed, 07 May 2008)
Log Message:
Merging changes 1590, 1598, and 1600 from 3.0.x to trunk, regarding webservice endpoints
Modified Paths:
blazeds/trunk/build.properties
blazeds/trunk/qa/apps/qa-regress/WEB-INF/server-config.wsdd
blazeds/trunk/qa/apps/qa-regress/WEB-INF/web.xml
blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAP BuilderRound3Import1_WhiteMesaTest.as
blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAP BuilderRound3Import3_WhiteMesaTest.as
blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAP BuilderRound3RPCEncoded.as
Added Paths:
blazeds/trunk/qa/apps/qa-regress/testsuites/flexunit/src/tests/flexunit/wscl/interop/SOAP BuilderRound3Compound1.as
blazeds/trunk/qa/lib/javax_mail.jar
blazeds/trunk/qa/lib/qa-services-wm.jar -
Recovering production database after a loss to Prod database server and SAN
So I was asked this morning... can we recover our database if we lose both the database server and the SAN.
A bit of information:
Database: 10gR2
Using ASM
Backing up to ASM
SAN is onsite
My initial response was of course we backup at least twice a day, and then once a week move those backups to an offsite location.
Then I started thinking about it some more. If we lose the SAN we have offsite backups of the entire SAN once a week so we could recover the SAN. If we were to lose the server we would lose the diskgroups where the backups are being stored.
So my question is… and don’t laugh for me never thinking about it before please lol, but do I need to backup the ASM instance in order to be able to restore ASM to be able to get to my backups which are stored inside ASM diskgroups? If so do I need to do this old school by shutting it down and backing it up since there isn’t any archiving going on? If not does anyone recommend a certain way of going about this type of thing?
Thanks in advance
LukeHi Luke,
I think the answers to your questions are fluid, and can be stated as "it depends". If your SAN backup was created as a "snap", for example, a BCV on EMC systems, then likely you can get all your database in your ASM diskgroups. As long as all the disks in the diskgroups were snapped at the same time. Really, though, your best bet is always an RMAN backup which can be done even if your database is not in archive log mode. You can use rman to stop the database, restart it to mount mode and then back up the entire database, though I would suggest that if this is a production system that you do run in archive log mode.
Cheers!
Jay
http://www.grumpy-dba.com -
Hi all
Apple charged me 8 times $1 while changing the country and purchase from app stores.
Help pls, I want my money backTo Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact -
Copying database objects and data from one server database to another server database in AG group
Hi,
I am still trying to wrap my head around sql clusters and AGs and I have a project that requires I take a vendor's database and restore it weekly so its available on the production server which is clustered.
The vendor's database on the cluster is in an AG group and encrypted.
Right now, I plan to restore the database on a sql staging server and use the SSIS Transfer SQL Server Objects Task to copy the table structure and data from Stage to the Production database of same name and I would first drop the objects in production
database using the same task.
I am concerned that this might cause issues with the passive cluster due to "logging" from active to passive. The database is about 260 MBs and I am not sure how many tables.
Has anyone run into this type of scenario before or have a better solution?
Thanks
SueIF I understand anything about clustered sql and logging, the sql server should take the log file and recreate the same scenario on the passive side of the cluster.
Is that correct?
Hi Sue,
Yes, for AlwaysOn Availability Group, the transaction log is basically replayed from the primary to all of the secondary's.
Besides, from my point of view, as we cannot directly restore a database that is part of an Availability Group, it is a good way using SSIS task to drop and recreate all tables then transfer data from the restored database to the primary replica. Schema changes
and data changes will also happen on the secondary replica.
There are some similar links for your reference.
http://dba.stackexchange.com/questions/21404/do-schema-changes-break-sql-server-2012-alwayson-or-are-they-handled-transpare
http://blogs.msdn.com/b/sqlgardner/archive/2012/08/28/sql-2012-alwayson-and-backups-part-3-restore.aspx
Thanks,
Lydia Zhang
If you have any feedback on our support, please click
here.
Lydia Zhang
TechNet Community Support -
How to change Database server is case-insensitive setting at runtime
Is there a way to change any of the properties in Report Options > General Settings at runtime. Mainly the [Database server is case-insensitive] and [Perform grouping on server] settings. We are using the Crystal .Net X1 runtimes (11.5.9707.811). I have sesrched the forums with no luck so thought I'd try my luck here. Thankyou for your time.
Hi Simon,
Sorry, search for the function using the Object Browser in .NET. If you have Crsytal Reports XI R2 (11.5.x.xxxx) then you have it. Unless it's not a developer version. In whcih case you need to upgrade.
If you do have the Developer version then simply add the RAS assemblies to your project. Look in our samples above for more info on h ow to use RAS.
If you don't have the Developer version then your only options are to upgrade or manually change the report settings in the Designer.
Thank you
Don -
Oracle 9i database server and Space
Hi,
I am new to Oracle. I installed 9i database server ( personal edition) on my machine at home just to play around and get a feel of Oracle. Unfortunately within a month my Harddrive was maxed out to full capacity of 72 Gigs. I had only used 12 Gigs when I first installed Oracle a month ago. I had to uninstall it completely from my computer. I am wondering if anyone has had this problem or how to rectify the problem
Thanks
RishiAs Justin said, verify all trace files.
You can see with sqlplus where they are
SQL> show parameter dump_dest
NAME TYPE VALUE
background_dump_dest string E:\oracle\admin\demo9i\bdump
core_dump_dest string E:\oracle\admin\demo9i\cdump
user_dump_dest string E:\oracle\admin\demo9i\udump
SQL> And you can see the size of each datafiles too, and verify if your undotbs is not in autoextend mode (it can growth) :
1 select substr(file_name,1,50), bytes/1024/1024 SizeMb, autoextensible
2 from dba_data_files
3 union
4 select substr(file_name,1,50), bytes/1024/1024 SizeMb, autoextensible
5 from dba_temp_files
6 union
7 select substr(a.member,1,50), bytes/1024/1024, ' '
8* from v$logfile a, v$log b where a.group#=b.group#
SQL> /
E:\ORACLE\ORADATA\DEMO9I\CWMLITE01.DBF 20 YES
E:\ORACLE\ORADATA\DEMO9I\DRSYS01.DBF 20 YES
E:\ORACLE\ORADATA\DEMO9I\EXAMPLE01.DBF 149,375 YES
E:\ORACLE\ORADATA\DEMO9I\INDX01.DBF 25 YES
E:\ORACLE\ORADATA\DEMO9I\ODM01.DBF 20 YES
E:\ORACLE\ORADATA\DEMO9I\REDO01_1.LOG 100
E:\ORACLE\ORADATA\DEMO9I\REDO02_1.LOG 100
E:\ORACLE\ORADATA\DEMO9I\REDO03_1.LOG 100
E:\ORACLE\ORADATA\DEMO9I\SYSTEM01.DBF 430 YES
E:\ORACLE\ORADATA\DEMO9I\TBS_TST_01.DBF 2 NO
E:\ORACLE\ORADATA\DEMO9I\TEMP01.DBF 40 NO
E:\ORACLE\ORADATA\DEMO9I\TOOLS01.DBF 10 YES
E:\ORACLE\ORADATA\DEMO9I\UNDOTBS01.DBF 405 YES
E:\ORACLE\ORADATA\DEMO9I\USERS01.DBF 25 YES
E:\ORACLE\ORADATA\DEMO9I\XDB01.DBF 46,875 YES
15 rows selected.
SQL> And to verify if you generate archivelog :
SQL> conn / as sysdba
Connected.
SQL> archive log list
Database log mode No Archive Mode
Automatic archival Disabled
Archive destination E:\oracle\ora92\RDBMS
Oldest online log sequence 38
Current log sequence 40
SQL> HTH,
Nicolas.
Message was edited by:
N. Gasparotto
Adding archive log list command -
Dynamically changing the height and width of Stage
Hi,
I would like to know how can I change the height and width of stage dynamically. I tried it with the following code:
Stage.height = 250;
Stage.width = 250;
during the run time. Initially the Stage is at a height and width of 370 and 450 respectively. Also when I tried to trace the height and width of Stage after resizing the stage width and height, its showing the old value of width and height. That means the width and height not chnaging. Anybody have any idea about this.Hi Ross,
I could understand something about the problem after making a research on this topic. We can't change the width and height of stage from actionscript itself, right? I will explain the way I am planning to do. I don't know whether its right or not. Anyway you just go through it. First the player need to be resized, according to the specified height and width. Then in the object tag, there are two fields named height and width. We should change these value according to the specified height and width of video controller, dynamically. Am I right? But I am confused with two properties of Stage such as: align and scaleMode. The code was actually developed my trainer. There, the scaleMode is set to "noScale" and no align property is used. My doubt is how should I set align and scaleMode properties of Stage. Hope you understood what I meant.
Regards,
Sreelash.S. -
How to remove Database Files and Backup from ASM
Hi All,
Oracle Database 11.2.0.3
OEL 5.7
We have a host for restore purposes.
We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
Appreciate any helps.user12028775 wrote:
Hi All,
Oracle Database 11.2.0.3
OEL 5.7
We have a host for restore purposes.
We execute monthly or quarterly restore operations to verify that I am able to restore a subset of the data in the given amount of time or to other purposes.
I have a automated script to Clone the Database, but to Clone Database we need remove the old database from ASM before start this operation. I want remove only Database files and keep the configuration (such as oratab/network/ocr and so on).
Question: There is a easy way to remove these files without connect on ASM or by using DBCA?
Yes... there is a easy way. Use command DROP DATABASE.
Use the DROP DATABASE command to delete the target database and, if RMAN is connected to a recovery catalog, unregister it. RMAN removes all datafiles, online redo logs, and control files belonging to the target database. By default, RMAN prompts for confirmation.
Put this command on your script before clone your database:
RMAN> CONNECT TARGET SYS@test1
RMAN> STARTUP FORCE MOUNT
RMAN> SQL 'ALTER SYSTEM ENABLE RESTRICTED SESSION';
RMAN> DROP DATABASE INCLUDING BACKUPS NOPROMPT;Regards,
Levi Pereira -
Obtain drivers from MS-Server and updates from WSUS
Hi,
is there a possibility to obtain drivers from the MS Server and the "other" updates from the WSUS-Server?
We have workstations with Win7 and XP and pluged in devices (USB) should obtain the drivers (if available) automatically from MS-Server.
Obtaining drivers through WSUS is not an option.
The Group Policy "Computer Configuration\...\Windows Update" is set to obtain updates from "intranet Microsoft update service location".
Should there be no possibility to distinguish between driver and update obtaining locations,
then is it possible to set WSUS as primary obtaining location and as secondary the MS-Serve?
Greets,
EmmanuelLike I mentioned before I tried to use this:
http://technet.microsoft.com/en-us/library/cc753091.aspx
1. Try:
Step1:
I uninstalled the device and deleted the driver of my testing device. (local)
Step2:
I have created a new GP on Server 2003R2x86 (AD/DC) and linked it in the OU where my test-PC is located.
.../ComputerConfiguration/Administrative Templates/System/InternetCommunicationManagement/Internet Communication Settings/TurnOffWindowsUpdateDeviceDriverSearching-->disabled
Step3:
I restarted the test PC with a logonscript: "gpupdate /force"
Result:
It didn't work.
2.Try:
Same procedure, but instead of creating the policy on the '03 Server, I created the policy with RSAT for W7.
Result:
It didn't work.
Now I have a new question:
Isn't the above mentioned policy for this?:
http://windows.microsoft.com/en-us/windows7/automatically-get-recommended-drivers-and-updates-for-your-hardware
I ask, because this is exactly the setting that has to be changed so that everything works the way I want.
(at least for the Win7 PCs. I don't care much about the XP-PCs because they will be replaced in the near future)
Well one option is to change this setting manually on every PC, but this would be a huge PITA.
Can this be done in a policy or with a script (registry?)? -
I'm looking for a solution where I don't change our current AD groups, (avoid using a local group and a field group), also trying to avoid using a server in a DMZ to handle field people (will need to buy a new server).
At the end i'm looking to use a replica server to push updates from the internet to the field group (or OU with a GPO pointing to such replica server) and use the local server to host the updates locally and push to the office people.
Probably this is the question that needs to be answered, can an OU group have 2 different GPO's pointing to 2 different WSUS servers (local and replica) (local updates vs updates from internet) and if an user of such group is in the office they get updates
from the local server and if he is in the field get the updates from the replica server? I know GPO's can have precedence set to the OU, but do they work like a trigger or something that tells them to go to the next GPO.
Thanks in advancecan an OU group have 2 different GPO's pointing to 2 different WSUS servers (local and replica) (local updates vs updates from internet)
No.
and if an user of such group is in the office they get updates from the local server and if he is in the field get the updates from the replica server?
There are two ways to achieve this. Typically we talk about this scenario when the mobile systems are going to use AU/WU to get Security Updates. Taking advantage of the fact that GROUP policy cannot refresh on a machine which is not "in the office", you
define a Registry Script to run in the user's STARTUP folder, which will set the registry values to configure that client to use the alternate source.
But, in the case where you have an Internet-facing WSUS server in the DMZ, and a Corporate-facing WSUS server on the LAN, you use the SAME URL, but use DNS to direct the client to the correct IP Address. When the client is on the LAN, the LAN DNS gives the
IP Address of the Corporate server; when the client is on the Internet, the Internet DNS gives the IP Address of the DMZ server.
Lawrence Garvin, M.S., MCSA, MCITP:EA, MCDBA
SolarWinds Head Geek
Microsoft MVP - Software Packaging, Deployment & Servicing (2005-2014)
My MVP Profile: http://mvp.microsoft.com/en-us/mvp/Lawrence%20R%20Garvin-32101
http://www.solarwinds.com/gotmicrosoft
The views expressed on this post are mine and do not necessarily reflect the views of SolarWinds. -
Dynamically Changing Database Connections Information
Post Author: Robert Flaherty
CA Forum: .NET
USing Crystal 2008 and Visual Studio 2008 in C#:
Below is the code that I am using to set the database connection at runtime. This does not work when the Server/Database is different from the Server/Database that was used when the report was generated. What happens is a dialog box appears with the original connection information, The textbox for the server and the database are disabled.
public partial class ViewOrder : Form
string sqlStmt;
public ViewOrder(string SqlStmt)
InitializeComponent();
GlobalVaribles gv = GlobalVaribles.Instance;
sqlStmt=SqlStmt;
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = gv.Server;
connectionInfo.DatabaseName = gv.Database;
connectionInfo.UserID = gv.UserID;
connectionInfo.Password = gv.Password;
crystalReportViewer1.SelectionFormula = sqlStmt;
string reportPath = Util.BuildFileName(gv.ReportPath, "Order001.Rpt");
crystalReportViewer1.ReportSource = reportPath;
crystalReportViewer1.ShowGroupTreeButton = true;
crystalReportViewer1.EnableDrillDown = false;
SetDBLogonForReport(connectionInfo);
private void SetDBLogonForReport(ConnectionInfo connectionInfo)
TableLogOnInfos tableLogOnInfos = crystalReportViewer1.LogOnInfo;
foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
tableLogOnInfo.ConnectionInfo = connectionInfo;Post Author: Robert Flaherty
CA Forum: .NET
USing Crystal 2008 and Visual Studio 2008 in C#:
Below is the code that I am using to set the database connection at runtime. This does not work when the Server/Database is different from the Server/Database that was used when the report was generated. What happens is a dialog box appears with the original connection information, The textbox for the server and the database are disabled.
public partial class ViewOrder : Form
string sqlStmt;
public ViewOrder(string SqlStmt)
InitializeComponent();
GlobalVaribles gv = GlobalVaribles.Instance;
sqlStmt=SqlStmt;
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = gv.Server;
connectionInfo.DatabaseName = gv.Database;
connectionInfo.UserID = gv.UserID;
connectionInfo.Password = gv.Password;
crystalReportViewer1.SelectionFormula = sqlStmt;
string reportPath = Util.BuildFileName(gv.ReportPath, "Order001.Rpt");
crystalReportViewer1.ReportSource = reportPath;
crystalReportViewer1.ShowGroupTreeButton = true;
crystalReportViewer1.EnableDrillDown = false;
SetDBLogonForReport(connectionInfo);
private void SetDBLogonForReport(ConnectionInfo connectionInfo)
TableLogOnInfos tableLogOnInfos = crystalReportViewer1.LogOnInfo;
foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
tableLogOnInfo.ConnectionInfo = connectionInfo; -
How to make upgrade from application server and not from central instance?
Hello SAP Gurus!
I have SAP ECC release 6.0, and I´m gonna make upgrade to enhancement package 6.06, do you know if Can I make upgrade from application server, but not from central instance?
Thanks.Hi Victor,
Upgrade process has to execute from the server where message server is running.
So I guess it is not possible to initiate the SAP upgrade from application server.
Regards,
Deepak Kori
Maybe you are looking for
-
I am new to apple and the ipod touch. I created an apple ID in my name and used my daughter's ipod touch to enter a gift card as required. She has $15 and I then created her an apple ID for herself that she is using on her touch. How do I transfe
-
Adding resize handles to a rectangle to resize and drag in a canvas
Hi I am having difficulty for the last couple days in getting a rectangle in java 2d to addshape handles to the corners which will allow me to resized the rectangle and then and dragged within the canvas using these handles. Also to get the shape on
-
What happened to my toolbar?
I have an application that uses the acro32.pdf library. I have Acrobat X installed on my machine. I did an update this morning and the toolbar is completely gone from my application. The same result with people running Reader X.
-
Problem with tonal range output in RGB Colour Corrector
Hi I'm trying to output just the tonal range in RGB Colour Corrector but when I choose it nothing changes in the program window. I have three options: Composite / Luma / Tonal Range. The first two work fine but clicking on the third makes no change a
-
hello friends, I am trying to read a 'C' file and trying to look for all the lines in the 'C' cod, wherever a function call has happened. How could I do that ?? Thanks ashu