Changed Database Service Tier resulted in lots of "Timeout-expired-errors"
Last night I changed database service tier from Web Edition to Standard S0. Since then we are getting a lot of errors like this:
"Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding."
Before the change we had no such errors. I have tried to make a new deployment of our cloud services but it doesn't change anything. It still fill the error logs with timeout-expired-errors and the site itself seems to be significantly slower than before.
What's the problem? I assume the Standard S0 service tier should be sufficient in performance. We don't have much traffic on the site.
Hope someone can shed a light...
Folks we know that changing business models is a hard thing to do. In the Web/Business case, you pay on size of the DB and you get whatever performance we have at the time. Sometimes this is great, other times this is ok and sometimes performance
is very poor. Customers have given us feedback that this unpredictable performance is very difficult to deal with.
Using this feedback as a key input, the business model for Basic/Standard/Premium is $/perf. As Jan points out below, understanding what resources your consuming is a great first step before moving to B/S/P.
Your mileage may vary here. Many customers see a decrease because of this business model change. Others see no impact, and some will see an increase if their DBs are very small and consume a lot of resources.
Jan, I and the team would be happy to help customers move into the new business model. To have great conversations will need some customer specifics that aren't best shared in a public forum. guyhay@microsoft is my email if you'd like to have
that conversation.
Similar Messages
-
EWS service calls not responding. No timeout, no error, no response
Hi.
I'm using the EWS Managed API v2.2 to make EWS calls to Exchange 2010 SP1 on premises. The referenced code is a C# client application running in .Net 3.5 on a Windows 2008 server.
Recently at one of my customers, we have a weird situation where service calls, any service call,never receives a response.
We are setting an explicit timeout, surrounding service calls with logging and are using EWS trace listening. The listener show the EWSRequest SOAP message, and that's it. The logging shows the "before service call" log entry but not the
"after service call" entry.
I suspected throttling might be behind it and have temporarily removed the EWS throttling limits to no effect and in any case, I would expect an error response if throttling was kicking in.
This is how the service is initialised:
public ExchangeWebService(string username, string password, string emailAddress, string exchangeUrl, string exchangeVersion)
ExchangeVersion exVersion = (ExchangeVersion)Enum.Parse(typeof(ExchangeVersion), exchangeVersion);
_exchangeService = CreateExchangeService(username, password, emailAddress, exchangeUrl, exVersion);
_exchangeService.Timeout = 30000;
private static ExchangeService CreateExchangeService(string username, string password, string emailAddress,
string exchangeUrl, ExchangeVersion exchangeVersion)
IntegrationLogging _il = new IntegrationLogging(Constants.LoggingSourceName);
ExchangeService service = new ExchangeService(exchangeVersion);
QualifiedUserName qualifiedName = new QualifiedUserName(username);
NetworkCredential credentials = new NetworkCredential(qualifiedName.UserName, password);
if (qualifiedName.HasDomain)
credentials.Domain = qualifiedName.Domain;
service.Credentials = credentials;
if (string.IsNullOrEmpty(exchangeUrl))
if (string.IsNullOrEmpty(emailAddress))
throw new ArgumentException("emailAddress and exchangeUrl parameters cannot both be empty");
else
_il.WriteTrace(string.Format("CreateExchangeService using auto discovery with email address {0} and user name {1}. {2}", emailAddress, username, Environment.StackTrace));
service.AutodiscoverUrl(emailAddress);
else
_il.WriteTrace(string.Format("CreateExchangeService using EWS URI {0} and user name {1}", exchangeUrl, username));
service.Url = new Uri(exchangeUrl);
return service;
From one of the methods that never returns, we get the first log entry but not the second and our perf monitor shows the thread still running at the line of the service call.
_il.WriteTrace("ConvertInternalIdToEwsId:mailboxAddress=" + mailboxAddress);
AlternateIdBase _altBase = _exchangeService.ConvertId(_alternateId, IdFormat.EwsId);
_il.WriteTrace("ConvertInternalIdToEwsId:Returned from call");
return ((AlternateId)_altBase).UniqueId;
The service instance is of type `Microsoft.Exchange.WebServices.Data.ExchangeService`.
This problem seems to be intermittent. How can a call not result in a response, an exception or a timeout?
Thanks
SimonDid you check the IIS logs on the target server, to make sure that the EWS requests are actually reaching it?
OWA For SmartPhone -
Concerns over switching between new Azure SQL Database Service Tiers
Windows Azure's new SQL Database
service tier pricing model will be put into effect in less than 12 months. We currently have SQL Databases on the Business and Web Edition pricing models.
We recently asked Azure Support a number of questions around the scalability and ability to switch between these tiers. The responses so far have been far from encouraging:
Q: If we exceed the criteria for a given tier (see http://msdn.microsoft.com/library/azure/dn741336.aspx), how will Azure respond? For example, if we are on the S1 service tier, and we exceed the maximum number of sessions (200), will any new sessions be
blocked until we manually increase the service tier? Or will you automatically move (and bill) us to/for the next tier level?
A: If you exceed the criteria of the existing tier, you shall be notified of performance issue like throttling. Users may experience slowness and blocking. There will not be any automatic upgrade.
Q: So to confirm, if we suddenly experience increased, unanticipated client activity overnight due to our web site becoming more popular, you will be blocking any user sessions over and above our performance level limit, until we manually make the transition
to the next level? Is there no “overdraft” facility/scalability in this respect? If this scenario took place within a short space of time, how would we have time to react? Simply blocking new sessions and preventing customers from using our site is not acceptable.
A: I’m sure you understand that SQL Azure database is a shared resource and hence we cap the resources for individual subscription so that a fair service is provided to all the concurrent users. If you feel that you cannot compromise on the user experience
then you shall think of an edition that best suits you. Please refer to the following document to best understand the throttling and its impact. http://social.technet.microsoft.com/wiki/contents/articles/1541.windows-azure-sql-database-connection-management.aspx#Throttling_Limits
Q: Since the changing of the performance level could take several minutes/hours depending on the size of the database, would we experience any downtime/degradation of performance of the database during this period?
A: You might
Q: If downtime/degradation of performance are a possibility whilst we switch service tiers, what do Microsoft recommend we do to safeguard against this? Should we create a second database on a higher tier level and then export the data from the lower tier and
import to the higher, before switching over? How do Microsoft recommend we switch tiers in a production environment with minimal disruption?
A: If you want to upgrade the tiers due to degradation of performance, you will have to create another database on a higher tier and import the data.
One of our key reasons for moving to Azure hosting was the seamless scalability it appeared to offered. As you can imagine, the responses above are a major concern for our production environment. Does anyone else have any thoughts or concerns in this respect?James,
I reviewed the support incident you referred to and believe that the questions you asked may have been answered later in the interaction you had with the engineer. For the benefit of others viewing this forum I want to reiterate the answers
to your key questions here as well.
Q. What is the behavior when you reach the limits for the service tier?
A. Each service tier currently has limits on 4 different dimensions (CPU, physical reads, log writes and memory) of resource consumption. When you reach one of the limits, the behavior depends on which resource limit you are hitting, but
generally speaking is consistent with the behavior you would see with a similar hardware limit in the SQL Server box product. For example, when you reach the CPU limit your queries will start showing more SOS_SCHEDULER_YIELD waits,
the memory limit will cause a higher percentage of pages to be read from disk instead of the buffer cache (PAGEIOLATCH_xx waits), etc. This set of limits does not directly abort any of your queries--they just run longer as they
vie for the fixed set of resources made available to your database. In a system where the load greatly exceeds the resources, queries may start to time out.
The new service tiers continue with the Web/Business edition behavior of limiting the number of sessions and concurrent requests (worker threads) you can have. When you exceed these limits you'll get error 10928. Note that
each tier in Basic/Standard/Premium have different values for these limits (http://msdn.microsoft.com/en-us/library/azure/dn369873.aspx) than Web/Business and thus may encounter the errors at different usage levels. The key is choosing the appropriate
service level for the application, and to facilitate that the sys.resource_stats view shows historical usage information so you know where you stand as far as reaching any of the limits. This resource consumption data is also available in the portal.
Q. Is it possible to switch service tiers, and is there any disruption when you do so?
A. Yes, you can change between service tiers as described in this MSDN documentation (http://msdn.microsoft.com/en-us/library/azure/dn369872.aspx). This can be done through the portal, powershell, or REST APIs. [The preview currently has a restriction
where legacy servers don't support switching to Basic/Standard which is expected to be removed in the near future.] The link above outlines the limits on the number of tier changes you can do in a 24 hour period, expected time to perform the change, and
the client disconnect that occurs.
If you have further questions, feel free to re-engage on the support incident or reply to this forum thread. -
Column order is changed in criteria tab ,result tab column order unchanged
I created a report in sample database with these columns in 11.1.1.6
1- C50 Region 2 D1 Office, 3 P1 Product 4 1-Revenue and 5 C1 Customer Name
Hit Results and I can see the result in this order.
If I change column order in result tab to say 1,5,2,3,4, result tab table view is updated. Now if I go back to criteria tab, column order remains the same ( 1,2,3,4,5)
This may be expected functionality in 11.1.1.6 but was not the case in 10g. This may be due to changes allowed in html layer.
Now if I go back to criteria tab and reorder columns (say 1,3,2,4,5) and then click result, result tab columns are not ordered as set here. Result tab continues to show 1,2,3,4,5
I saved the report with order 1,3,2,4,5 and log back in, order remains 1,2,3,45/ I believe if I restart presentation services, it will be come OK. The only way is to create a new report that I know now other than restarting presentation service.
Question
Have you observed this?
If yes, what is the solution, how can result tab refresh with the order of the columns in criteria tab?
BhupendraHi,
In OBI 11g,the column order in the criteria tab and the results tab are not coupled to each other.
When you create the report for the first time, both are in sync. If you need to reorder the columns, goto result tab and click on edit report, in the columns and measures section of the report, reorder the columns the way you desire.
Save the report and the report should have the columns in the order you have set.
P.S : this is not a bug !
Thanks,
Vineeth -
Change in service name in a connector
Hi,
I have a connector in OWB 10g R2 which currently points to an instance of Oracle 10g. The DBA has changed the service name. I want to update the connector to point to this new service name.
Is there any way to just change the service name of the location instead of creating a new location and changing the objects to point to this new location?
Thanks in advance!
MaruthiHi Maruthi,
I am not sure if that is what you mean but I don't think you necessarily need to change lots of objects. If you add a new location and then add that location to the selected database locations for your database modules (via open editor - data locations tab) and check/set (via right mouse click - configure) in the configuration properties that you are using the new data location.
I haven't had the need to do this myslef, but this way you should only need to update some database modules instead of all objects?
Hope this helps,
Regards,
Ed -
11gR2 Install Error, Listener is not up or database service is not registered with it
Hi all,
I'm currently studying towards my OCA, I've passed 1z0-051 (SQL Fundementals I), and now I'm moving onto 1z0-052 (Admin 1).
Im really having trouble creating a database in Oracle 11g R2 Enterprise Edition. I install the software no problem. Then I create a database, and during the creation I have to createsa listener which uses TCP (default port:1521) and IPC. whilst creating the database I get the following error
'Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM configuration Assistant again.'
Now, before you lynch me, I have searched this forum for answer to this for a day and a half. I've also tried google, i just can't find a answer that sorts out my problem. please assist me.
I'm running on Windows 7 Professional (32bit) (I have previously tried on the 64 bit version with teh same results).
Here's teh contents of my listener.ora file:
# listener.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
# Generated by Oracle configuration tools.
SID_LIST_LISTENER =
(SID_LIST =
(SID_DESC =
(SID_NAME = CLRExtProc)
(ORACLE_HOME = C:\app\Damien\product\11.2.0\dbhome_1)
(PROGRAM = extproc)
(ENVS = "EXTPROC_DLLS=ONLY:C:\app\Damien\product\11.2.0\dbhome_1\bin\oraclr11.dll")
LISTENER =
(DESCRIPTION_LIST =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = IPC)(KEY = ipc))
(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.10.4)(PORT = 1521))
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
ADR_BASE_LISTENER = C:\app\Damien
Here's the contents of my tsnames.ora:
# tnsnames.ora Network Configuration File: C:\app\Damien\product\11.2.0\dbhome_1\network\admin\tnsnames.ora
# Generated by Oracle configuration tools.
ORACLR_CONNECTION_DATA =
(DESCRIPTION =
(ADDRESS_LIST =
(ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC1521))
(CONNECT_DATA =
(SID = CLRExtProc)
(PRESENTATION = RO)
Here is the last fe lines of my emConfig.log:
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil isLocalConnectionRequired
CONFIG: isLocalConnectionRequired: true
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngine
CONFIG: isLocalConnectionRequired: true. Connecting to database instance locally.
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine connecting with SID: orcl, oracleHome: C:\app\Damien\product\11.2.0\dbhome_1, and user: SYSMAN
Jan 18, 2014 9:38:22 AM oracle.sysman.emcp.util.GeneralUtil initSQLEngineLoacly
CONFIG: SQLEngine created successfully and connected
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.ParamsManager checkListenerStatusForDBControl
CONFIG: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-12514: TNS:listener does not currently know of service requested in connect descriptor
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeImpl(SQLEngine.java:1655)
at oracle.sysman.assistants.util.sqlEngine.SQLEngine.executeSql(SQLEngine.java:1903)
at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3230)
at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
Refer to the log file at C:\app\Damien\cfgtoollogs\dbca\orcl\emConfig.log for more details.
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig perform
CONFIG: Stack Trace:
oracle.sysman.emcp.exception.EMConfigException: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
at oracle.sysman.emcp.ParamsManager.checkListenerStatusForDBControl(ParamsManager.java:3245)
at oracle.sysman.emcp.EMReposConfig.unlockMGMTAccount(EMReposConfig.java:1001)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:346)
at oracle.sysman.emcp.EMReposConfig.invoke(EMReposConfig.java:158)
at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:253)
at oracle.sysman.assistants.util.em.EMConfiguration.run(EMConfiguration.java:583)
at oracle.sysman.assistants.dbca.backend.PostDBCreationStep.executeImpl(PostDBCreationStep.java:968)
at oracle.sysman.assistants.util.step.BasicStep.execute(BasicStep.java:210)
at oracle.sysman.assistants.util.step.Step.execute(Step.java:140)
at oracle.sysman.assistants.util.step.StepContext$ModeRunner.run(StepContext.java:2667)
at java.lang.Thread.run(Thread.java:595)
Jan 18, 2014 9:38:23 AM oracle.sysman.emcp.EMConfig restoreOuiLoc
CONFIG: Restoring oracle.installer.oui_loc to C:\app\Damien\product\11.2.0\dbhome_1\oui
My Listner status output is here:
LSNRCTL for 32-bit Windows: Version 11.2.0.1.0 - Production on 18-JAN-2014 10:14:39
Copyright (c) 1991, 2010, Oracle. All rights reserved.
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=ipc)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for 32-bit Windows: Version 11.2.0.1.0 - Production
Start Date 18-JAN-2014 09:27:34
Uptime 0 days 0 hr. 47 min. 6 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File C:\app\Damien\product\11.2.0\dbhome_1\network\admin\listener.ora
Listener Log File c:\app\damien\diag\tnslsnr\LONDON\listener\alert\log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\ipcipc)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.10.4)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(PIPENAME=\\.\pipe\EXTPROC1521ipc)))
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
The command completed successfully
I can login as sys into my database through sqlplus, so it seems the database is up and running, it just seems to be a listener problem maybe??
Many thanks for any assistance that you give. I'm learning so be gentle...
DamienSOLVED!
OK all solved now, thanks to the link to Ed Stevens website that Baris posted (mucho respect )
Seems that like Barus said I was not using Dynamic Registration, which means that I would need to manua
ly update the listerner.ora file. On top of that it seems that for some my tnsnames.ora wasn't resolving mt database name so the tnsping wasfailing.
What I did to solve the name resolution problem
1. Opened the
Network Configuration Assistant and saw that my listener didnt have my DB registered with it. So I added it. What this horrible GUI tool does is update the tnsnames and listener.ora files for you. So once that was done I went to the command prompt and did ;'tnsping <dn name> and hey presto it was getting a nice response.
Then I re-ran my DB Configuration Assistant and tried to reconfigure my database. However it aing failed and gave me the same message that I was originally getting about the DB Service not being registered etc..the lister status still said that same thing:
Services Summary...
Service "CLRExtProc" has 1 instance(s).
Instance "CLRExtProc", status UNKNOWN, has 1 handler(s) for this service...
the 'unknown' means that the DB didnt tell the listener that it was there but instead the listener is in manual mode and will just use the configuration in the listener.ora to know where the DB is.
So then I followed the steps on the ED Stevens website (follow the link). He has steps which show how to enable Dynanmic registration so that your DB regusters itself with the listener. In a nutshell, he states that he listener actually doesnt need the listerner.ora if using dynamic registration. I shutdown the DB, stopped the listener then I renamed the lsitener.ora to listerner.old, then started the lietener and checked the status and it said 'the listener supports no service' I then started the DB and, then resched teh listener status, it then read 'status: READY'... hooray!, the DB had dynamically registered itself with the listener. I then was able to successfully start up and run Enterprise Manager.
Thanks for all your help Baris, and Ed Steven website.
I know more now than when I started so I'm happy.
Thanks. -
Dump during save the solution in Solution Database (Service Desk)
Hello!
I use the functionality of Service Desk within SAP Solution Manager 4.0 (SP13).
Currentyl I am facing with the error during operation "Create of solution in Solution Database", when I try to save solution in SDB.
<i>The following error text was processed in the system SSM : The ABAP/4 Open SQL array insert results in duplicate database records. records in the data base.
The error occurred on the application server <> and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Function: ISMV_POST_SYMP of program SAPLISMV
Function: ISMV_GENERATE_SYMPTOM of program SAPLISMV
Form: GENERATE_SYMPTOM of program SAPLISMB
Form: POST_SYMPTOM of program SAPLISMB
Form: %_PROCESS_P_O_C of program SAPMSSY0
Form: %_COMMIT of program SAPMSSY0
Method: CREATE_SDB_SYM_SOL of program CL_SDK_SDB_NOTIFICATION=======CP
Method: SAVE_WORK of program /1BCWDY/247RJ8VA8ISK2P37WABF==CP
Method: IF_COMPONENTCONTROLLER~SAVE_WORK of program /1BCWDY/247RJ8VA8ISK2P37WABF==CP
Method: ONACTIONBTN_SAVE of program /1BCWDY/247RJ8VA8ISK2P37WABF==CP</i>
My questions are:
<b>- Should TREX also be installed with SAP Solution Manager or can one existing from other SAP system be used?
- Is there some SPRO steps to be executed in order to create and save solution in SDB?</b>
Thank you very much!
regards
ThomHi
check the sap note 1124452 and implement the correction instruction or make a program with Zcode implementation.
Reagrs,
Vijay. -
Hello,
I am trying to install Microsoft SQL Server 2008 R2. I get the error bellow (Database Services Engine Failed, SQL Server Replication Failed, Full Text Search Failed, Reporting Services Failed). I already have a copy of SQL Server 2008 R2 on the machine.
I want to create a new named instance of SQL Server for some software I'm installing.
The error is below.
Any help would be much appreciated, thanks!
Overall summary:
Final result: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
rerun SQL Server Setup.
Exit code (Decimal): -595541211
Exit facility code: 1152
Exit error code: 49957
Exit message: SQL Server installation failed. To continue, investigate the reason for the failure, correct the problem, uninstall SQL Server, and then
rerun SQL Server Setup.
Start time: 2014-02-06 09:14:09
End time: 2014-02-06 11:18:16
Requested action: Install
Log with failure: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
Exception help link: http%3a%2f%2fgo.microsoft.com%2ffwlink%3fLinkId%3d20476%26ProdName%3dMicrosoft%2bSQL%2bServer%26EvtSrc%3dsetup.rll%26EvtID%3d50000%26ProdVer%3d10.50.2500.0%26EvtType%3d0x44D4F75E%400xDC80C325
Machine Properties:
Machine name: BAHPBZ52TY
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID
Feature Language
Edition Version Clustered
Sql Server 2008 R2 SQLEXPRESS MSSQL10_50.SQLEXPRESS Database Engine Services
1033 Express Edition 10.50.1600.1 No
Sql Server 2008 R2
Management Tools - Basic 1033 Express Edition
10.50.1600.1 No
Package properties:
Description: SQL Server Database Services 2008 R2
ProductName: SQL Server 2008 R2
Type: RTM
Version: 10
Installation location: c:\c7ced2c86d6b9813b28186cc831c2054\x64\setup\
Installation edition: EXPRESS_ADVANCED
Slipstream: True
SP Level 1
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: True
AGTSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Disabled
ASBACKUPDIR: Backup
ASCOLLATION: Latin1_General_CI_AS
ASCONFIGDIR: Config
ASDATADIR: Data
ASDOMAINGROUP: <empty>
ASLOGDIR: Log
ASPROVIDERMSOLAP: 1
ASSVCACCOUNT: <empty>
ASSVCPASSWORD: *****
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: <empty>
ASTEMPDIR: Temp
BROWSERSVCSTARTUPTYPE: Disabled
CONFIGURATIONFILE:
CUSOURCE:
ENABLERANU: True
ENU: True
ERRORREPORTING: False
FARMACCOUNT: <empty>
FARMADMINPORT: 0
FARMPASSWORD: *****
FEATURES: SQLENGINE,REPLICATION,FULLTEXT,RS,SSMS,SNAC_SDK,OCS
FILESTREAMLEVEL: 0
FILESTREAMSHARENAME: <empty>
FTSVCACCOUNT: NT AUTHORITY\LOCAL SERVICE
FTSVCPASSWORD: *****
HELP: False
INDICATEPROGRESS: False
INSTALLSHAREDDIR: c:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: c:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: aedt2bSQL
INSTANCENAME: AEDT2BSQL
ISSVCACCOUNT: NT AUTHORITY\NetworkService
ISSVCPASSWORD: *****
ISSVCSTARTUPTYPE: Automatic
NPENABLED: 0
PASSPHRASE: *****
PCUSOURCE: c:\c7ced2c86d6b9813b28186cc831c2054\PCUSOURCE
PID: *****
QUIET: False
QUIETSIMPLE: False
ROLE: AllFeatures_WithDefaults
RSINSTALLMODE: DefaultNativeMode
RSSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
RSSVCPASSWORD: *****
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: SQL_Latin1_General_CP1_CI_AS
SQLSVCACCOUNT: NT AUTHORITY\NETWORK SERVICE
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: BAH\568385
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: False
TCPENABLED: 0
UIMODE: AutoAdvance
X86: False
Configuration file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\ConfigurationFile.ini
Detailed results:
Feature: Database Engine Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xDC80C325
Configuration error description: Access is denied
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
Feature: SQL Client Connectivity SDK
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: SQL Server Replication
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xDC80C325
Configuration error description: Access is denied
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
Feature: Full-Text Search
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xDC80C325
Configuration error description: Access is denied
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
Feature: Reporting Services
Status: Failed: see logs for details
MSI status: Passed
Configuration status: Failed: see details below
Configuration error code: 0xDC80C325
Configuration error description: Access is denied
Configuration log: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\Detail.txt
Feature: Management Tools - Basic
Status: Passed
MSI status: Passed
Configuration status: Passed
Feature: Microsoft Sync Framework
Status: Passed
MSI status: Passed
Configuration status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\100\Setup Bootstrap\Log\20140206_091302\SystemConfigurationCheck_Report.htmHello,
If you see error descriptioon it gives access denied so basically it is because of some access issue.I guess You must be using some domin account for installation make sure it is added as local administrator also instead of using NT Authority network
service as SQL server service account use local system account .
Below link would help
http://serverfault.com/questions/212135/access-is-denied-error-installing-sql-server-2008-on-windows-7
You can also browse to setup.exe file and RK on it and select run as administrator
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
SSRS 2012, SQL Server 2012. Problem with changing database
Hi all!
I have a problem with changing database for SSRS.
I have a SSRS 2012 and SQL Server 2012. These programs is on WIndows Server 2012.
I need to link SSRS to the new database instance. For this I run SSRS Configeration Manager, open tab Database, click Change Database. Then I choose option "Choose an existing report server database", click Next, write the server name, test
connection (it's successed) and push Next again. Then I see this error message:
Error
The feature: "Using other editions of SQL Server for report data sources and/or the report server database" is not supported in this edition of Reporting Services.
OK
I'm confused, cause I have compatible versions of programs and THIS error.
Please, help me.
Thanks.Hi Kirill,
From the error message, we can know that the issue may be caused by incorrect editions of SQL Server for report data sources are used as the Report Server Database.
When creating a report server database, please be aware that not all editions of SQL Server can be used to host the database. So we should make sure that we have used the correct database as the
Report Server Database. For more details, please refer to the “Report Server Database Server Edition Requirements” section in the following document:
http://technet.microsoft.com/en-us/library/cc645993.aspx
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
Changing databases from MS SQL Express to MySQL in a Report at runtime
Hi all,
I have an issue in changing databases from MS SQL Express to MYSQL or vice versa in a Report at runtime.
Here is what I do:
I create a very simple report with the Crystal Report Designer 2008 V 12.3.0.601.
This report uses a stored procedure to retrieve it's data. I connect to the Database with JDBC.
I have two Databases with similar schema and procedures: MS SQL Express an MySQL.
When I create the report with MSSQL all parameters have the '@' character, as they are named. ok.
I deploy this report in a JSP application with the crystaldecisions SDK an show it in html viewer format.
The connection to the MSSQL DB gets established by my JSP and the CRJavaHelper.
I pass the parameters through my URL to the JSP and finally to the CRJavaHelper (addDiscreteParameterValue)
and everything works fine.
The challenge starts, when I try to change the Datasource of this report to MySQL at runtime (which is a requirement in my project).
I successfully can establish the DBConnection, but my stored procedure just doesn't get called!
The report just displays totally empty, no Exceptions etc. are thrown. In the DB logfile I see the effort to find my procedure
and that's all. The Statements called by the SDK finds the correct Procedure, but there's no call to the procedure.
Of course I know, that MS SQL names it's procedures slightly different (';1' at the end), but even when I rename the table Alias to the correct name in CRHelperJava, I get no call to the procedure in MySQL. I also renamed the parameter-fields in changeDataSource(..) by casting the table to IProcedure and working on its methods. Still no success.
What am I missing to do or what do I do wrong?
Any suggestions or even solutions?
Best Regards,
Tomafter all I have managed to set param Values, now I'm stuck because the parms seem to have dissappeared in the formula fields. E.g. I receive this Exception:
<br><br>
com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
Dieser Feldname ist unbekannt.---- Error code:-2147467259 Error code name:failed
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:733)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)
at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)
at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)
at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)
at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)
at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)
at com.crystaldecisions.sdk.occa.report.application.RowsetController.getSQLStatement(SourceFile:1485)
at org.apache.jsp.report_jsp._jspService(report_jsp.java:360)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
at java.lang.Thread.run(Unknown Source)
Caused by: com.crystaldecisions.reports.dataengine.DataEngineException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
Dieser Feldname ist unbekannt.
at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:692)
at com.crystaldecisions.reports.dataengine.DataSourceManager.new(SourceFile:607)
at com.crystaldecisions.reports.dataengine.DataSourceManagerCoordinator.a(SourceFile:505)
at com.crystaldecisions.reports.dataengine.DataSourceManager.a(SourceFile:1060)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:729)
at com.crystaldecisions.reports.dataengine.DataProcessor2.a(SourceFile:699)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.i(SourceFile:1308)
at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.k(SourceFile:1297)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1310)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)
... 32 more
Caused by: com.crystaldecisions.reports.formulas.FormulaException: Ausnahme in Formel ""{@DurationMin}"" bei ""{dataProc.Duration}"":
Dieser Feldname ist unbekannt.
at com.crystaldecisions.reports.formulas.o.a(SourceFile:1041)
at com.crystaldecisions.reports.formulas.o.do(SourceFile:1013)
at com.crystaldecisions.reports.formulas.o.new(SourceFile:688)
at com.crystaldecisions.reports.formulas.o.else(SourceFile:459)
at com.crystaldecisions.reports.formulas.f.void(SourceFile:65)
at com.crystaldecisions.reports.formulas.FormulaParser.a(SourceFile:345)
at com.crystaldecisions.reports.formulas.r.a(SourceFile:89)
at com.crystaldecisions.reports.formulas.FormulaInfo.a(SourceFile:570)
at com.crystaldecisions.reports.formulas.FormulaService.compile(SourceFile:347)
at com.crystaldecisions.reports.reportdefinition.FormulaCompiler.a(SourceFile:139)
at com.crystaldecisions.reports.reportdefinition.FormulaFieldDefinitionBase.compile(SourceFile:928)
at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1360)
at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:1348)
at com.crystaldecisions.reports.reportdefinition.o.a(SourceFile:4225)
at com.crystaldecisions.reports.dataengine.DataSourceManager.do(SourceFile:687)
... 41 more
<br><br>
where dataProc is my stored procedure and @DurationMin is a function field.
do I have to call verifyDatabase() when I have changed DBs and set the param Values?
Is there a defined sequence to execute these steps?
Edited by: tomspengler on Dec 8, 2011 1:55 PM -
Resolve database service name using in SQL
Hi all!
My question is:
Is it possible to resolve database service name (e.g. TNS) from SQL only (without logging into the server with oracle user and execute tnsping)?
I'll give you a bit background about my question:
In DataGuard, if you query v$archive_dest, you can see the SERVICE NAME of the standby database in the STANDBY records. I would like to know what is the real server name and database instance of the standby database.
I don't want to login to the primary server with oracle user (let's say that I can not - it's a program really, not me...).
Let's also say that the only user I have is a read-only user to the database (with grants to all tables and views, but cannot execute privileged DBMS sys packages).
Running "SQL> host tnsping NAME" doesn't do the job, since this is only for SQL plus.
Doe's anyone have any idea? maybe v$ view that contains the TNS resolution (tried to find, no success)? maybe a tnsping alike command/function?
Thanks a lot!
MaayanMaayanB wrote:
I'll explain the reason.
I'm working on an agentless product that connects to databases, storage and hosts, and models them into a small CMDB.
Since my product needs to model the "STANDBY" relationship between primary and standby DataGuard databases - I need to be able to resolve the value of the "DESTINATION" field from "V$ARCHIVE_DEST", where TARGET IN ('STANDBY','REMOTE').
I could login to the server and execute "tnsping DBNAME", but the problem is that when a server has more than one ORACLE_HOME (hence, more than one tnsname.ora file), I need to make sure that the user I'm using to login to the server has all environment variables conigured properly for each database installed on the server (BTW, the unix user is also a "naked" user with no privileges except the sudo's defined for it).
So I assume that the best way to be sure that the environment variables are correctly defined is when I login to the database.
This is the reason I need to resolve service names using SQL.
BTW, the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo log files to the standby server - and I'd like to resolve it the same way (or other, if not possible). If it uses the sys privileges, and it executes the package that lets you execute something on the server ("tnsping", in this case), and this is the only way it can be done - I need to start thinking on a different way to resolve the problem.What you are missing is that when "the database process somehow uses the Oracle Net Services to resolve the same value when it sends the redo . . ." is that Net services is NOT just resolving the name for the database. It is also handling the actual transport of the files. That name resolution is not passed back to the database.
>
Anyway, I'm not a hacker or something alike, It's just that my product doesn't know how to pick up the phone and dial :) -
Changing Reporting Services Account via SMO
I am in the process of changing our Service Accounts to use virtual accounts in place of using local accounts. I am using SMO to change the SQL Server, SQL Server Agent and Analysis Services accounts to the virtual account and works great. Question
I have, can the Reporting Services account be changed via SMO without disrupting Reporting Services? In the past, an DBA change the reporting services account password without going through Reporting Services Configuration manager, and we lost all of
the data sources for the reports. I was wondering whether or not using SMO will result in the same thing happening or not.
Thanks.
DJI've not tried this on SSRS but the below link talks about your problem. I would recommend you to have rollback plan in case of any issues. Try this on less critical servers.
http://www.the-fays.net/blog/?tag=powershell
--Prashanth -
When changing database directory in lk6.5, no alarms are logged anymore.
When changing database directory in lk6.5, no alarms are logged anymore. Traces are running ok, only any query in MAX concerning alarms, will result in an empty response
Hi Ryan,
I tried many ways. First as you described. Second; delete all databases (with MAX) and start lookout, hoping lk would make al necessary settings.
I tried short path name, long path name. All the same results; database will be made (or manually with Max or automatically by lk), all traces works, only NOT the Alarm logging. (database isn't corrupted, while a query done in MAX don't result in an error, just empty result).
I the meantime I found something;
C:\Documents and Settings\my name\my documents\Databse --> traces works, alarms not
C:\Program Files\National Instruments\Lookout 6.5\Database --> all works
So it seams that specificly "my documents" does'nt work for alarms, just for traces (????)
I also found the following message when trying to export the alarms; "The given Citadel database is not currently configured to log alarms to a relational database." Does this ring a bell? -
I have to add a tabel a mailalerttext and link that to mailalertypes which is linked to mailalerts. I had some problems with the selectlists, underneath you will find something that will solve that problem I thought, but it may be easier to solve it simpler, but thats apex stuff.
If a default user and default applicationcode would exist, it would be possible to use them in the mailalert table which has following colums:
MAILALERTID,APPLICATIECD,GEBRUIKERID,MAILALERTTYPEID,SENDMAILIND
gebruikerid means userid.
The defaultuser and application code would then be used in the mailalerts table and the column mailalertype would be replaced by mailalerttypecode. These are defined they can't change.
The reason is that if mailalerttext is linked to maillalerts using the mailalertid as the foreign key, then that allows to find the correct text, or select it straightaway by using the mailtextid. All the selects would then be made on the mailalert table.
The numbers used as default are just those that are free, a default user can be filled in like that in te gebruikers table, and a default application code in the apps table.
Only the standard user and the mailalerttypecode are important, the standard applicationcode could be used as an extra check but might not be necessary.
A select could then be made on that applicationcode, that user, that typecode if not found select standarduser and typecode.
Applicationcode is only filled in to stick to the table definitions. To solve a problem with a select list on a page in apex i think this is overkill, as it requires more changes then does the first solution, It means changing tables, dropping columns adding them, changing triggers, changing code in apex pages, a lot of work.
But I was wondering if concerning a database structure, starting from scratch this is something that would be considered good, not so good, bad, something to not do ?
I'm not sure this is the right group, but it isn't strictly apex, and it isn't really sql/plsql either. More database structure.
I'm just beginning, so i'd like to know your opinions and why it would be bad, or possibly good.
Message was edited by: Floris Vermeir
Removed the spelling mistakes.
FlorisI'm still not sure I understand your existing data model properly. The following is my interpretation of what I think your're trying to achieve.
There are four core data tables -
* APPLICATIONS - holds information relating to the programs you administer
* MAIL_TEXT - holds boilerplate text for each type of e-mail (I'm assuming this text can be shared across applications)
* MAIL_TYPES - the different kinds of e-mail alerts which can be sent
* USERS - holds information about the support staff.
I think you need two intersection tables
* APP_MAIL_TYPES - application X uses text Y for e-mails of type Z (candidate key: app id and type id)
* USER_MAIL_REGS - user Joe gets e-mails of type Z from application X (candidate key: app id, type id and user id)
NB If the registration is just done against alert type for all apps, then the USER_MAIL_REGS table shoudl intersect USERS and MAIL_TYPES.
| |
| applications |
| |
|
|
/|\
| | | |
| app_mail_types |>---------------| mail types |
| | | |
\|/ |
| |
| ---------------------------------
| |
| /|\
| | | |
| mail text | | user_mail_regs |
| | | |
\|/
|
|
| |
| users |
| |
---------------------- I think USER_MAIL_REGS corresponds to your "overview" table. (It's a good idea to use names which convey as much info as possible. I acknowledge the difficulty of doing this in another language). Changing the users' registrations would simply be a matter of inserting or deleting rows from the USER_MAIL_REGS.
If this doesn't help you then I'm afraid you will need to give me more info. Specifically, what tables you have, the role they play and the relationships between them.
Cheers, APC -
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
Maybe you are looking for
-
Mail signatures no longer linked to accounts
I've had Mavericks installed since it first came out & most gliches have cleared up. After the last recent upgrade (10.9.2), none of my signatures in Mail are linked any longer to my email accounts. The signatures are still listed (thank goodness) in
-
Dismantilng of Assembly--- New scenario
Dear friendsI have an issue. Earlier I used to procure material called x which is just assembly of just nut and bolt ( eg). and I have separate material code for bolt as well as nut. I used to procure it no of x. But now we want to separate these t
-
Customer Rebate - article for settlement
Dear Colleagues, In VBO1 (Customer Rebate), I must add for one Customer more than one Article for Settlement, in concordance with our Merchandise Categories: -Footwear -Apparel -Accessories. Is this possible? Thank you. John
-
How do I switch views on my laptop to see only one page not three
how do I do this, don't how I switched from one page to three
-
16:9 and 4:30 ratios...
Hello - I've seen posts on this subject, but nothing that's specifically answered my question - still fairly new to FCP, (I'm using FCP Studio), I'm cutting a dance video and noticed that the Side Angle Camera shows up fitting in the canvas window at