More MS-SQL Server Problems...
I am having trouble getting a connection pool for MS-SQL Server built. It
looks like a classpath issue, but on checking everything looks fine. The
stack trace I get is:
Mon Jul 10 19:41:30 PDT 2000:<I> <WebLogicServer> Invoking main-style
startup weblogic.jdbc.common.i
nternal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
Mon Jul 10 19:41:30 PDT 2000:<I> <JDBC Pool> Creating connection pool
MSSQLPool with:
{poolName=MSSQLPool, refreshTestMinutes=10, loginDelaySecs=1,
testTable=dual, maxCapacity=10, props=
user=sa;password=;server=localhost, allowShrinking=true,
driver=weblogic.mssqlserver4.Driver, aclNam
e=weblogic.jdbc.connectionPool.MSSQLPool, capacityIncrement=2,
initialCapacity=4, url=jdbc:weblogic:
mssqlserver4, shrinkPeriodMins=15}
Mon Jul 10 19:41:30 PDT 2000:<E> <JDBC Pool> Failed to create connection
pool "MSSQLPool"
java.lang.ClassNotFoundException: weblogic.mssqlserver4.Driver
at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
Compiled Code)
at java.lang.Exception.<init>(Exception.java, Compiled Code)
at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
Compiled Code)
at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
Compiled Code)
at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java, Compiled Code)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
actory.java:8
4)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
ry.java:98)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)
at weblogic.t3.srvr.StartupThread.runMain(StartupThread.java:219)
at weblogic.t3.srvr.StartupThread.doWork(StartupThread.java,
Compiled Code)
at
weblogic.t3.srvr.PropertyExecuteThread.run(PropertyExecuteThread.java:62)
I am using WL v5.1 without and service pack, on WIN-NT 4
I also have the mssqlserver4v70 (type 4 driver)
I am starting Weblogic with the StartWebLogic.cmd script file.
I made the following change to the start script to include the two required
directories in the weblogic.class.path property:
set POST_CLASSPATH=C:\mssqlserver4v70\classes;C:\mssqlserver4v70\license
Which seems to work (as far as that goes because the trace from
startWebLogic shows:
C:\weblogic>.\jre1_2\jre\bin\java -ms64m -mx64m -classpath
.\classes\boot;.\eval\cloudscape\lib\clou
dscape.jar -Dweblogic.class.path=.\license;.\classes;.\lib\weblogicaux.jar;.
\myserver\serverclasses;
C:\mssqlserver4v70\classes;C:\mssqlserver4v70\license -Dweblogic.home=. -Dja
va.security.manager -Dja
va.security.policy==.\weblogic.policy weblogic.Server
The relevent part of the weblogic.properties is:
# Set up a connection pool for MS-SQL Server v7
weblogic.jdbc.connectionPool.MSSQLPool=\
url=jdbc:weblogic:mssqlserver4,\
driver=weblogic.mssqlserver4.Driver,\
loginDelaySecs=1,\
initialCapacity=4,\
maxCapacity=10,\
capacityIncrement=2,\
allowShrinking=true,\
shrinkPeriodMins=15,\
refreshTestMinutes=10,\
testTable=dual,\
props=user=sa;password=;server=localhost
The install directory for weblogic looks like this:
Directory of C:\weblogic
07/10/00 07:28p <DIR> .
07/10/00 07:28p <DIR> ..
04/03/00 06:08p 9,265 about_utilities.html
07/10/00 06:04p <DIR> bigtel
07/10/00 06:01p <DIR> bin
07/10/00 06:02p <DIR> classes
04/03/00 05:42p 8,951 copyright.html
07/10/00 06:03p <DIR> eval
07/10/00 06:03p <DIR> examples
07/10/00 06:02p <DIR> jre1_2
07/10/00 06:01p <DIR> lib
07/10/00 06:02p <DIR> license
06/30/00 02:04p 22,109 license.html
07/10/00 06:39p <DIR> mssqlserver4v70
07/10/00 06:59p <DIR> myserver
04/03/00 05:42p 19,821 README.HTML
07/10/00 06:03p <DIR> servletimages
07/10/00 06:04p 2,829 setEnv.cmd
04/03/00 05:42p 4,944 setEnv.sh
07/10/00 06:03p <DIR> src
04/03/00 05:42p 1,900 startConsole.cmd
04/03/00 05:42p 1,131 startConsole.sh
04/03/00 05:42p 1,788 startSNMPAgent.cmd
04/03/00 05:42p 1,917 startSNMPAgent.sh
07/10/00 06:44p 4,534 startWebLogic.bak
07/10/00 07:25p 4,536 startWebLogic.cmd
04/03/00 05:42p 5,041 startWebLogic.sh
07/10/00 07:13p 40,486 weblogic.bak
07/10/00 06:04p 8,252 weblogic.policy
07/10/00 07:28p 40,499 weblogic.properties
30 File(s) 178,003 bytes
5,720,563,712 bytes free
Thanks,
Joe
Please see the documentation.
http://www.weblogic.com/docs51/classdocs/API_jmsq4.html#946700
weblogic.jdbc.mssqlserver4.Driver
mbg
In article <[email protected]>, [email protected] says...
I am having trouble getting a connection pool for MS-SQL Server built. It
looks like a classpath issue, but on checking everything looks fine. The
stack trace I get is:
Mon Jul 10 19:41:30 PDT 2000:<I> <WebLogicServer> Invoking main-style
startup weblogic.jdbc.common.i
nternal.JdbcStartup weblogic.jdbc.common.internal.JdbcStartup
Mon Jul 10 19:41:30 PDT 2000:<I> <JDBC Pool> Creating connection pool
MSSQLPool with:
{poolName=MSSQLPool, refreshTestMinutes=10, loginDelaySecs=1,
testTable=dual, maxCapacity=10, props=
user=sa;password=;server=localhost, allowShrinking=true,
driver=weblogic.mssqlserver4.Driver, aclNam
e=weblogic.jdbc.connectionPool.MSSQLPool, capacityIncrement=2,
initialCapacity=4, url=jdbc:weblogic:
mssqlserver4, shrinkPeriodMins=15}
Mon Jul 10 19:41:30 PDT 2000:<E> <JDBC Pool> Failed to create connection
pool "MSSQLPool"
java.lang.ClassNotFoundException: weblogic.mssqlserver4.Driver
at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
Compiled Code)
at java.lang.Exception.<init>(Exception.java, Compiled Code)
at
java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java,
Compiled Code)
at
weblogic.boot.ServerClassLoader.findLocalClass(ServerClassLoader.java,
Compiled Code)
at weblogic.boot.ServerClassLoader.loadClass(ServerClassLoader.java,
Compiled Code)
at java.lang.ClassLoader.loadClass(ClassLoader.java, Compiled Code)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java, Compiled Code)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.loadDriver(ConnectionEnvF
actory.java:8
4)
at
weblogic.jdbc.common.internal.ConnectionEnvFactory.<init>(ConnectionEnvFacto
ry.java:98)
at
weblogic.jdbc.common.internal.ConnectionPool.startup(ConnectionPool.java:328
at weblogic.jdbc.common.internal.JdbcInfo.initPools(JdbcInfo.java,
Compiled Code)
at weblogic.jdbc.common.internal.JdbcInfo.startup(JdbcInfo.java:200)
at
weblogic.jdbc.common.internal.JdbcStartup.main(JdbcStartup.java:11)
at java.lang.reflect.Method.invoke(Native Method)--
==================================================
NewsGroup Rant
==================================================
Rant 2.
Many of the answers to your questions are in the
documentation. At the top of our online docs is
a search button. Try it!
Similar Messages
-
Pls help me(sql server problem)
Im using sql server 2000
i had 2 database servers
'srv1', 'srv2'
in srv1 had 'db1' database
first create a user called 'db1usr1' with read and write previlages only(not dbowner)
then take backup of 'db1' as 'db1bakup'
then u hav to restore the 'db1bakup' in srv2 as 'db2'
then u have 2 login in the 'srv2' machine as 'db1usr1'
here is the problem : it is(db1usr1) not logged in srv2 machine through query analyserYou're asking about a sql server problem on an Oracle forum?
Don't you think a sql server forum would be a more appropriate place for your question? -
MS SQL server problems on Tecra A9
We have two new A9's neither of which will run Outlook 2007 BCM set up as it appears that the MSSMLBIZ instance of SQL server on the laptops won't start. Starting the service manually results in getting an error code 17058. Reinstalling Office, Outlook and BCM doesn't help, on one machine we have attempted to reinstall BCM to include SQL server and now it fails when it attempts to install and run SQL server, again saying it can't start the service.
As this is a problem that is specific tp the two A9's ( we have other PC's running this set up fine) any ideas what's causing the problem?
Thanks
NickHi,
since the problem is more software related and not really a Toshiba related issue I would suggest you to check some Microsoft forums or M$ support since here probably no one could help you.
Not many peoply seem to have such experience regarding SQL, even I cannot tell you what to do and I know almost everytime some kind of hint or answer.
A suggestion _could_ be to tell me which OS you have installed. Maybe its related to the OS or whatever...
Cheers -
MS SQL Server problem with MDB's: javax.transaction.xa.XAException
I am programming agents in j2ee and using MDB to implement the asynchronicity of
the agents.
Those MDB's get messages (MapMessage) from a controller (an SFSB) that contain
the agent's ID and the action that the agent has to perform. The MDB creates a
SFSB, and calls the appropriate action from this session bean. Those actions require
to read and write from my MS SQL Server 2000 XA database. But when running my
program, I often get this error, which doesn't seem to affect the action, because
when I check my database data, everything is updated correctly. So the program
still completes, but the errors slow down the execution (the program hangs for
about 3 seconds, each time the error occurs).
Does anybody has an explanation or solution for this?
Thank you...
This is the error output:
onMessage()
Reading MapMessage: 1
<26-apr-2004 14.34 u. CEST> <Error> <EJB> <BEA-010026> <Exception occurred during
commit of transaction Xid=BEA1-005F88135FFBA636FFF7(15619088),Status=Rolled back.
[Reason=javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0) returns -4],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=4,seconds
left=30,XAServerResourceInfo[JMS_JMS Server2_NotDurable]=(ServerResourceInfo[JMS_JMS
Server2_NotDurable]=(state=rolledback,assigned=lucille3_ms),xar=JMS_JMS Server2_NotDurable),XAServerResourceInfo[MSSQL
Connection Pool]=(ServerResourceInfo[MSSQL Connection Pool]=(state=rolledback,assigned=lucille3_ms),xar=MSSQL
Connection Pool),SCInfo[cluster+lucille3_ms]=(state=rolledback),local properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=lucille3_ms+127.0.0.1:8001+cluster+t3+,
XAResources={},NonXAResources={})],CoordinatorURL=lucille3_ms+127.0.0.1:8001+cluster+t3+):
javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0)returns -4
at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
Source)
at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.prepare(Unknown Source)
at weblogic.jdbcx.base.BaseXAResource.prepare(Unknown Source)
at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:821)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1161)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:395)
at weblogic.transaction.internal.ServerSCInfo$1.execute(ServerSCInfo.java:253)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Could not prepare resource 'MSSQL Connection
Pool
[BEA][SQLServer JDBC Driver][SQLServer]xa_prepare (0) returns -4 - with nested
exception:
[javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0) returns -4]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1644)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:300)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170).>
I am programming agents in j2ee and using MDB to implement the asynchronicity of
the agents.
Those MDB's get messages (MapMessage) from a controller (an SFSB) that contain
the agent's ID and the action that the agent has to perform. The MDB creates a
SFSB, and calls the appropriate action from this session bean. Those actions require
to read and write from my MS SQL Server 2000 XA database. But when running my
program, I often get this error, which doesn't seem to affect the action, because
when I check my database data, everything is updated correctly. So the program
still completes, but the errors slow down the execution (the program hangs for
about 3 seconds, each time the error occurs).
Does anybody has an explanation or solution for this?
Thank you...
This is the error output:
onMessage()
Reading MapMessage: 1
<26-apr-2004 14.34 u. CEST> <Error> <EJB> <BEA-010026> <Exception occurred during
commit of transaction Xid=BEA1-005F88135FFBA636FFF7(15619088),Status=Rolled back.
[Reason=javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0) returns -4],numRepliesOwedMe=0,numRepliesOwedOthers=0,seconds since begin=4,seconds
left=30,XAServerResourceInfo[JMS_JMS Server2_NotDurable]=(ServerResourceInfo[JMS_JMS
Server2_NotDurable]=(state=rolledback,assigned=lucille3_ms),xar=JMS_JMS Server2_NotDurable),XAServerResourceInfo[MSSQL
Connection Pool]=(ServerResourceInfo[MSSQL Connection Pool]=(state=rolledback,assigned=lucille3_ms),xar=MSSQL
Connection Pool),SCInfo[cluster+lucille3_ms]=(state=rolledback),local properties=({}),OwnerTransactionManager=ServerTM[ServerCoordinatorDescriptor=(CoordinatorURL=lucille3_ms+127.0.0.1:8001+cluster+t3+,
XAResources={},NonXAResources={})],CoordinatorURL=lucille3_ms+127.0.0.1:8001+cluster+t3+):
javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0)returns -4
at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.executeXaRpc(Unknown
Source)
at weblogic.jdbcx.sqlserver.SQLServerImplXAResource.prepare(Unknown Source)
at weblogic.jdbcx.base.BaseXAResource.prepare(Unknown Source)
at weblogic.jdbc.jta.DataSource.prepare(DataSource.java:821)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:1161)
at weblogic.transaction.internal.XAServerResourceInfo.prepare(XAServerResourceInfo.java:395)
at weblogic.transaction.internal.ServerSCInfo$1.execute(ServerSCInfo.java:253)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
--------------- nested within: ------------------
weblogic.transaction.RollbackException: Could not prepare resource 'MSSQL Connection
Pool
[BEA][SQLServer JDBC Driver][SQLServer]xa_prepare (0) returns -4 - with nested
exception:
[javax.transaction.xa.XAException: [BEA][SQLServer JDBC Driver][SQLServer]xa_prepare
(0) returns -4]
at weblogic.transaction.internal.TransactionImpl.throwRollbackException(TransactionImpl.java:1644)
at weblogic.transaction.internal.ServerTransactionImpl.internalCommit(ServerTransactionImpl.java:300)
at weblogic.transaction.internal.ServerTransactionImpl.commit(ServerTransactionImpl.java:221)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:412)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:316)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:281)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2596)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2516)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170).>
-
Sql server problem - space in table name
Hi
I am getting the following error
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Line 1: In
correct syntax near 'Mapping'.
when running the sql statement
stmt.executeQuery("SELECT * from dbo.Smallworld US$CMF Mapping")
in my JSP.
Please suggestI don't know for sure if this will work, but MS SQL Server allows you to reference tables with spaces in the names using [] syntax:
SELECT * from [CMF Mapping] -
SQL Server Problems and Questions from an SQL dummy
I am an SQL Dummy!
In the old 2008 version of SQL I had to run a script to fix a rounding error in my Microsoft Accounting software (no longer supported) I think I have version 10 now?
SQL FIX for Fiscal Year won't close
Need to use Sql Management Studio (as oppose to more obscure osql.exe)
to run sql script
b) Use Sql Management Studio to execute script below:
SELECT *
FROM dbo.CashPostingTable
WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>
amountDebitCompanyCurrency) AND exchangeRate=100
If you get any rows/data back, proceed to step c), if no result, a more
serious problem - good lucks or buy help.
c) Use Sql Management Studio to execute script below:
UPDATE cashpostingtable
SET amountCreditCompanyCurrency = amountCredit,
amountDebitCompanyCurrency = amountDebit,
companyAmountRemainder = accountAmountRemainder
WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>
amountDebitCompanyCurrency) AND exchangeRate=100
Management Studio no longer works. Is there a way to do the same thing in the version I have?
Thank you,
DeanI am an SQL Dummy!
In the old 2008 version of SQL I had to run a script to fix a rounding error in my Microsoft Accounting software (no longer supported) I think I have version 10 now?
SQL FIX for Fiscal Year won't close
Need to use Sql Management Studio (as oppose to more obscure osql.exe)
to run sql script
b) Use Sql Management Studio to execute script below:
SELECT *
FROM dbo.CashPostingTable
WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>
amountDebitCompanyCurrency) AND exchangeRate=100
If you get any rows/data back, proceed to step c), if no result, a more
serious problem - good lucks or buy help.
c) Use Sql Management Studio to execute script below:
UPDATE cashpostingtable
SET amountCreditCompanyCurrency = amountCredit,
amountDebitCompanyCurrency = amountDebit,
companyAmountRemainder = accountAmountRemainder
WHERE (amountcredit <> amountCreditCompanyCurrency OR amountDebit <>
amountDebitCompanyCurrency) AND exchangeRate=100
Management Studio no longer works. Is there a way to do the same thing in the version I have?
Thank you,
Dean -
Dynamic pivoting with 2 aggregation fields or more in sql server
Hi,
I have data like below:
CrudeOilName
Period
YearValue
MonthValue
avgPrice_Ton
GrothRate_Ton
IPE BRENT
Jan-13
2013
1
243.516129
245.016129
NYMEX Light Sweet
Jan-13
2013
1
244.258064
245.758064
OPEC BASKET
Jan-13
2013
1
241.387096
242.887096
IPE BRENT
Feb-13
2013
2
237.392857
238.892857
NYMEX Light Sweet
Feb-13
2013
2
254.285714
255.785714
OPEC BASKET
Feb-13
2013
2
249.107142
250.607142
IPE BRENT
Mar-13
2013
3
238.193548
239.693548
NYMEX Light Sweet
Mar-13
2013
3
250.709677
252.209677
OPEC BASKET
Mar-13
2013
3
244.580645
246.080645
IPE BRENT
Apr-13
2013
4
255.566666
257.066666
NYMEX Light Sweet
Apr-13
2013
4
249.933333
251.433333
OPEC BASKET
Apr-13
2013
4
246.2
247.7
IPE BRENT
May-13
2013
5
255.645161
257.145161
NYMEX Light Sweet
May-13
2013
5
259
260.5
OPEC BASKET
May-13
2013
5
246.419354
247.919354
IPE BRENT
Jun-13
2013
6
242.233333
243.733333
NYMEX Light Sweet
Jun-13
2013
6
242.7
244.2
OPEC BASKET
Jun-13
2013
6
243.233333
244.733333
IPE BRENT
Jul-13
2013
7
241.451612
242.951612
NYMEX Light Sweet
Jul-13
2013
7
256.741935
258.241935
OPEC BASKET
Jul-13
2013
7
253.838709
255.338709
IPE BRENT
Aug-13
2013
8
252.032258
253.532258
NYMEX Light Sweet
Aug-13
2013
8
254.677419
256.177419
OPEC BASKET
Aug-13
2013
8
242.903225
244.403225
IPE BRENT
Sep-13
2013
9
251.966666
253.466666
NYMEX Light Sweet
Sep-13
2013
9
251
252.5
OPEC BASKET
Sep-13
2013
9
249.4
250.9
IPE BRENT
Oct-13
2013
10
236
237.5
NYMEX Light Sweet
Oct-13
2013
10
259.096774
260.596774
OPEC BASKET
Oct-13
2013
10
247.612903
249.112903
IPE BRENT
Nov-13
2013
11
245.2
246.7
NYMEX Light Sweet
Nov-13
2013
11
240.833333
242.333333
OPEC BASKET
Nov-13
2013
11
255.266666
256.766666
IPE BRENT
Dec-13
2013
12
245.774193
247.274193
NYMEX Light Sweet
Dec-13
2013
12
249.193548
250.693548
OPEC BASKET
Dec-13
2013
12
246.032258
247.532258
I need output like below:
Period
YearValue
MonthValue
[avgIPE BRENT]
[avgNYMEX Light Sweet]
[avgOPEC BASKET]
Period
YearValue
MonthValue
[GrowthIPE BRENT]
[GrowthNYMEX Light Sweet]
OPEC BASKET[Growth]
Jan-13
2013
1
243.516129
244.258064
241.387096
Jan-14
2014
1
245.016129
245.758064
242.887096
Feb-13
2013
2
237.392857
254.285714
249.107142
Feb-14
2014
2
238.892857
255.785714
250.607142
Mar-13
2013
3
238.193548
250.709677
244.580645
Mar-14
2014
3
239.693548
252.209677
246.080645
Apr-13
2013
4
255.566666
249.933333
246.2
Apr-14
2014
4
257.066666
251.433333
247.7
May-13
2013
5
255.645161
259
246.419354
May-14
2014
5
257.145161
260.5
247.919354
Jun-13
2013
6
242.233333
242.7
243.233333
Jun-14
2014
6
243.733333
244.2
244.733333
Jul-13
2013
7
241.451612
256.741935
253.838709
Jul-14
2014
7
242.951612
258.241935
255.338709
Aug-13
2013
8
252.032258
254.677419
242.903225
Aug-14
2014
8
253.532258
256.177419
244.403225
Sep-13
2013
9
251.966666
251
249.4
Sep-14
2014
9
253.466666
252.5
250.9
Oct-13
2013
10
236
31
247.612903
Oct-14
2014
10
237.5
260.596774
249.112903
Nov-13
2013
11
245.2
240.833333
255.266666
Nov-14
2014
11
246.7
242.333333
256.766666
Dec-13
2013
12
245.774193
249.193548
246.032258
Dec-14
2014
12
247.274193
250.693548
247.532258
Please help ASAP.
Regards,
SriniHi Srini
I think if you want to scale with years also, you max need to consider the MonthValue as common value
please try this
Note: i have used the max() because i have avgPrice_Ton,GrothRate_Ton as in varchar in my example you can modify as sum or avg if you want
Drop table #temp1
Select * into #temp1 From
(select 'IPE BRENT' CrudeOilName,'41275' Period,'2013' YearValue,'1' MonthValue,'243.516129' avgPrice_Ton,'245.016129' GrothRate_Ton UNION ALL
select 'NYMEX Light Sweet','41275','2013','1','244.258064','245.758064' UNION ALL
select 'OPEC BASKET','41275','2013','1','241.387096','242.887096' UNION ALL
select 'IPE BRENT','41306','2013','2','237.392857','238.892857' UNION ALL
select 'NYMEX Light Sweet','41306','2013','2','254.285714','255.785714' UNION ALL
select 'OPEC BASKET','41306','2013','2','249.107142','250.607142' UNION ALL
select 'IPE BRENT','41334','2013','3','238.193548','239.693548' UNION ALL
select 'NYMEX Light Sweet','41334','2013','3','250.709677','252.209677' UNION ALL
select 'OPEC BASKET','41334','2013','3','244.580645','246.080645' UNION ALL
select 'IPE BRENT','41365','2013','4','255.566666','257.066666' UNION ALL
select 'NYMEX Light Sweet','41365','2013','4','249.933333','251.433333' UNION ALL
select 'OPEC BASKET','41365','2013','4','246.2','247.7' UNION ALL
select 'IPE BRENT','41395','2013','5','255.645161','257.145161' UNION ALL
select 'NYMEX Light Sweet','41395','2013','5','259','260.5' UNION ALL
select 'OPEC BASKET','41395','2013','5','246.419354','247.919354' UNION ALL
select 'IPE BRENT','41426','2013','6','242.233333','243.733333' UNION ALL
select 'NYMEX Light Sweet','41426','2013','6','242.7','244.2' UNION ALL
select 'OPEC BASKET','41426','2013','6','243.233333','244.733333' UNION ALL
select 'IPE BRENT','41456','2013','7','241.451612','242.951612' UNION ALL
select 'NYMEX Light Sweet','41456','2013','7','256.741935','258.241935' UNION ALL
select 'OPEC BASKET','41456','2013','7','253.838709','255.338709' UNION ALL
select 'IPE BRENT','41487','2013','8','252.032258','253.532258' UNION ALL
select 'NYMEX Light Sweet','41487','2013','8','254.677419','256.177419' UNION ALL
select 'OPEC BASKET','41487','2013','8','242.903225','244.403225' UNION ALL
select 'IPE BRENT','41518','2013','9','251.966666','253.466666' UNION ALL
select 'NYMEX Light Sweet','41518','2013','9','251','252.5' UNION ALL
select 'OPEC BASKET','41518','2013','9','249.4','250.9' UNION ALL
select 'IPE BRENT','41548','2013','10','236','237.5' UNION ALL
select 'NYMEX Light Sweet','41548','2013','10','259.096774','260.596774' UNION ALL
select 'OPEC BASKET','41548','2013','10','247.612903','249.112903' UNION ALL
select 'IPE BRENT','41579','2013','11','245.2','246.7' UNION ALL
select 'NYMEX Light Sweet','41579','2013','11','240.833333','242.333333' UNION ALL
select 'OPEC BASKET','41579','2013','11','255.266666','256.766666' UNION ALL
select 'IPE BRENT','41609','2013','12','245.774193','247.274193' UNION ALL
select 'NYMEX Light Sweet','41609','2013','12','249.193548','250.693548' UNION ALL
select 'OPEC BASKET','41609','2013','12','246.032258','247.532258' UNION ALL
select 'IPE BRENT','41306','2014','2','237.392857','238.892857' UNION ALL
select 'NYMEX Light Sweet','41306','2014','2','254.285714','255.785714' UNION ALL
select 'OPEC BASKET','41306','2014','2','249.107142','250.607142' ) a
Declare @sql Nvarchar(4000)='select MonthValue'
select @sql = @sql +',MAX(case when CrudeOilName='''+ CrudeOilName+''' and YearValue= ''' + YearValue +''' then avgPrice_Ton else null end) as ['+YearValue+'_'+CrudeOilName+'avgPrice_Ton]'+CHAR(13)
+',MAX(case when CrudeOilName='''+ CrudeOilName+''' and YearValue= ''' + YearValue +''' then GrothRate_Ton else null end) as ['+YearValue+'_'+CrudeOilName+'GrothRate_Ton]'+CHAR(13)
from
(select distinct YearValue,CrudeOilName From #temp1 ) a
select @sql=@sql + 'from #temp1 group by MonthValue order by convert(int,MonthValue)'
Print @sql
EXEC sp_executesql @sql
Thanks
Saravana Kumar C -
Welcome to the SQL Server Disaster Recovery and Availability Forum
(Edited 8/14/2009 to correct links - Paul)
Hello everyone and welcome to the SQL Server Disaster Recovery and Availability forum. The goal of this Forum is to offer a gathering place for SQL Server users to discuss:
Using backup and restore
Using DBCC, including interpreting output from CHECKDB and related commands
Diagnosing and recovering from hardware issues
Planning/executing a disaster recovery and/or high-availability strategy, including choosing technologies to use
The forum will have Microsoft experts in all these areas and so we should be able to answer any question. Hopefully everyone on the forum will contribute not only questions, but opinions and answers as well. I’m looking forward to seeing this becoming a vibrant forum.
This post has information to help you understand what questions to post here, and where to post questions about other technologies as well as some tips to help you find answers to your questions more quickly and how to ask a good question. See you in the group!
Paul Randal
Lead Program Manager, SQL Storage Engine and SQL Express
Be a good citizen of the Forum
When an answer resolves your problem, please mark the thread as Answered. This makes it easier for others to find the solution to this problem when they search for it later. If you find a post particularly helpful, click the link indicating that it was helpful
What to post in this forum
It seems obvious, but this forum is for discussion and questions around disaster recovery and availability using SQL Server. When you want to discuss something that is specific to those areas, this is the place to be. There are several other forums related to specific technologies you may be interested in, so if your question falls into one of these areas where there is a better batch of experts to answer your question, we’ll just move your post to that Forum so those experts can answer. Any alerts you set up will move with the post, so you’ll still get notification. Here are a few of the other forums that you might find interesting:
SQL Server Setup & Upgrade – This is where to ask all your setup and upgrade related questions. (http://social.msdn.microsoft.com/Forums/en-US/sqlsetupandupgrade/threads)
Database Mirroring – This is the best place to ask Database Mirroring how-to questions. (http://social.msdn.microsoft.com/Forums/en-US/sqldatabasemirroring/threads)
SQL Server Replication – If you’ve already decided to use Replication, check out this forum. (http://social.msdn.microsoft.com/Forums/en-US/sqlreplication/threads)
SQL Server Database Engine – Great forum for general information about engine issues such as performance, FTS, etc. (http://social.msdn.microsoft.com/Forums/en-US/sqldatabaseengine/threads)
How to find your answer faster
There is a wealth of information already available to help you answer your questions. Finding an answer via a few quick searches is much quicker than posting a question and waiting for an answer. Here are some great places to start your research:
SQL Server 2005 Books Onlinne
Search it online at http://msdn2.microsoft.com
Download the full version of the BOL from here
Microsoft Support Knowledge Base:
Search it online at http://support.microsoft.com
Search the SQL Storage Engine PM Team Blog:
The blog is located at https://blogs.msdn.com/sqlserverstorageengine/default.aspx
Search other SQL Forums and Web Sites:
MSN Search: http://www.bing.com/
Or use your favorite search engine
How to ask a good question
Make sure to give all the pertinent information that people will need to answer your question. Questions like “I got an IO error, any ideas?” or “What’s the best technology for me to use?” will likely go unanswered, or at best just result in a request for more information. Here are some ideas of what to include:
For the “I got an IO error, any ideas?” scenario:
The exact error message. (The SQL Errorlog and Windows Event Logs can be a rich source of information. See the section on error logs below.)
What were you doing when you got the error message?
When did this start happening?
Any troubleshooting you’ve already done. (e.g. “I’ve already checked all the firmware and it’s up-to-date” or "I've run SQLIOStress and everything looks OK" or "I ran DBCC CHECKDB and the output is <blah>")
Any unusual occurrences before the error occurred (e.g. someone tripped the power switch, a disk in a RAID5 array died)
If relevant, the output from ‘DBCC CHECKDB (yourdbname) WITH ALL_ERRORMSGS, NO_INFOMSGS’
The SQL Server version and service pack level
For the “What’s the best technology for me to use?” scenario:
What exactly are you trying to do? Enable local hardware redundancy? Geo-clustering? Instance-level failover? Minimize downtime during recovery from IO errors with a single-system?
What are the SLAs (Service Level Agreements) you must meet? (e.g. an uptime percentage requirement, a minimum data-loss in the event of a disaster requirement, a maximum downtime in the event of a disaster requirement)
What hardware restrictions do you have? (e.g. “I’m limited to a single system” or “I have several worldwide mirror sites but the size of the pipe between them is limited to X Mbps”)
What kind of workload does you application have? (or is it a mixture of applications consolidated on a single server, each with different SLAs) How much transaction log volume is generated?
What kind of regular maintenance does your workload demand that you perform (e.g. “the update pattern of my main table is such that fragmentation increases in the clustered index, slowing down the most common queries so there’s a need to perform some fragmentation removal regularly”)
Finding the Logs
You will often find more information about an error by looking in the Error and Event logs. There are two sets of logs that are interesting:
SQL Error Log: default location: C:\Program Files\Microsoft SQL Server\MSSQL.#\MSSQL\LOG (Note: The # changes depending on the ID number for the installed Instance. This is 1 for the first installation of SQL Server, but if you have mulitple instances, you will need to determine the ID number you’re working with. See the BOL for more information about Instance ID numbers.)
Windows Event Log: Go to the Event Viewer in the Administrative Tools section of the Start Menu. The System event log will show details of IO subsystem problems. The Application event log will show details of SQL Server problems.hi,I have a question on sql database high availability. I have tried using database mirroring, where I am using sql standard edition, in this database mirroring of synchronous mode is the only option available, and it is giving problem, like sql time out errors on my applicatons since i had put in the database mirroring, as asynchronous is only available on enterprise version, is there any suggestions on this. thanks ---vijay
-
I see this error: Error: 3624, Severity: 20, State: 1
Complete error in the error log is:
SQL Server Assertion: File: <loglock.cpp>, line=807 Failed Assertion = 'result == LCK_OK'. This error may be timing-related. If the error persists after rerunning the statement, use DBCC CHECKDB to check the database for structural integrity, or restart
the server to ensure in-memory data structures are not corrupted.
SQL Server 2008 R2 with Service pack 2 installed and mirrored.
I see this error in the sql server dump file:
0:000> .ecxr
rax=00000000676a7a6a rbx=0000000003fd3250 rcx=000000001048aaa0
rdx=0000000000000000 rsi=0000000003bbef3c rdi=0000000000000440
rip=000007fefd10940d rsp=000000001048b0b0 rbp=000000001048ca50
r8=0000000000000000 r9=0000000000000000 r10=00000000c000007c
r11=00000000012e98d0 r12=00000000000007c0 r13=0000000000000000
r14=0000000000000000 r15=00000000000007c0
iopl=0 nv up ei pl nz na po nc
cs=0033 ss=002b ds=002b es=002b fs=0053 gs=002b efl=00000206
KERNELBASE!RaiseException+0x39:
000007fe`fd10940d 4881c4c8000000 add rsp,0C8h
0:000> kC 1000
Call Site
KERNELBASE!RaiseException
sqlservr!CDmpDump::Dump
sqlservr!SQLDumperLibraryInvoke
sqlservr!CImageHelper::DoMiniDump
sqlservr!stackTrace
sqlservr!utassert_fail
sqlservr!LogLockCollectionAcquire::Callback
sqlservr!LogLockCollection::ApplyLocks
sqlservr!LogLockCollection::Acquire
sqlservr!DBMRedoManager::AnalyzeLogRecord
sqlservr!DBMRedoManager::RunAnalysis
sqlservr!DBMRedoManager::ApplyLogSegment
sqlservr!DBMRedoManager::Execute
sqlservr!SubprocEntrypoint
sqlservr!SOS_Task::Param::Execute
sqlservr!SOS_Scheduler::RunTask
sqlservr!SOS_Scheduler::ProcessTasks
sqlservr!SchedulerManager::WorkerEntryPoint
sqlservr!SystemThread::RunWorker
sqlservr!SystemThreadDispatcher::ProcessWorker
sqlservr!SchedulerManager::ThreadEntryPoint
msvcr80!endthreadex
msvcr80!endthreadex
kernel32!BaseThreadInitThunk
ntdll!RtlUserThreadStart
Not sure what to infer from this. Any help would be appreciated.
Let me know if more info. is needed.
Thanks !!!I did not have a chance to run that at the time the error happened, now everything is normal. Do you have any idea on what this means?
sqlservr!LogLockCollectionAcquire::Callback
I suggest you to run full DBCC CHECKDB , like I said assertion errors are basically related to Internal SQL Server problem
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it
My Technet Wiki Article
MVP -
Configure SQL Server to work together with OpenFire (XMPP/Jabber Server)
Hi all,
I am trying to set up Openfire (a jabber/xmpp server) to talk to a SQL Server on the same machine.
I am following these instructions for this: https://www.igniterealtime.org/builds/openfire/docs/latest/documentation/database.html#sqlserver
I have created a database for this, created a login under the server node, called OpenFireUser, and have also created a User, also called OpenFireUser, which is mapped to just mentioned login, for the Database, called OpenFireDB.
I then ran some scripts provided by openfire to set up the database. The scripts execute fine.
I then proceed to set up the connecition using the OpenFire Web Admin, at localhost:9090. This is the setup screen, with my settings:
Specifically, the Database URL looks like this: jdbc:jtds:sqlserver://WIN-LV4K7BSUPJO/OpenFireDB;appName=jive, where
WIN-LV4K7BSUPJO is the server (localhost, in this case). I have also tried specifying port 1433, e.g. jdbc:jtds:sqlserver://WIN-LV4K7BSUPJO:1433/OpenFireDB;appName=jive.
Unfortunately, I always get the red-boxed message you can see in the image. If I view the OpenFire Error logs this is
the last message:
2014.09.24 21:17:10 org.jivesoftware.database.DbConnectionManager - Network error IOException: Connection refused: connect
java.sql.SQLException: Network error IOException: Connection refused: connect
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:385)
at net.sourceforge.jtds.jdbc.ConnectionJDBC3.<init>(ConnectionJDBC3.java:50)
at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:182)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConn ectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:211 )
at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.jivesoftware.database.DefaultConnectionProvider.getConnection(DefaultConnec tionProvider.java:86)
at org.jivesoftware.database.DbConnectionManager.setConnectionProvider(DbConnectio nManager.java:616)
at org.jivesoftware.openfire.admin.setup.setup_002ddatasource_002dstandard_jsp._js pService(setup_002ddatasource_002dstandard_jsp.java:206)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:738)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1651)
at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:11 8)
at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1639)
at org.jivesoftware.util.LocaleFilter.doFilter(LocaleFilter.java:74)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1639)
at org.jivesoftware.util.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingF ilter.java:50)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1639)
at org.jivesoftware.admin.PluginFilter.doFilter(PluginFilter.java:78)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1639)
at org.jivesoftware.admin.AuthCheckFilter.doFilter(AuthCheckFilter.java:164)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.ja va:1631)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:549)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:568)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:22 1)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:11 11)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:478)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183 )
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:104 5)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandler Collection.java:199)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.jav a:109)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
at org.eclipse.jetty.server.Server.handle(Server.java:462)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:279)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:232)
at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:534)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607 )
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.DualStackPlainSocketImpl.connect0(Native Method)
at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source)
at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source)
at java.net.AbstractPlainSocketImpl.connect(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:3 04)
at net.sourceforge.jtds.jdbc.SharedSocket.<init>(SharedSocket.java:255)
at net.sourceforge.jtds.jdbc.ConnectionJDBC2.<init>(ConnectionJDBC2.java:310)
... 47 more
The SQL Server logs (sp_readerrorlog) dont indicate any problem or even any attempt to connect. I am not sure
if this is an isue with the configuration of my SQL Server (it is configured to use both Windows and Sql Server Authentication), or whether this is an issue with OpenFire. I have posted on the OpenFire forum as well, but I thought I'd post here as well to
see if anyone has any suggestions on SQL Server configuration that might solve this.
Thanks for any and all help,
Best regards,
ChrisGood day
I advise you to try asking on the application support's team or forum, since this is not look like an sql server problem but application. Once the connection string is OK and the other actions done without problem, It give a feeling like this is something that
the application's developer could find very fast
[Personal Site] [Blog] [Facebook] -
SQL Server 2012 SP1 fails to uninstall
Hi,
I get the following error message when I try to uninstall 2012 SP1. The repair and install also gives below error
Could not load type 'System.Xml.Xsl.Xslt.XslVersion' from assembly 'System.Data.SqlXml, Version=2.0.0.0, Culture=neutral, PublicKeyToken=' due to value type mismatch
Any thoughts? ThanksHi Shiva Gangadhar,
According to your description, if you want to uninstall SQL Server 2012 SP1 completely, you need to note that the service pack makes changes to the system tables for maintenance reasons, and upgrades
user and distribution databases that are members of a replication topology. Due to these changes, you cannot easily remove service packs. There is no automated way to remove a service pack, and the process of removing a service pack involves several manual
steps and risks if not done correctly.
There are more details about how to remove a SQL Server Service Pack and uninstall SQL Server instance completely.
http://support.microsoft.com/kb/314823/en-us
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/4d6158a1-b601-428c-aad4-a1716e76de1a/install-sql-server-problem?forum=sqlexpress
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Service-specific error code -2146885628- MS SQL Server 2008 r2 Express
I have had no end of problems starting my MS SQL Server 2008 r2 Express.
My database program (Sage ACT! Pro 2011) starts fine. However when it attempts to start my default database, I get the following error message:
When I start my database within my application software (ACT Pro 2011) , I get the following error:
I am not abler to open any database with in ACT 2011. This error tells me that I must manually start SQL Server. I am running Windows 7 Pro, SP1. So I go to Services, and right click on SQL Server (ACT7) and click start and get the following error:
I have contacted Swiftpage and spent 2 hours on the phone with their technical support. They manually (via remote desktop connection) deleted ACT Pro 2011 and manually deleted SQL Server 2008 r2 Express (in registry and all files and folders).
I decided to upgrade, so ACT Pro v16 was installed. SQL Server still would not start automatically or manually. The ACT technical support person, after two very long hours said: that it is not an ACT problem, that I would need to turn to Microsoft for
a resolution as to why SQL Server will not start, and how to remedy this issue.
I hope someone can offer help or point me in the direction to get this very bad problem resolved. I cannot work without my CRM! can someone help?
Thanks!This is the sum total of an error log in: C:\Program Files\Microsoft SQL Server\MSSQL10_50.act7\MSSQL\Log. There are no error logs for June 23 to July 14. This is the closest
date to the first time I experienced this SQL Server problem.
2014-07-15 09:32:43.31 Server Microsoft SQL Server 2008 R2 (SP2) - 10.50.4000.0 (X64)
Jun 28 2012 08:36:30
Copyright (c) Microsoft Corporation
Express Edition (64-bit) on Windows NT 6.1 <X64> (Build 7601: Service Pack 1)
2014-07-15 09:32:44.12 Server (c) Microsoft Corporation.
2014-07-15 09:32:44.12 Server All rights reserved.
2014-07-15 09:32:44.12 Server Server process ID is 2276.
2014-07-15 09:32:44.15 Server System Manufacturer: 'TOSHIBA', System Model: 'Satellite L775D'.
2014-07-15 09:32:44.27 Server Authentication mode is MIXED.
2014-07-15 09:32:44.27 Server Logging SQL Server messages in file 'c:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG'.
2014-07-15 09:32:44.63 Server This instance of SQL Server last reported using a process ID of 6980 at 7/15/2014 9:13:22 AM (local) 7/15/2014 1:13:22 PM (UTC). This is an informational message only; no user action is required.
2014-07-15 09:32:44.63 Server Registry startup parameters:
-d c:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\master.mdf
-e c:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\Log\ERRORLOG
-l c:\Program Files\Microsoft SQL Server\MSSQL10_50.ACT7\MSSQL\DATA\mastlog.ldf
2014-07-15 09:32:46.39 Server SQL Server is starting at normal priority base (=7). This is an informational message only. No user action is required.
2014-07-15 09:32:46.40 Server Detected 4 CPUs. This is an informational message; no user action is required.
2014-07-15 09:33:00.47 Server Using dynamic lock allocation. Initial allocation of 2500 Lock blocks and 5000 Lock Owner blocks per node. This is an informational message only. No user action is required.
2014-07-15 09:33:33.57 Server Node configuration: node 0: CPU mask: 0x000000000000000f:0 Active CPU mask: 0x000000000000000f:0. This message provides a description of the NUMA configuration for this computer. This is an informational message
only. No user action is required.
2014-07-15 09:33:37.59 spid7s Starting up database 'master'.
2014-07-15 09:33:40.89 spid7s FILESTREAM: effective level = 0, configured level = 0, file system access share name = 'ACT7'.
2014-07-15 09:33:42.39 spid7s SQL Trace ID 1 was started by login "sa".
2014-07-15 09:33:42.56 spid7s Starting up database 'mssqlsystemresource'.
2014-07-15 09:33:42.86 spid7s The resource database build version is 10.50.4000. This is an informational message only. No user action is required.
2014-07-15 09:33:46.59 spid10s Starting up database 'model'.
2014-07-15 09:33:46.58 spid7s Server name is 'Harold_Schultz\ACT7'. This is an informational message only. No user action is required.
2014-07-15 09:33:46.59 spid10s Error: 17204, Severity: 16, State: 1.
2014-07-15 09:33:46.59 spid10s FCB::Open failed: Could not open file e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\model.mdf for file number 1. OS error: 3(The system cannot find the path specified.).
2014-07-15 09:33:46.85 spid7s Informational: No full-text supported languages found.
2014-07-15 09:33:46.85 spid10s Error: 5120, Severity: 16, State: 101.
2014-07-15 09:33:46.85 spid10s Unable to open the physical file "e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2014-07-15 09:33:46.85 spid7s Starting up database 'msdb'.
2014-07-15 09:33:46.85 spid7s Error: 17204, Severity: 16, State: 1.
2014-07-15 09:33:46.85 spid7s FCB::Open failed: Could not open file e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBData.mdf for file number 1. OS error: 3(The system cannot find the path specified.).
2014-07-15 09:33:46.85 spid7s Error: 5120, Severity: 16, State: 101.
2014-07-15 09:33:46.85 spid7s Unable to open the physical file "e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2014-07-15 09:33:47.04 Server Warning: Support for the VIA protocol is deprecated and will be removed in a future version of Microsoft SQL Server. If possible, use a different network protocol and disable VIA.
2014-07-15 09:33:47.33 Server Virtual Interface Architecture protocol is not supported for this particular edition of SQL Server.
2014-07-15 09:33:48.03 spid7s Error: 17207, Severity: 16, State: 1.
2014-07-15 09:33:48.03 spid7s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf'.
Diagnose and correct the operating system error, and retry the operation.
2014-07-15 09:33:48.04 spid10s Error: 17207, Severity: 16, State: 1.
2014-07-15 09:33:48.04 spid10s FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\modellog.ldf'. Diagnose
and correct the operating system error, and retry the operation.
2014-07-15 09:33:48.08 spid7s File activation failure. The physical file name "e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\MSDBLog.ldf" may be incorrect.
2014-07-15 09:33:48.08 spid10s File activation failure. The physical file name "e:\sql10_main_t.obj.x86fre\sql\mkmastr\databases\objfre\i386\modellog.ldf" may be incorrect.
2014-07-15 09:33:48.15 spid10s Error: 945, Severity: 14, State: 2.
2014-07-15 09:33:48.15 spid10s Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space. See the SQL Server errorlog for details.
2014-07-15 09:33:48.38 spid10s Could not create tempdb. You may not have enough disk space available. Free additional disk space by deleting other files on the tempdb drive and then restart SQL Server. Check for additional errors in the event
log that may indicate why the tempdb files could not be initialized.
2014-07-15 09:33:48.39 spid10s SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.
2014-07-15 09:33:48.38 Server Error: 17190, Severity: 16, State: 1.
2014-07-15 09:33:48.38 Server Initializing the FallBack certificate failed with error code: 1, state: 1, error number: -2146893802.
2014-07-15 09:33:48.42 Server Unable to initialize SSL encryption because a valid certificate could not be found, and it is not possible to create a self-signed certificate.
2014-07-15 09:33:48.44 Server Error: 17182, Severity: 16, State: 1.
2014-07-15 09:33:48.44 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x80. Reason: Unable to initialize SSL support. Cannot find object or property.
2014-07-15 09:33:48.44 Server Error: 17182, Severity: 16, State: 1.
2014-07-15 09:33:48.44 Server TDSSNIClient initialization failed with error 0x80092004, status code 0x1. Reason: Initialization failed with an infrastructure error. Check for previous errors. Cannot find object or property.
2014-07-15 09:33:48.44 Server Error: 17826, Severity: 18, State: 3.
2014-07-15 09:33:48.44 Server Could not start the network library because of an internal error in the network library. To determine the cause, review the errors immediately preceding this one in the error log.
2014-07-15 09:33:48.44 Server Error: 17120, Severity: 16, State: 1.
2014-07-15 09:33:48.44 Server SQL Server could not spawn FRunCM thread. Check the SQL Server error log and the Windows event logs for information about possible related problems. -
Hello all-
This is much more a SQL Server question than a ColdFusion
question- but I'm not using Transact SQL, so the SQL Server
resources aren't really telling me anything I need to know.
I'm using FREETEXT for full-text searching on SQL Server
2000. (CF8 on Windows) Currently this gives me an 'OR' search.
So if I put in 3 words such as: 'web policy manual' the
search will come back with anything that contains ANY of those
words.
Does anyone know how to change that to an AND search that
will return only the documents that contain all three?
Thanks for any help-
KarlI did end up using CONTAINS, but it took me a few tries to
get it right.
Contains with an 'OR' is easy, but contains with 'AND' means
that each word in your search criteria needs to be in a different
function. And none of those functions can fail, or the whole thing
will fail.
So first I had to clean up the search critiera, then do the
search itself. I have attached code samples below.
Thanks for the suggestions- -
I am trying connect to a SQL instance for our CRM program and I am receiving To Connect to this Server you must use SQL Management Studio or SQL Server Management
This is a Brand new Server 2012 that is running our CRM product and it is trying to connect to a Server 2008 R2 server with SQL Server 2008 R2 SP2 instance (10.50.4000)
I have seen this in the past where it needed the 2005 backwards compatibility components installed but those are not supported on 2012 server and this is not a 2005 SQL instance.
I am trying to install the Shared Management Objects for SQL Server 2008 but it tells me I need to install the CLR types, which I did install. But it continues to tell me to install the CLR types.
Has anyone ran into any issues like this? (this happens trying to connect to multiple SQL Servers from this new 2012 Server)
Thanks!
-MaxHello,
Which version and edition of the SQL Server instance did you installed on the new server machine? If you install SQL Server 2012 Express edition, you can try to install SQL Server Management Studio 2012 from
this link.
You can connect to SQL Server 2008 R2 or earily verions with SSMS 2012.
What's more, Microsoft SQL Server 2008 Management Objects Collection requires Microsoft Core XML Services (MSXML) 6.0, Microsoft SQL Server Native Client, and Microsoft SQL Server System CLR Types. You can try to download and install
SQL Serve 2008 Feature Pack
which contains packages above.
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
DB Link to SQL Server (11gR2 64-bit Windows 7)
Without going into all the gruesome details, it is mostly straightforward to set up a DB Link to SQL Server from an Oracle 10 instance on 32 bit Windows 7. However I simply cannot get the link to work on 11gR2. I tried the simplistic ds4odbc interface and the more complex SQL Server gateway. Nothing works. The connection always times out. Has anyone been able to create a SQL Server DB link from 11gR2 on Windows 7? (The Oracle instance is 32 bit. The OS is 64 bit). I know Win7 is unsupported at present.
Edited by: user2190753 on Oct 14, 2010 4:51 PMHi,
first of all you need to check the ODBC connectivity between Oracle and SQL Server and the Data source,try to load data from oracle to Sql Server to check the ODBC connection is working properly and then create database link from sql server to oracle ,you can create stored procedures in SQL server to get data from Oracle to sql server or Oracle PL/SQL Packages to data from sql server to Oracle Database
To setup ODBC and datasource
see this link
http://www.databasejournal.com/features/oracle/article.php/3442661/Making-a-Connection-from-Oracle-to-SQL-Server.htm
and then create link server in sql server after you test connenction with oracle
Maybe you are looking for
-
I'm also getting the dreaded Blue Screen Of Death when I boot into Windows
This happened right after I upgraded to the most recent version of iTunes. Everytime I initially boot the computer, it would get into Windows, crashes immediately, then my system reboots and I'm able to get into windows no problem. Reading the help s
-
Where can I buy RCA to mono Jack ? please help. Thank you
-
External Service Procurement : Queries
I have three queries regarding external Service Procurement 1) IN SERVICES Purchase order , Over delivery Tolerance and unlimited TOLERANCE can be defined at two places , A) in Service tab aginst each service B) iN po LINE ITEM , DELIVERY tAB What is
-
Column Modification impact to Data foundation, Business layer and Data source in DS 1.2
Issue An existing Business Layer that is consumed by a Data Source definition in Design Studio 1.2 Version: 12.0.2.201311041742 seems to invalidate the entire Data Source object after modification to the base tables DDL (data definition). Informatio
-
BATCH SPLIT in Order Delivery and PGI (SD)
Hi Could anybody tell me the following: 1) What is the concept of Batch Split? 2) How it is shown when a Delivery Order is created? 3) How it afftects when Goods Issue is done? 4) How can we calculate the total delivery quantity when there is a Batch