Long Running Loops In sql Server
Hi All,
In our company we have a Developer server,Sometimes it suddenly got hang.In that time we wanna find which loops are affect the server and how much time the loop was run in the server.I wanna know the count of loop.How
can i find it,If anyother ways are there.,
Thanks
Not what the OP meant, I think.
If I'm understanding correctly, your situation is this:
You have run away loops running in a process on your dev server.
You would like to be able to intercept the variables in those currently executing processes for debug purposes?
Afaik there is no way to do this.
However, if you could add lines to your procs to output iteration and timing information to a table, and then review the data as it comes in, by selecting from that table at intervals. (Similar to Saeid's post above).
Similar Messages
-
I have a client application in c++ which interacts with sql server database. My question is whether I need to make any changes to the client application code to allow it to have the benefits of running on a SQL server 2012 cluster environment.
To elaborate more on my query my concern is for e.g if my application has called an api to execute a sql query and during
the execution of this query the sql server (part of the cluster) goes down then as per my understanding the sql cluster would ensure that another node takes up the task from the current sql server which has gone down. Is this transition transparent to the
client application or in such a case my client application needs to again make a new connection and again execute the query?Hello,
Just as Shanky post above, When you connected to a database in an availability group and specify the availability group listener in the connection string, if the availability group fails over, the original connection is broken, your application
should try a new connection after the failover.
So, when connect to an availability group, please try to increasing connection timeout and implementing connection retry logic to increase the probability of successful connection.
Reference:SqlClient Support for High Availability, Disaster Recovery
Regards,
Fanny Liu
If you have any feedback on our support, please click here.
Fanny Liu
TechNet Community Support -
Error in ODBC after long time connection (MS.SQL Server 2000)
i' using windows XP
and create MS.SQL Server connection through SYSTEM DSN of ODBC DATA SOURCE ADMINISTRATOR in WinXP Control Panel
using jdbc.odbc connection to make connection to database.
it's working, but after many request of data transaction with database.
my program closed it self.
an a error file appear in the path of program.
i don't remember all what the error file contain exactly - it's about ODBC connection ( i already remove the error file long day a go, if i got it again i will post it here)
is java cannot connect database with ODBC properly?
thanks.this is the error:
# An unexpected error has been detected by HotSpot Virtual Machine:
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x7c901010, pid=2528, tid=3508
# Java VM: Java HotSpot(TM) Client VM (1.4.2_15-b02 mixed mode)
# Problematic frame:
# C [ntdll.dll+0x1010]
--------------- T H R E A D ---------------
Current thread (0x02e64358): JavaThread "ServerBeritaThread" [_thread_in_native, id=3508]
siginfo: ExceptionCode=0xc0000005, reading address 0x00000018
Registers:
EAX=0x00000004, EBX=0x0355f9b4, ECX=0x7ffaf000, EDX=0x00000004
ESP=0x0355f950, EBP=0x0355f968, ESI=0x00000000, EDI=0x039414e8
EIP=0x7c901010, EFLAGS=0x00010297
Top of Stack: (sp=0x0355f950)
0x0355f950: 74355a16 00000004 0394150c 7432139f
0x0355f960: 0394150c 00000000 0355f980 7432a244
0x0355f970: 0394150c 74350000 02e643f4 02e64358
0x0355f980: 0355f994 7432a653 02fbde98 02e643f4
0x0355f990: 143aff08 0355f9ac 03711157 039414e8
0x0355f9a0: 0355f9b4 02e64358 143aff50 0355f9e4
0x0355f9b0: 00a881a6 00000000 0355fa00 039414e8
0x0355f9c0: 00000000 0355f9f4 0355f9c8 00000000
Instructions: (pc=0x7c901010)
0x7c901000: 90 90 90 90 90 64 8b 0d 18 00 00 00 8b 54 24 04
0x7c901010: 83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89
Stack: [0x03520000,0x03560000), sp=0x0355f950, free space=254k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [ntdll.dll+0x1010]
C [ODBC32.dll+0xa244]
C [ODBC32.dll+0xa653]
C [JdbcOdbc.dll+0x1157]
j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+154
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
j Prosesor.processInput(Ljava/lang/String;)Ljava/lang/String;+51
j ServerBeritaThread.run()V+35
v ~StubRoutines::call_stub
V [jvm.dll+0x752e6]
V [jvm.dll+0xaf627]
V [jvm.dll+0x751f3]
V [jvm.dll+0x74eef]
V [jvm.dll+0x74f28]
V [jvm.dll+0x8ce4f]
V [jvm.dll+0xd3b07]
V [jvm.dll+0xd3ad5]
C [MSVCRT.dll+0x2a3b0]
C [kernel32.dll+0xb50b]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j sun.jdbc.odbc.JdbcOdbc.allocConnect(J[B)J+0
j sun.jdbc.odbc.JdbcOdbc.SQLAllocConnect(J)J+30
j sun.jdbc.odbc.JdbcOdbcDriver.allocConnection(J)J+6
j sun.jdbc.odbc.JdbcOdbcConnection.initialize(Ljava/lang/String;Ljava/util/Properties;I)V+37
j sun.jdbc.odbc.JdbcOdbcDriver.connect(Ljava/lang/String;Ljava/util/Properties;)Ljava/sql/Connection;+129
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/util/Properties;Ljava/lang/ClassLoader;)Ljava/sql/Connection;+154
j java.sql.DriverManager.getConnection(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/sql/Connection;+41
j Prosesor.processInput(Ljava/lang/String;)Ljava/lang/String;+51
j ServerBeritaThread.run()V+35
v ~StubRoutines::call_stub
--------------- P R O C E S S ---------------
Java Threads: ( => current thread )
=>0x02e64358 JavaThread "ServerBeritaThread" [_thread_in_native, id=3508]
0x02facf38 JavaThread "Java2D Disposer" daemon [_thread_blocked, id=1048]
0x02fadc20 JavaThread "AWT-EventQueue-0" [_thread_blocked, id=2028]
0x02e61db0 JavaThread "AWT-Windows" daemon [_thread_in_native, id=728]
0x02e20e48 JavaThread "AWT-Shutdown" [_thread_blocked, id=4056]
0x009d03c0 JavaThread "CompilerThread0" daemon [_thread_blocked, id=1568]
0x009cf630 JavaThread "Signal Dispatcher" daemon [_thread_blocked, id=1572]
0x009ccba0 JavaThread "Finalizer" daemon [_thread_blocked, id=2580]
0x009cb818 JavaThread "Reference Handler" daemon [_thread_blocked, id=980]
0x00035aa8 JavaThread "main" [_thread_in_native, id=1684]
Other Threads:
0x00a0b6c0 VMThread [id=1256]
0x00a0cab8 WatcherThread [id=2276]
VM state:not at safepoint (normal execution)
VM Mutex/Monitor currently owned by a thread: None
Heap
def new generation total 576K, used 43K [0x10010000, 0x100b0000, 0x104f0000)
eden space 512K, 1% used [0x10010000, 0x10012448, 0x10090000)
from space 64K, 53% used [0x10090000, 0x10098930, 0x100a0000)
to space 64K, 0% used [0x100a0000, 0x100a0000, 0x100b0000)
tenured generation total 1408K, used 665K [0x104f0000, 0x10650000, 0x14010000)
the space 1408K, 47% used [0x104f0000, 0x105967e8, 0x10596800, 0x10650000)
compacting perm gen total 4096K, used 4065K [0x14010000, 0x14410000, 0x18010000)
the space 4096K, 99% used [0x14010000, 0x14408580, 0x14408600, 0x14410000)
Dynamic libraries:
0x00400000 - 0x0040b000 C:\java\bin\java.exe
0x7c900000 - 0x7c9b0000 C:\WINDOWS\system32\ntdll.dll
0x7c800000 - 0x7c8f4000 C:\WINDOWS\system32\kernel32.dll
0x77dd0000 - 0x77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
0x77e70000 - 0x77f01000 C:\WINDOWS\system32\RPCRT4.dll
0x77c10000 - 0x77c68000 C:\WINDOWS\system32\MSVCRT.dll
0x08000000 - 0x08144000 C:\java\jre\bin\client\jvm.dll
0x77d40000 - 0x77dd0000 C:\WINDOWS\system32\USER32.dll
0x77f10000 - 0x77f56000 C:\WINDOWS\system32\GDI32.dll
0x76b40000 - 0x76b6d000 C:\WINDOWS\system32\WINMM.dll
0x10000000 - 0x10007000 C:\java\jre\bin\hpi.dll
0x76bf0000 - 0x76bfb000 C:\WINDOWS\system32\PSAPI.DLL
0x00390000 - 0x0039e000 C:\java\jre\bin\verify.dll
0x003b0000 - 0x003c9000 C:\java\jre\bin\java.dll
0x003d0000 - 0x003de000 C:\java\jre\bin\zip.dll
0x02e70000 - 0x02f84000 C:\java\jre\bin\awt.dll
0x73000000 - 0x73026000 C:\WINDOWS\system32\WINSPOOL.DRV
0x76390000 - 0x763ad000 C:\WINDOWS\system32\IMM32.dll
0x774e0000 - 0x7761c000 C:\WINDOWS\system32\ole32.dll
0x5ad70000 - 0x5ada8000 C:\WINDOWS\system32\uxtheme.dll
0x033e0000 - 0x03432000 C:\java\jre\bin\fontmanager.dll
0x73760000 - 0x737a9000 C:\WINDOWS\system32\ddraw.dll
0x73bc0000 - 0x73bc6000 C:\WINDOWS\system32\DCIMAN32.dll
0x73940000 - 0x73a10000 C:\WINDOWS\system32\D3DIM700.DLL
0x74720000 - 0x7476b000 C:\WINDOWS\system32\MSCTF.dll
0x035e0000 - 0x035ef000 C:\java\jre\bin\net.dll
0x71ab0000 - 0x71ac7000 C:\WINDOWS\system32\WS2_32.dll
0x71aa0000 - 0x71aa8000 C:\WINDOWS\system32\WS2HELP.dll
0x605d0000 - 0x605d9000 C:\WINDOWS\system32\mslbui.dll
0x77120000 - 0x771ac000 C:\WINDOWS\system32\OLEAUT32.DLL
0x20b00000 - 0x20b4b000 C:\WINDOWS\system32\imon.dll
0x71ad0000 - 0x71ad9000 C:\WINDOWS\system32\WSOCK32.dll
0x71a50000 - 0x71a8f000 C:\WINDOWS\system32\mswsock.dll
0x662b0000 - 0x66308000 C:\WINDOWS\system32\hnetcfg.dll
0x71a90000 - 0x71a98000 C:\WINDOWS\System32\wshtcpip.dll
0x03710000 - 0x0371c000 C:\java\jre\bin\JdbcOdbc.dll
0x74320000 - 0x7435d000 C:\WINDOWS\system32\ODBC32.dll
0x5d090000 - 0x5d127000 C:\WINDOWS\system32\COMCTL32.dll
0x7c9c0000 - 0x7d1d4000 C:\WINDOWS\system32\SHELL32.dll
0x77f60000 - 0x77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
0x763b0000 - 0x763f9000 C:\WINDOWS\system32\comdlg32.dll
0x773d0000 - 0x774d2000 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
0x20000000 - 0x20017000 C:\WINDOWS\system32\odbcint.dll
0x77c00000 - 0x77c08000 C:\WINDOWS\system32\VERSION.dll
0x77fe0000 - 0x77ff1000 C:\WINDOWS\system32\Secur32.dll
0x5fe80000 - 0x5fe9b000 C:\WINDOWS\system32\odbccp32.dll
0x77c70000 - 0x77c93000 C:\WINDOWS\system32\msv1_0.dll
0x76d60000 - 0x76d79000 C:\WINDOWS\system32\iphlpapi.dll
VM Arguments:
java_command: ServerBerita
Launcher Type: SUN_STANDARD
Environment Variables:
CLASSPATH=.;C:\PROGRA~1\JMF\lib\sound.jar;C:\PROGRA~1\JMF\lib\jmf.jar;C:\PROGRA~1\JMF\lib;.;.;d:\PROGRA~1\JMF21~1.1E\lib\sound.jar;d:\PROGRA~1\JMF21~1.1E\lib\jmf.jar;d:\PROGRA~1\JMF21~1.1E\lib;
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;c:\java\bin;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft Visual Studio\Common\Tools\WinNT;C:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Microsoft Visual Studio\Common\Tools;C:\Program Files\Microsoft Visual Studio\VC98\bin;c:\apache\mysql\bin;;C:\PROGRA~1\COMMON~1\MUVEET~1\030625
USERNAME=acer
OS=Windows_NT
PROCESSOR_IDENTIFIER=x86 Family 6 Model 15 Stepping 2, GenuineIntel
--------------- S Y S T E M ---------------
OS: Windows XP Build 2600 Service Pack 2
CPU:total 2 family 6, cmov, cx8, fxsr, mmx, sse, sse2
Memory: 4k page, physical 1038440k(478648k free), swap 1712796k(1228644k free)
vm_info: Java HotSpot(TM) Client VM (1.4.2_15-b02) for windows-x86, built on May 22 2007 17:01:47 by "java_re" with MS VC++ 6.0 -
Does a long running process survive a server crash
Hi, I assume the bpel dehydration means that a long running process can survive a server crash, but I'd like some expert to confirm this.
Suppose I have a long running process which is in an infinite loop to keep invoking a web service. In the middle of it, the server is either stopped or crashed. When the server comes back, will the process continue from where it was left?
Thanks.Yes. Your understanding is correct. Give it a try. After restart, go to the BPEL console and click under the processes tab on the "Run Recovery Agent" link. -Edwin
-
Error logging when running SSIS on SQL Server Agent
I have SSIS package running on SQL Server Agent Job.
When I'm running it, I get error and I'm urget to see History Logs.
When look Error logs in SQL Server Object Explorer, I don't find errors on this day.
Where should I look for error messages related to SSIS. Any thing to be configured on Management Studio or Data Tool?
Kenny_IHi Kenny_I,
As Russ posted, you need to expand the toggle to see the detailed information when viewing the Job history. Please see the screenshot below:
Besides, you can also edit the Job step, and switch to the Advanced tab to specify a job output file to log the detailed package execution failure information. The screenshot is for your reference:
Regards,
Mike Yin
If you have any feedback on our support, please click here<o:p></o:p>
Mike Yin
TechNet Community Support -
Running INSERT into SQL Server using Heterogeneous Services
I am running into a show stopping issue trying to insert into a SQL Server table via Oracle.
Basically, I have my Heterogeneous Services set up correctly and I am able to hit the SQL Server database with my INSERT statement. But what is happening is I seem to be manually controlly row locks. I believe HS is issuing the following to the server before my INSERT statement is run:
SET TRANSACTION ISOLATION LEVEL READ COMMITTED
SET IMPLICIT_TRANSACTIONS ON
Also, it does not seem that I ever issue the COMMIT TRANSACTION
command. This leaves the row locked forever... unable to complete the
insert generating an error and not inserting my record.
I would GREATLY appreciate any help you could provide, this is a critical issue.
Thanks in advance,
ivalum21ORA-02047: cannot join the distributed transaction in progress
ORA-06512: at "MY_PACKAGE_NAME", line 263
ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
[Generic Connectivity Using ODBC]DRV_Execute: DB_ODBC_ENGINE (1645): ;
[Microsoft][ODBC SQL Server Driver][SQL Server]Disallowed implicit conversion
from data type varchar to data type money, table 'tableA',
column 'total_amount'. Use the CONVERT function to run this query. (SQL
State: 37000; SQL Code: 260)
ORA-02063: preceding 2 lines from SQLSERVER_LINK
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 875
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 791
ORA-06512: at "RCDTPUMP.CAMPUSCALL_DATAPUMP_UNI", line 1156
ORA-06512: at line 1
That is what I get when I take out the TO_NUMBER()
Message was edited by:
ivalum21 -
Running Cmdexec in SQL Server Job
Hi Everyone,
I wanted to run a scripts in a job to clean up my folders in SQL Server 2005. The scripts is as below:
for /f %%i in ('dir /b /s /AD F:\ASCC_FileStore\CITIntegration') do cscript D:\Scripts\BizTalk\BizTalk_WMI.vbs -maintainfolder "%%i"
No error was happening when it was executed in a batch file.
but when I ran it in a SQL job, I got below error:
%%i was unexpected at this time.
Could you please give me some advice? Thank you very much.
regards,
OliverHi Oliver_Wang,
According to your description, if you want to delete files with a SQL Agent job in SQL Server, you can also use xp_cmdshell
command. Here is a full SQL query that is used for deleting the files.
----------------------------------- Enabling the COMMAND SHELL ------------------------------
--Script to enable the XP_CMDSHELL
-- To allow advanced options to be changed.
EXEC sp_configure 'show advanced options', 1
GO
-- To update the currently configured value for advanced options.
RECONFIGURE
GO
-- To enable the feature.
EXEC sp_configure 'xp_cmdshell', 1
GO
-- To update the currently configured value for this feature.
RECONFIGURE
GO
----------------------------------- Deleting the files in ------------------------------------
-- Suppose we need to delete all .txt files under the path (such as "D:\temp\Testing\")
xp_cmdshell 'DEL D:\temp\Testing\*.txt'
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Error trying to get LiveCycle ES up and running with JBoss/SQL Server
I am having an error trying to get LiveCycle ES Trial up and running with JBOSS and SQL Server. The LiveCycle ES and JBOSS engines are running on Windows Server 2003 SP #2 under VMWare Server with 2 vCPUs/1 GB vRAM. The SQL Server database is SQL 2005 x86-64 with SP #2 on a separate server.<br /><br />I have carefully followed all of the instructions for setting up jboss, modifying all of the appropriate XML files, downloading the SQL JDBC drivers and putting it in the %JBOSS_HOME%\server\all\lib directory, etc. I tried both the SQL JDBC 1.1 and 1.2 drivers and they both fail.<br /><br />The error I get is on startup of jboss using<br />cmd /c start /low run.bat -c all<br />(and yes I also just tried run.bat -c all)<br /><br />it runs along file until it gets here<br />2008-06-18 16:00:03,123 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=IDP_DS' to JNDI name 'java:IDP_DS'<br />2008-06-18 16:00:03,123 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=EDC_DS' to JNDI name 'java:EDC_DS'<br />2008-06-18 16:00:03,373 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'<br />2008-06-18 16:00:03,373 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsQueueXA' to JNDI name 'java:adobe_JmsQueueXA'<br />2008-06-18 16:00:03,389 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=adobe_JmsTopicXA' to JNDI name 'java:adobe_JmsTopicXA'<br />2008-06-18 16:00:03,482 INFO [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'<br />2008-06-18 16:00:03,514 WARN [org.jboss.resource.connectionmanager.JBossManagedConnectionPool] Throwable while attempting to get a new connection: null<br />org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: com.microsoft.jdbc.sqlserver.SQLServerDriver; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: com.microsoft.jdbc.sqlserver.SQLServerDriver))<br /> at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnecti on(LocalManagedConnectionFactory.java:164)<br />[ lots more error scrolls ]<br /><br />this repeats multiple times<br /><br />I can see that it does acknowledge that I put the sqljdbc.jar file in the appropriate directory from the boot.log<br /><br /><snip><br />15:59:44,856 DEBUG [SARDeployer] deployed classes for file:/C:/jboss/server/all/lib/sqljdbc.jar<br /><snip><br /><br />please help!
APJ<br />We ran into many issues setting up a very similar environment. In the end we had to use a specially configured JBoss, supplied by Adobe, to make a connection with the SQL database. Since you have SQL w/ SP2 on it, you will need the 1.2 driver for sure, but you may want to talk to Adobe support about obtaining the version of JBoss they supplied us with. The Adobe Support Reference Number is: 1-52422366.<br /><br />Even with the alternate JBoss we had to perform the following steps to get the configuration right:<br /><br />1. Install Livecycle from the installation DVD. Follow the instructions for installing LiveCycle supplied by Adobe, including all pre-installation instructions. Make sure NT service is installed with parameters, and dont run Configuration Manager.<br />2. Rename %LIVECYCLE_INSTALL%\jboss to %LIVECYCLE_INSTALL%\jboss_orig<br />3. Extract the zipped new, good instance of JBoss (supplied by Adobe) to the %LIVECYCLE_INSTALL%\ folder <br />4. Go to the %LiveCycle_Home%\deploy folder and make a copy of the file adobeimport_SQLServer.jar file. Rename the copy of the file to aadobeimport_SQLServer.jar. There seems to be a bug in configuration manager that looks for a file with the extra a appended to the beginning of the file name, where that file normally isnt there. Make sure that the adobeimport_SQLServer.jar file is still in this folder as well.<br />5. Edit the data source file (%JBOSS_HOME%\server\all\deploy\ adobe-ds.xml) to point to the correct database for the LiveCycle Server.<br />a. Update the <connection-url>, <user-name>, and <password> tags with the correct database connection information.<br />b. If BAM is to be used on the server (this should be done on the Production server) then delete both lines that state Remove this line, if BAM is used.<br />6. Go to the login configuration file (%JBOSS_HOME%\server\all\conf\login-config.xml), and edit the section labeled <application-policy name = "MSSQLDbRealm">.<br />a. Change the Principal, UserName, and Password options to point to the correct database. These will be the same as what was changed in the adobe-ds.xml file from the step above.<br /><br />7. Edit the system variables on the server. Add to the Path variable %JBOSS_HOME%\bin, and add the variable JBOSS_HOME with the path to the JBoss folder on the server. (D:\Adobe\LiveCycle8\jboss for example)<br />8. From windows services start the JBoss for Adobe LiveCycle ES v8.0 service. Review the JBoss server log (%JBOSS_HOME%\server\all\log\server.log) to verify that JBoss starts without throwing any exception errors (A document timeout exception is the only acceptable exception for starting the service). <br />9. Run the LiveCycle Configuration Manager (%LiveCycle_Home%\ConfigurationManager\bin\ConfigurationManager.bat). <br />a. Select to Not Upgrade fromLiveCycle 7.x.<br />b. Check all boxes on the Solution Component Selection screen.<br />c. For the Task Selection screen check all the boxes except for the Import LiveCycle ES Samples into LiveCycle ES if on the production server. <br />d. Run through the rest of the configuration manager interface to setup the LiveCycle server with the new application server. Follow the steps supplied by Adobe for this.<br />10. Once configuration manager has completed, reboot the server, and verify that JBoss starts up again without any exceptions or errors (again a document timeout exception is an acceptable exception. Look at the server log to verify this (%JBOSS_HOME%\server\all\log\server.log)).
-
Auto Scheduled run of the Sql server management studio or a auto refreshing query
Hi ALL ,
This is a very different weird requirement but workaround for one of my requirement . Scenario is that sql server enterprise edition is installed on a vm . I create a session with the vm using the remote desktop . I have scheduled a ssis package
on the server and it should run 4 am daily us timing but its failing . If in case a user is connected to the management studio package runs on time . So i have to disconnect from the remote desktop and its not possible for me to login at 4 am every day for
running package.
Requirement : Is it possible that the sql sever management studio automatically turns on at 03:30 am and authenticates in .If that is possible my package won't fail . If this is not possible is it possible that sql script auto refreshes every
30 min's so what i can do i will run the auto refreshing script in the management studio once and will disconnect the remote desktop not the sql server session so my virtually my session on vm will end but vm is always on from the vcenter and there is some
activity on the sql server management studio so even the application won't be closed after a stipulated time frame leading to running of my package on time.
Please helpHi Latheesh NK ,
Below is the error message SSIS one i extracted from the history :
Date 3/8/2014 11:00:00 AM
Log Job History (SSIS package)
Step ID 1
Server xyz\xyz
Job Name SSIS package
Step Name Package
Duration 00:00:01
Sql Severity 0
Sql Message ID 0
Operator Emailed
Operator Net sent
Operator Paged
Retries Attempted 0
Message
Executed as user: xyz\Administrator. Microsoft (R) SQL Server Execute Package Utility Version 11.0.2100.60 for 32-bit Copyright (C) Microsoft Corporation. All rights reserved. Started: 11:00:00 AM Error: 2014-03-08
11:00:01.31 Code: 0xC0208449 Source: Data Flow Task 1 Source - Query [95] Description: ADO NET Source has failed to acquire the connection {68D5B1D7-17B1-4F95-9B1D-7615425C4A07} with the
following error message: "ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified". End Error Error: 2014-03-08 11:00:01.31 Code: 0xC0047017 Source:
Data Flow Task 1 SSIS.Pipeline Description: Source - Query failed validation and returned error code 0xC0208449. End Error Error: 2014-03-08 11:00:01.31 Code: 0xC004700C Source:
Data Flow Task 1 SSIS.Pipeline Description: One or more component failed validation. End Error Error: 2014-03-08 11:00:01.31 Code: 0xC0024107 Source: Data Flow Task 1
Description: There were errors during task validation. End Error DTExec: The package execution returned DTSER_FAILURE (1). Started: 11:00:00 AM Finished: 11:00:01 AM Elapsed: 0.406 seconds. The package execution
failed. The step failed. -
Anyone running 2007A under SQL Server 2000?
Dear all,
I know 2007A has to use SQL 2005. Although it is not officially supported, I am curious that anyone tried it under 2000. What may happen if upgrade 2005 to 2007 but SQL Server stay at 2000?
Thanks all for your input.
GordonThe error message in he log file was:
Upgrade Error
Reconciliation Upgrade FAILED: CIntReconUpgAlgoMgr::Execute () -
Failed at Payment Linked to Reconciled Transaction
and the reply from SAP:
As discussed via phone, I kindly ask you to upgrade your DB server
from 2000 to 2005 version due to end of maintenance for MSSQL 2000. -
Identifying long running reports via SQL
I need to generate a list of reports which took longer than a specified duration threshold to run, and I am trying to build a Query Builder select statement which compares the start and execution end time of report instances.
I see from CMC Instance Manager Instance Details Start Time, End Time, and Expiry; comparing to the SQL accessed object properties SI_SCHEDULEINFO.SI_STARTTIME and SI_SCHEDULEINFO.SI_ENDTIME the end time maps to the CMC viewed 'Expiry' which doesn't help me, where can I select the value displayed in the CMC viewed Instance Details End Time from?
To state it another way: In Central Management Console - Instance Manager it is possible to filter on "Completion Time". I am looking for the DB object and attribute where this value is stored.You can get this data from instance Manager also.
Open Instance manager through Chrome, filter it based on your requirement.
Select the Data and copy it.
Paste it in Excel .
You will get the exact data in the same format in excel -
Hit error on this query, query was running fine in SQL Server Mgnt Studio
Dear Experts,
Can anyone help me with executing this error? I hit random errors when executing this query on SBO 2007 PL12. When I execute this query on SBO 2005, the client application exits immediately.
SELECT DISTINCT U0., U1.
FROM
(SELECT t0.DocNum [Inv No], t0.ReceiptNum, t0.CardName [Inv BP], t0.DocStatus [Inv Status], t0.DocTotal [Inv Total]
FROM OINV t0 WHERE t0.Canceled = 'N' ) U0
LEFT OUTER JOIN
SELECT t0.DocNum [PV Number], t0.CardCode , t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType,t0.Canceled, t0.DocDate [Document Date], 'CHEQUE' [Type], t1.CheckNum [Number], t0.CheckSum [Sum], t1.DueDate [Date], t0.CheckAcct [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total]
FROM orct t0 INNER JOIN rct1 t1 ON t0.DocNum = t1.DocNum WHERE t0.CheckSum > 0
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode, t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'BANK TRANSFER' [Type], t1.FormatCode [Number], t0.TrsfrSum [Sum], t0.trsfrDate[Date], t0.TrsfrRef [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total]
FROM orct t0 inner join oact t1 on t0.TrsfrAcct = t1.acctcode where NOT trsfracct IS NULL and trsfracct != '' AND trsfrsum > 0
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode, t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'CREDIT CARD' [Type], t1.CreditCard [Number], t1.NumOfPmnts [Sum], t1.FirstDue [Date], t1.VoucherNum [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total]
FROM orct t0 INNER JOIN rct3 t1 ON t0.DocNum = t1.DocNum WHERE t0.CreditSum > 0
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode, t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'CASH' [Type], t1.Formatcode [Number], t0.CashSum [Sum], t0.DocDate [Date], '' [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total]
FROM orct t0 inner join oact t1 on t0.CashAcct = t1.acctcode where NOT CashAcct IS NULL and CashSum > 0
U1 ON U0.ReceiptNum = U1.[PV Number]
WHERE U1.CardCode BETWEEN '[%0]' AND '[%1]'
ORDER BY U1.[PV Number]
Problem lies with this line "U1 ON U0.ReceiptNum = U1.[PV Number]", once i remove this line, the query was able to run.
Much Thanks!
Warmest Regards,
ChihnoHi All,
This is a sample of the working query:
SELECT U2.[PV Number], U2.[Customer No], U2.[Customer Name], U2.[Pay To], U2.DocType,U2.Canceled, U2.[Document Date], U2.[Type],U2.[Number], U2.[Sum], U2.[Date], U2.[Ref], U2.[Curency], U2.[Doc Total], U2.[Status] , U2.Submitted, U2.PayMth, U2.Confirmed, U2.CreateTran
FROM
SELECT t0.DocNum [PV Number], t0.CardCode [Customer No], t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType,t0.Canceled, t0.DocDate [Document Date], 'CHEQUE' [Type], t1.CheckNum [Number], t0.CheckSum [Sum], t1.DueDate [Date], t0.CheckAcct [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total], t0.Status [Status] , t0.Submitted, t0.PayMth, t0.Confirmed, t0.CreateTran, t2.DocNum [Linked InvNo], t0.DocEntry
FROM orct t0 INNER JOIN rct1 t1 ON t0.DocNum = t1.DocNum LEFT JOIN rct2 t2 ON t0.DocNum = t2.DocNum WHERE t0.CheckSum > 0 AND t0.DocType <> 'A'
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode [Customer No], t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'BANK TRANSFER' [Type], t1.FormatCode [Number], t0.TrsfrSum [Sum], t0.trsfrDate[Date], t0.TrsfrRef [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total], t0.Status [Status] , t0.Submitted, t0.PayMth, t0.Confirmed, t0.CreateTran, t2.DocNum [Linked InvNo], t0.DocEntry
FROM orct t0 inner join oact t1 on t0.TrsfrAcct = t1.acctcode LEFT JOIN rct2 t2 ON t0.DocNum = t2.DocNum where NOT trsfracct IS NULL and trsfracct != '' AND trsfrsum > 0 AND t0.DocType <> 'A'
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode [Customer No], t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'CREDIT CARD' [Type], t1.CreditCard [Number], t1.NumOfPmnts [Sum], t1.FirstDue [Date], t1.VoucherNum [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total], t0.Status [Status] , t0.Submitted, t0.PayMth, t0.Confirmed, t0.CreateTran, t2.DocNum [Linked InvNo], t0.DocEntry
FROM orct t0 INNER JOIN rct3 t1 ON t0.DocNum = t1.DocNum LEFT JOIN rct2 t2 ON t0.DocNum = t2.DocNum WHERE t0.CreditSum > 0 AND t0.DocType <> 'A'
UNION ALL
SELECT t0.DocNum [PV Number], t0.CardCode [Customer No], t0.CardName [Customer Name], t0.Address [Pay To],
t0.DocType, t0.Canceled, t0.DocDate [Document Date], 'CASH' [Type], t1.Formatcode [Number], t0.CashSum [Sum], t0.DocDate [Date], '' [Ref], t0.DocCurr [Curency], t0.DocTotal [Doc Total], t0.Status [Status] , t0.Submitted, t0.PayMth, t0.Confirmed, t0.CreateTran, t2.DocNum [Linked InvNo], t0.DocEntry
FROM orct t0 inner join oact t1 on t0.CashAcct = t1.acctcode LEFT JOIN rct2 t2 ON t0.DocNum = t2.DocNum where NOT CashAcct IS NULL and CashSum > 0 AND t0.DocType <> 'A'
) U2
INNER JOIN OCRD U3 ON U2.[Customer No] = U3.CardCode
INNER JOIN ORCT U4 ON U2.DocEntry = U4.DocEntry
WHERE U2.[Linked InvNo] IS NULL AND U2.Canceled = 'N' AND U3.CardCode BETWEEN '[%0]' AND '[%1]' AND U4.DocDate BETWEEN '[%2]' AND '[%3]'
ORDER BY U2.[PV Number] ASC
Hope it helps.
Warmest Regards,
Chinho -
Help - I have this query which runs fine on SQL Server against Northwind...
SELECT C.CustomerID, C.CompanyName, Coalesce(Year(O.OrderDate),0) [Year],
(SELECT Count(O2.OrderID)
FROM Orders O2
WHERE Year(O2.OrderDate)= Year(O.OrderDate)) [Total],
Count(O.OrderID) [No Of Orders],
Convert(Varchar, Coalesce(Sum(OD.UnitPrice * OD.Quantity),0), 1) [Order Value],
Convert(Varchar, Coalesce(Sum(OD.UnitPrice * OD.Quantity)/Count(O.OrderID),0), 1) [Avg Order]
FROM Customers C LEFT JOIN Orders O ON C.CustomerID = O.CustomerID
LEFT JOIN [Order Details] OD ON O.OrderID = OD.OrderID
--WHERE O.CustomerID IS NULL
GROUP BY C.CustomerID, C.CompanyName, Year(O.OrderDate)
ORDER BY C.CustomerID, Year(O.OrderDate)
I've had a good fiddle with it and come up with
SELECT C.CustomerID, C.CompanyName, Extract(Year FROM O.OrderDate) AS "Year",
(SELECT Count(O2.OrderID) FROM Orders O2 WHERE Extract(Year FROM O.OrderDate)= Extract(Year FROM O2.OrderDate)),
Count(O.OrderID),
Sum(OD.UnitPrice * OD.Quantity),
Round(Sum(OD.UnitPrice * OD.Quantity)/Count(O.OrderID),2)
FROM Customers C LEFT JOIN Orders O ON C.CustomerID = O.CustomerID
LEFT JOIN Order_Details OD ON O.OrderID = OD.OrderID
GROUP BY C.CustomerID, C.CompanyName, Extract(Year FROM O.OrderDate)
ORDER BY C.CustomerID, Extract(Year FROM O.OrderDate)
But it won't let me group by the (SELECT Count(O2.OrderID) FROM Orders O2 WHERE Extract(Year FROM O.OrderDate)= Extract(Year FROM O2.OrderDate)) part - what am I doing wrong ?CREATE TABLE "CUSTOMERS"
( "CUSTOMERID" VARCHAR2(5),
"COMPANYNAME" VARCHAR2(255),
"CONTACTNAME" VARCHAR2(30),
"CONTACTTITLE" VARCHAR2(30),
"ADDRESS" VARCHAR2(255),
"CITY" VARCHAR2(30),
"REGION" VARCHAR2(30),
"POSTALCODE" VARCHAR2(30),
"COUNTRY" VARCHAR2(30),
"PHONE" VARCHAR2(30),
"FAX" VARCHAR2(30),
CONSTRAINT "CUSTOMERS_PK" PRIMARY KEY ("CUSTOMERID") ENABLE
CREATE TABLE "ORDERS"
( "ORDERID" NUMBER,
"CUSTOMERID" VARCHAR2(5),
"EMPLOYEEID" NUMBER,
"ORDERDATE" DATE,
"REQUIREDDATE" DATE,
"SHIPPEDDATE" DATE,
"SHIPVIA" NUMBER,
"FREIGHT" VARCHAR2(30),
"SHIPNAME" VARCHAR2(255),
"SHIPADDRESS" VARCHAR2(255),
"SHIPCITY" VARCHAR2(30),
"SHIPREGION" VARCHAR2(30),
"SHIPPOSTALCODE" VARCHAR2(30),
"SHIPCOUNTRY" VARCHAR2(30),
CONSTRAINT "ORDERS_PK" PRIMARY KEY ("ORDERID") ENABLE
CREATE TABLE "ORDER_DETAILS"
( "ORDERID" NUMBER,
"PRODUCTID" NUMBER,
"UNITPRICE" NUMBER,
"QUANTITY" NUMBER,
"DISCOUNT" NUMBER,
CONSTRAINT "ORDER_DETAILS_PK" PRIMARY KEY ("ORDERID") ENABLE
/ -
SQL Server Windows NT - 64 Bit RAM Consumption
Hi,
I'm using SQL Server Express 2012. I have database with 200 Mb actually.
So, I want to know If is it normal
if the process (app) 'SQL Server Windows NT - 64 Bit' use 400 MB from Ram (at all) and CPU up to 46% some times ?
If my Server receive DDOS Attak on the TCP port of database ? How can I detect ? How can I solve it.
ThanksHi nadjibnet,
SQL Server Windows NT -64 Bit is known as sqlservr.exe process, it is normal that SQL Server consumes as much memory as possible since SQL Server likes to cache data in memory to speed up access. You might have long running queries on SQL Server. Do you
find any performance issues?
If SQL Server is not installed on a dedicate production machine and you have other applications on the machine, you could limit the memory usage by
configuring Max Server Memory according to your situation.
In addition, about how to detect DDOS attack and block it, you could refer to the following article:
https://sulich.wordpress.com/2012/06/27/detecting-ddos-attack-in-windows/. I suggest you to post the questions in the
Windows Server forums. It is appropriate and more experts will assist you.
Regards,
Michelle Li -
VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job
I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).
Here's the script in question:
Option Explicit
Const filePath = "C:\Documents and Settings\jmunn\My Documents\Visual Studio 2008\Logs\"
Const holdDays = 6
main
Sub Main()
ClearArchive
End Sub
Sub ClearArchive()
Dim fso 'As Scripting.FileSystemObject
Dim fld 'As Scripting.Folder
Dim f 'As Scripting.File
Dim delLogName, delLogOut, delCtr
Set fso = CreateObject("Scripting.FileSystemObject")
Set fld = fso.GetFolder(filePath)
delLogName = filePath & "Nightly Backup - Backup Logs Deleted" & ".txt"
Set delLogOut = fso.CreateTextFile(delLogName, True)
delLogOut.WriteLine(delLogName)
delLogOut.WriteLine("")
delLogOut.WriteLine("-- The following log files were deleted on " & DateValue(Now()) & " at " & TimeValue(Now()))
delLogOut.WriteLine("")
delCtr = 0
For Each f In fld.Files
If Left(f.Name, 48) = "Nightly Backup - SQL Server Databases_Subplan_1_" And Right(LCase(f.Name), 4) = ".txt" Then
If DateDiff("d", f.DateCreated, Date()) > holdDays Then
delLogOut.WriteLine(f.Name)
fso.DeleteFile f, True
delCtr = delCtr + 1
End If
End If
Next
If delCtr = 0 Then
delLogOut.WriteLine("No log files were deleted this run...")
End If
Set fld = Nothing
Set fso = Nothing
delLogOut.Close
End Sub
If I put the script in its own file and run it from the command prompt, it runs just fine. If the script runs from the SQL Server Agent job, the for-loop will delete the files correctly, but the filenames
do not get written to the deletion log file and the counter does not get incremented, so according to the job log, nothing was deleted. Why does the script run differently from each invocation? It can't be a permission thing, the service that logs in has full
access to the directory and the files do get deleted. Any ideas out there?
Between this and other outstanding issues, I'm quickly losing faith in SQL Server. >=o(
Thanks in advance for your thoughts!
John
Version Info:
Microsoft SQL Server Management Studio 10.0.2531.0
Microsoft Analysis Services Client Tools 10.0.1600.22
Microsoft Data Access Components (MDAC) 3.85.1132
Microsoft MSXML 2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer 8.0.6001.18702
Microsoft .NET Framework 2.0.50727.3603
Operating System 5.1.2600
"A bus station is where a bus stops. A train station is where a train stops. On my desk I have a workstation..."Hi
jrmunn
i am trying to execute VB script to refresh my excel files.. using Vbscript file through SQL Agent job step.
i have copied VBscript in a file with the extension RefreshExcel.vbs kept in C:\RefreshExcel.vbs
Below is the script used inside the file (RefreshExcel.vbs)
//---Script code-----------------------------------------------------------------
Dim objXL, objWB
Dim FileLocation, FileName
On Error Resume Next
'lgnConn = 1
FileLocation = "F:\Reports\Reports"
Set objXL = CreateObject("Excel.Application")
objXL.DisplayAlerts = False
FileName = "ReportFile1.xlsx"
'MsgBox (FileLocation & "/" & FileName)
Set objWB = objXL.Workbooks.Open(FileLocation & "/" & FileName)
objWB.EnableConnections
objXL.CalculateUntilAsyncQueriesDone
objWB.RefreshAll
objXL.CalculateUntilAsyncQueriesDone
objWB.RefreshAll
objXL.CalculateUntilAsyncQueriesDone
objWB.Save
objWB.Close
Set objWS = Nothing
Set objWB = Nothing
objXL.Quit
Set objXL = Nothing
'MsgBox ("Refresh Completed")
---------------------------------------------------------------------------------------------------//Script complete
Now when i am trying to call this script file in SQL agent job step (as you mentioned )
as Type -cmdExec(OperatingSystem)
cscript "C:\RefreshExcel.vbs"
Issue: job step executed succesfully ,,but without performing any refresh on the excel. So i am not understandig what is going wrong. the same script file work when i am calling it through a batch file (window scheuler task). But it doesnt support
to run the file "when user is not logged in"
that is why i want to refresh my excel file through sql agent ,which can be scheduled to any time and cab be run as SQL agent credentials.
Can you please help me on this ...i have tried all the option but nothing working .. found hope by seeing your solution.
Thanks in advance.
Please help me. :-(
Maybe you are looking for
-
Problem pdf created by Epson Printer.
When I open a pdf created by my Epson printer (WF-7620) I am asked to install an Asian language pack. I do not want to install this pack. How do I stop it? I have contacted Epson support who told me to contact Adobe as they could not see a way to sto
-
How can i get a powder coat effect in photoshop?
I've been looking online to no avail. Need to create a powder coat texture on a 723 - 724 pms color. Does anyone know how? Please give step by step instructions.
-
Insert / update with subquery
Hi, i have to insert (if records don't exist) or update (if records already exist) records from table S into table D. S and D have the same structure. Table S ID NUMBER, Primary Key, DESC1 VARCHAR DESC2 VARCHAR Table D ID NUMBER, Primary Key, DESC1 V
-
Plantronics 925; Palm Pre 2 not pairing
My Plantronics 925 is not recognized by Palm Pre 2 - Sound like som issue on PAlm. The headset is recognized by my IPAQ as well as by HTC Desire -- could bot test more ; but looking for a fix Post relates to: Pre 2 p102ueu (Unlocked EU)
-
Swamped and confused about products
Hi guys, I am new to Oracle middleware products. After looking at a few articles, I am swamped and confused about those products, WebCenter (WC), Content Server (CS), Universal Content Management (UCM). 1. WC has a built-in content database, part of