JDriver for MS SQL Server 6.5 and Connection Pooling
I was given the unfortunate task :-) of getting data out of M$FT SQL 6.5. I set
up a JDBC connection pool using jDriver in mssqlserver4v65.jar, and created a
JDBCDataSource for the pool. I am using a stateless session bean + JDBC (with
the DAO pattern) to get data. In the DAO class I have an instance variable for
the datasource, which I look up in the constructor. In the DAO's business method
I RELIGIOUSLY call datasource.getConnect() first, and ALWAYS call connection.close()
in the finally block. Now the initial requests are fine, but after a while I
got a weblogic.common.ResourceException telling me there were no more connection
available in the pool. Is this a jDriver bug? I never run into such a problem
with an Oracle connection pool using the thin driver.
Any insight will be greatly appreciated.
Eric Ma
Eric Ma wrote:
Joe:
Connection is a LOCAL variable declared in each method. DataSource is an instance
variable.That sounds fine... let me see your code (main block plus finally block). How long does this
take to reproduce? Show me your pool definition.
thanks,
Joe
>
>
Eric
Joseph Weinstein <[email protected]> wrote:
Eric Ma wrote:
I was given the unfortunate task :-) of getting data out of M$FT SQL6.5. I set
up a JDBC connection pool using jDriver in mssqlserver4v65.jar, andcreated a
JDBCDataSource for the pool. I am using a stateless session bean +JDBC (with
the DAO pattern) to get data. In the DAO class I have an instancevariable for
the datasource, which I look up in the constructor. In the DAO's businessmethod
I RELIGIOUSLY call datasource.getConnect() first, and ALWAYS call connection.close()
in the finally block. Now the initial requests are fine, but aftera while I
got a weblogic.common.ResourceException telling me there were no moreconnection
available in the pool. Is this a jDriver bug? I never run into sucha problem
with an Oracle connection pool using the thin driver.
Any insight will be greatly appreciated.
Eric MaHi. Is the connection object an instance variable? That would be a problem.
The connection object has to be a method variable to be safe from multithreading
issues.
Joe
Similar Messages
-
JDriver for microsoft sql server 2000
"Hi, Currently, I am using your JDriver for microsoft SQL server 2000 for evaluation purposes and confront the following problem: (1) using utils.dbping C:\student\work>java utils.dbping mssqlserver4 sa "" ywu**** Success!!! ****You can connect to the database in your app using: java.util.Properties props = new java.util.Properties(); props.put("user", "sa"); props.put("password", ""); java.sql.Driver d = (java.sql.Driver)Class.forName("weblogic.jdbc.mssqlserver.Driver").newInstance(); java.sql.Connection conn = d.connect("jdbc:weblogic:mssqlserver4:ywu", props) // This mode is superior, especially in serverside classes because // it avoids DriverManager calls are class synchronized, and will // bottleneck any other JDBC in the server, even already-running // connections, because all JDBC drivers use DriverManager.println() // to log info and exceptions, and that call is also class synchronized. // For repeated connecting, a single driver instance can be re-used.**** or **** Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance(); java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4:ywu", "sa", "");**** or **** java.util.Properties props = new java.util.Properties(); props.put("user", "sa"); props.put("password", ""); props.put("server", "ywu"); Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance(); java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4", props);It seems that everything is fine, but(2) set up connection pool to MS SQL server, the weblogic server prints out error messages during the server goes up:<Jun 18, 2001 5:51:22 PM EDT> <Error> <JDBC Connection Pool> <Cannot startup connection pool "newSQLconn" weblogic.common.ResourceException:Could not create pool connection. The DBMS driver exception was:Driver
Hi,
I was having the same problem and to solve it u have to point your classpath to
mssqlserver4v65.jar in the lib directory of your wl installation, in my case i
did:
set classpath=%classpath%;%WL_HOME%\lib\mssqlserver4v65.jar
I hope it helps.
Yuanqing Wu <[email protected]> wrote:
"Hi, Currently, I am using your JDriver for microsoft SQL server 2000
for evaluation purposes and confront the following problem: (1)
using utils.dbping C:\student\work>java utils.dbping
mssqlserver4 sa "" ywu**** Success!!! ****You can connect to the database
in your app using: java.util.Properties props = new java.util.Properties();
props.put("user", "sa"); props.put("password", ""); java.sql.Driver
d = (java.sql.Driver)Class.forName("weblogic.jdbc.mssqlserver.Driver").newInstance();
java.sql.Connection conn = d.connect("jdbc:weblogic:mssqlserver4:ywu",
props) // This mode is superior, especially in serverside classes because
// it avoids DriverManager calls are class synchronized, and will
// bottleneck any other JDBC in the server, even already-running //
connections, because all JDBC drivers use DriverManager.println() //
to log info and exceptions, and that call is also class synchronized.
// For repeated connecting, a single driver instance can be re-used.****
or
**** Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4:ywu",
"sa", "");**** or **** java.util.Properties props = new java.util.Properties();
props.put("user", "sa"); props.put("password", ""); props.put("server",
"ywu"); Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
java.sql.Connection conn = DriverManager.getConnection("jdbc:weblogic:mssqlserver4",
props);It
seems that everything is fine, but(2) set up connection pool to MS SQL
server, the weblogic server prints out error messages during the server
goes up:<Jun 18, 2001 5:51:22 PM EDT> <Error> <JDBC Connection Pool>
<Cannot startup connection pool "newSQLconn" weblogic.common.ResourceException:Could
not create pool connection. The DBMS driver exception was:Driver -
BEA WebLogic jDriver for Microsoft SQL Server
Will BEA continue to support current and future installations of WebLogic jDriver for Microsoft SQL Server 2000 even though BEA recommends to use the JDBC driver available from Microsoft? A written response is necessary in order to determine our future product development direction.
Thank you for your attention regarding this matter.Actually, this driver is already documented as deprecated. We intended to remove it from a future
release (most likely, the release after WLS 8.1).
The plan is to ship another driver out-of-the-box. We have been evaluating various drivers
for features, quality, and performance. We are pushing very hard to have this replacement
driver available in 8.1SP01, which will also ship with the WLI/Portal/WLW GA (announced to
ship in July). The most likely candidate is already in testing both at the WLS level and
with the layered products. It also did quite well in an internal performance comparison.
"Joseph Weinstein" <[email protected]_this> wrote in message news:[email protected]_this...
>
>
Peter Foskaris wrote:
Will BEA continue to support current and future installations of WebLogic jDriver for Microsoft SQL Server 2000 even though
BEA recommends to use the JDBC driver available from Microsoft? A written response is necessary in order to determine our future
product development direction.
>>
Thank you for your attention regarding this matter.Hi. We intend to deprecate it. We may or may not fix bugs that are found in it in future, and will likely
not do any more development on it, such as implementing any JDBC 2.0 methods. It will be in
our next major release (8), but may not be in future ones.
Joe Weinstein at BEA -
Licensing problems installing JDriver for MS SQL Server
I've been having problems for some time now creating a connection pool in WL 5.1 using the MS SQLServer4v70 JDriver. I am at wits end and haven't been able to find a solution or find anybody that could give me a solution. Below is a better description of the problem including exact error messages and configuration.
There's some simple problem here, but I'm not an
installation expert. Would you please post this to
the support.install group? If you don't get help
quickly from there, let me know.
JoeAt 09:54 AM 10/31/00 -0800, you wrote:
Here's the exact error message:
Tue Oct 31 09:52:09 PST 2000:<I> <WebLogicServer> IIOP subsystem enabled.
weblogic.common.LicenseNotFoundException: Could not find licensing file:
Your WebLogic license file, named either WebLogicLicense.xml or
WebLogicLicense.class must be located in a directory that is
in your CLASSPATH. By default, your license file is located in the
/license directory located in your WebLogic home directory
(the root directory of your WebLogic installation).
As of version 4.0 of WebLogic, a new XML-format license file has
replaced the older, compiled class format license file.
The WebLogic Server will recognize either format.
For additional information on WebLogic licenses or on setting your
classpath, see the i
stallation instructions in the WebLogic Server documentation, available at
http://e-docs.bea.com/
my weblogic class path looks like:
CLASSPATH Prefix c:\weblogic\mssqlserver4v70\classes
CLASSPATH
c:\weblogic\mssqlserver4v70\classes;c:\jdk1.3\lib\tools.jar;c:\jdk1.3\jre\li
b\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;C:\weblogic\license;C:\weblogic\classes\
boot;C:\weblogic\cla
sses;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\eval\cloudscape\lib\cloudsc
ape.jar
JAVA_HOME c:\jdk1.3
WEBLOGIC_LICENSEDIR C:\weblogic\license
WEBLOGIC_HOME C:\weblogic
system properties:
java.security.manager
java.security.policy==C:\weblogic\weblogic.policy
weblogic.system.home=C:\weblogic
java.compiler=symcjit
weblogic.class.path=C:\weblogic\license;C:\weblogic\classes;C:\weblogic\myse
rver\serverclasses;C:\weblogic\lib\weblogicaux.jar
INITIAL_HEAP 64 MB
MAX_HEAP 64 MB
SERVERCLASSPATH
c:\weblogic\mssqlserver4v70\classes;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\l
ib\i18n.jar;C:\weblogic\classes\boot;C:\weblogic\eval\cloudscape\lib\cloudsc
ape.jar
Type "wlconfig -help" for program usage.
The license file is attached:
-Matt
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, October 31, 2000 8:41 AM
To: Matthew Heaton
Subject: RE: Problems creating connection pool
At 04:35 PM 10/30/00 -0800, you wrote:
Still having problems with it not finding the licenseOk, what is the exact failure message? Does the server start fine?
Then it's finding the server license in the weblogiclicense.xml file.
Is it then failing to find the driver license? If so, show me your
editted xml license file.
Joe
Currently nothing related to the driver is in my classpath and
c:\weblogic\mssqlserver4v70\classes is in my weblogic classpath. I deleted
the license folder for the driver after moving the guts of it into the main
weblogic license file.
-Matt
-----Original Message-----
From: [email protected] [mailto:[email protected]]
Sent: Monday, October 30, 2000 3:46 PM
To: Matthew Heaton
Subject: Re: Problems creating connection pool
Hi Matt.
You did the right thing adding the driver to the weblogic.class.path.
That's where it should be, not in the java.class.path. The current
licensing issue is that the weblogic server has(had?) it's own copy of
WebLogicLicense.xml, containing the server licenses. The one from thedriver
is now in the path. It contains the driver license, but not the server
stuff. Edit the server one, adding the guts of the driver one, and
delete the driver xml license file from your path.
Joe
Matt Heaton wrote:
This is a problem that has been a roadblock for me for a while, I'm usingWL 5.1 and trying to create a connection pool with the MS SQL server 4v70
JDriver.
Here is the code to create the connection pool:
weblogic.jdbc.connectionPool.SQLPool=\
url=jdbc:weblogic:mssqlserver4:MATTHEWH1:1433,\
driver=weblogic.jdbc.mssqlserver4.Driver,\
initialCapacity=1,\
maxCapacity=2,\
capacityIncrement=1,\
props=user=AceUser;password=AceUser;server=MATTHEWH1
I've addedc:\weblogic\mssqlserver4v70\classes;c:\weblogic\mssqlserver4v70\license to
my class path, but I was getting a class not found exception when Weblogic
tried to make the connection pool. I then added
c:\weblogicmssqlserver4v70\classes to my Weblogic classpath and got the
following error:
weblogic.common.LicenseNotFoundException: Could not find licensing file:
Your WebLogic license file, named either WebLogicLicense.xml or
WebLogicLicense.class must be located in a directory that is
in your CLASSPATH. By default, your license file is located in
the
/license directory located in your WebLogic home directory
(the root directory of your WebLogic installation).
As of version 4.0 of WebLogic, a new XML-format license file has
replaced the older, compiled class format license file.
The WebLogic Server will recognize either format.
For additional information on WebLogic licenses or on settingyour
classpath, see the in
stallation instructions in the WebLogic Server documentation, available
at
http://e-docs.bea.com/
So I tried adding c:\weblogic\mssqlserver4v70\license to the weblogicclasspath and got yet a different error:
$$$$$$$$$$$$$$$$ License Exception $$$$$$$$$$$$$$$$
Loaded License : C:/weblogic/license/WebLogicLicense.xml
However Unable to start because :
No License found for WebLogic
As well as the fact that: No License found for Tengah
As well as the fact that: No License found for WebLogic/JDBC
As well as the fact that: No License found for Tengah/JDBC
As well as the fact that: No License found for jdbcKona/T3
WebLogic Server terminated with an abnormal condition of 1
What do I do? I've tried everything I can think of, I was able to getthis to work the first time that I tried to do it but everytime I've tried
since then this happens.
-Matt--
PS: Folks: BEA WebLogic is in S.F. with both entry and advanced positions
for
people who want to work with Java and E-Commerce infrastructure products.
Send
resumes to [email protected]
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web Application
Server
Crossroads A-List Award: Rapid Application Development Tools for Java
Intelligent Enterprise RealWare: Best Application Using a Component
Architecture
http://www.bea.com/press/awards_weblogic.html
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web Application
Server
Crossroads A-List Award: Rapid Application Development Tools for Java
Intelligent Enterprise RealWare: Best Application Using a Component
Architecture
http://www.bea.com/press/awards_weblogic.html
Attachment Converted: "c:\eudora\attach\WebLogicLicense11.xml"
The Weblogic Application Server from BEA
JavaWorld Editor's Choice Award: Best Web Application Server
Java Developer's Journal Editor's Choice Award: Best Web Application Server
Crossroads A-List Award: Rapid Application Development Tools for Java
Intelligent Enterprise RealWare: Best Application Using a Component Architecture
http://www.bea.com/press/awards_weblogic.htmlEric Ma wrote:
Joe:
Connection is a LOCAL variable declared in each method. DataSource is an instance
variable.That sounds fine... let me see your code (main block plus finally block). How long does this
take to reproduce? Show me your pool definition.
thanks,
Joe
>
>
Eric
Joseph Weinstein <[email protected]> wrote:
Eric Ma wrote:
I was given the unfortunate task :-) of getting data out of M$FT SQL6.5. I set
up a JDBC connection pool using jDriver in mssqlserver4v65.jar, andcreated a
JDBCDataSource for the pool. I am using a stateless session bean +JDBC (with
the DAO pattern) to get data. In the DAO class I have an instancevariable for
the datasource, which I look up in the constructor. In the DAO's businessmethod
I RELIGIOUSLY call datasource.getConnect() first, and ALWAYS call connection.close()
in the finally block. Now the initial requests are fine, but aftera while I
got a weblogic.common.ResourceException telling me there were no moreconnection
available in the pool. Is this a jDriver bug? I never run into sucha problem
with an Oracle connection pool using the thin driver.
Any insight will be greatly appreciated.
Eric MaHi. Is the connection object an instance variable? That would be a problem.
The connection object has to be a method variable to be safe from multithreading
issues.
Joe -
Problems upgrading to JDBC 5.1 driver for MS SQL Server
Hi,
I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Server and I am
now receiving exceptions in my application when attempting to execute a prepared
statement. I was previously using the Weblogic JDBC 4.x driver for MS SQL Server
and everything was working fine without any problems. For some reason I am receiving
a java.lang.CloneNotSupportedException using the new driver. I am using the setLong(),
setString(), and setObject() methods of the PreparedStatement and then attempting
to execute. The application code has not changed, so it seems that something
has changed in the new driver implementation. Has anyone else had this problem
or know a work around? Here is a snippet of the actual exception:
S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
: Error in TdsParameter clone: cannot make duplicate of Stream object
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
.<init>(TdsPreparedInputStream.java:99)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
rocessing(TdsStatement.java:1317)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
dsStatement.java:173)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:94)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:1438)
Thanks, Nadeem.Nadeem Khokhar wrote:
Is it true that the Weblogic jDriver for MS SQL Server is deprecated? That's the
message that I got from BEA Support and here is the link they sent:
http://edocs.bea.com/wls/docs70/mssqlserver4/install_jmsq4.html#415356
It recommends using Microsoft's JDBC driver instead. Any thoughts on this? From
what I understand and what I have read on the newsgroups, the Microsoft JDBC driver
is still quite buggy and has numerous problems.
Thanks, Nadeem.It is deprecated, but still supported, and is more recent in the download than the one in
the 5.1 server. We do recommend MS's driver, or that of www.inetsoftware.de. The
MS driver is fairly stable now, and may certainly have bugs, as does our driver. The MS
driver is good because it is not deprecated, and supports JDBC 2.0 etc.
Joe
>
>
Joseph Weinstein <[email protected]> wrote:
What version of 5.1? You should be running with the latest service pack.
If that doesn't help, please download the latest 5.1 driver from our
site, and
make sure it's in the weblogic.classpath ahead of all other stuff, by
editting the
startWeblogic script.
Joe
Nadeem Khokhar wrote:
Hi,
I recently upgraded to the Weblogic JDBC 5.1 driver for MS SQL Serverand I am
now receiving exceptions in my application when attempting to executea prepared
statement. I was previously using the Weblogic JDBC 4.x driver forMS SQL Server
and everything was working fine without any problems. For some reasonI am receiving
a java.lang.CloneNotSupportedException using the new driver. I amusing the setLong(),
setString(), and setObject() methods of the PreparedStatement and thenattempting
to execute. The application code has not changed, so it seems thatsomething
has changed in the new driver implementation. Has anyone else hadthis problem
or know a work around? Here is a snippet of the actual exception:
S2 [09/30/02 10:46]: java.sql.SQLException: java.lang.CloneNotSupportedException
: Error in TdsParameter clone: cannot make duplicate of Stream object
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsPreparedInputStream
<init>(TdsPreparedInputStream.java:99)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.doEscapeP
rocessing(TdsStatement.java:1317)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.execute(T
dsStatement.java:173)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:94)
S2 [09/30/02 10:46]: at weblogic.jdbcbase.mssqlserver4.TdsStatement.executeUp
date(TdsStatement.java:1438)
Thanks, Nadeem. -
Connection problem in Crystal Reports for Eclipse(SQL Server Express 2008)
I tried to connect into a local SQL Server Express 2008 database in Crystal Reports for Eclipse (CR4E), but always got the Ping failed message(TCP/IP connection failed) even I tests completed successfully using my Window XP Adminstrators Tools (SQL Server ODBC Data Source Test). I can connect successfully to a remote network Oracle database in CR4E. I would like to know
that is there any one who connect SQL Server Express 2008 local database successfully in CR4E?Don,
Thanks for your suggestions. I will follow your instruction to connect to SQL Server Express 2008 database latelly. I can connect successfully with different Oracle databases (10g) in CR4E. I will try to connect MySQL database and Postgres database in CR4E to see if they can be successful or not. My project involves international entities with emphsizing in using OPEN SOURCE softwares (which means FREE - no license fees) in .NET platform for Oracle, SQL Server Express, MySQL and Postgres database servers. I am responsible for reports generation. I hope that CR4E can be connected successfully to SQL Server Express 2008 database server, otherwise I have to use JFreeReport/JFreeChart tools to do reports generation . -
How to install BIDS for SQL Server 2008 R2 and Visual Studio 2008(SSRS,SSIS)
Hi,
I want to install SQL Server 2008 R2 and Visual Studio to use SSRS tool, where to download these application. And my System Configuration is Window 8.1,64 Bit.
Please share step by step information to download and installation. Kindly Reply soon.
Thank you
Pravesh KumarHi Pravesh Kumar,
As Visakh16 suggestted that you can download sql 2008 r2 standard and developer editon.
If you have a subscription associated with your Microsoft account, you can download sql 2008 r2 standard and developer editon from below link, but these two editions are not for free:
https://msdn.microsoft.com/subscriptions/securedownloads/
Microsoft also provide the evaluation edition for free use of 180 days. This software is for evaluation and testing purposes. The evaluation is available in ISO format. Web, Standard, Enterprise and Datacenter editions are available via the same download:
http://www.microsoft.com/en-us/download/details.aspx?id=11093
More details information about the feature supported by different editions in the article below:
Features Supported by the Editions of SQL Server 2008 R2
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support -
Hi,
I have installed the x64 SQL Server 2008 R2 Express with default settings and run MBSA 2.3 (using default settings too). It shows three SQL Server instances: MSSQL10_50.SQLEXPRESS, SQLEXPRESS and SQLEXPRESS (32-bit). For the first, authentication
mode is Windows, for the rest two - mixed. Here https://social.msdn.microsoft.com/Forums/sqlserver/en-US/03e470dc-874d-476d-849b-c805acf5b24d/sql-mbsa-question-on-folder-permission?forum=sqlsecurity question
about such multiple instances was asked and the answer is that "MSSQL10.TEST_DB
is the instance ID for the SQL Server Database Engine of the instance, TEST_DB", so in my case, it seems that MSSQL10_50.SQLEXPRESS is the instance ID for SQL Server Database Engine of the SQLEXPRESS instance.
I have two questions:
1) How can it be that SQL Server DB Engine instance has different authentication mode than corresponding SQL Server Instance?
2) Why 32-bit instance reported although I installed only 64-bit version?
Also, this https://social.technet.microsoft.com/Forums/security/en-US/6b12c019-eaf0-402c-ab40-51d31dce968f/mbsa-23-reporting-sql-32bt-instance-is-running-in-mixed-mode-when-it-is-set-to-integrated?forum=MBSA question seems to be related to this
issue, but there is no answer :(.
Upd: Tried on clean Windows 8 installation and Windows 7 with the same result.Because I DO NOT want the three people who will be having access to the production SQL Server to also have access to the primary host ProductionA. Since I have to allow them to RDC into the box to manage the SQL Server, I figure why not create
a separate VM for each one of them and they can RDC into those instead.
Does this make any sense?
Any tips are greatly appreciated. The main reason for doing this is because the three people who will be accessing the box, I need to isolate each one of them and at the same time keep them off of the primary ProductionA.
Thanks for your help.
M
Hello M,
Since you dont want the 3 guys to have access to Production machine A.You can install SQL Server client .By client i mean SQL server management studio(SSMS) on there local desktop and then create login for them in SQL Server.Open port on which your SQL server
is running for three of the machines so that they can connct.Now with SSMS installed on each machine each can connect to SQL server from there own machine.
I would also like you to be cautious with giving Sysadmin privilege to all three of them ,first please note down what task they would do and then decide what rights to be provided.
Your option will also work but you need to create 3 VM for that .Which is more tedious task.
Hope this helps
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
I'm new to SQL Server Integration Services and I need help on how to begin learning SSIS. Is there any training for it besides msdn?
Check this thread where people have already given their suggestion on learning SSIS
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/f2cc1cf3-204d-454a-a189-47df87a3aa23/i-want-to-learn-ssis?forum=sqlintegrationservices
I would suggest to go for You tube videos (type learn SSIS or begin SSIS step by step) you will get lot of good tutorials to start with.
Happy Learning!!
If this post answers your query, please click "Mark As Answer" or "Vote as Helpful". -
Hi,
This is similar - yet different - to a few of the old postings about performance
problems with using jdbc drivers against Sql Server 7 & 2000.
Here's the situation:
I am running a standalone java application on a Solaris box using BEA's jdbc driver
to connect to a Sql Server database on another network. The application retrieves
data from the database through joins on several tables for approximately 40,000
unique ids. It then processes all of this data and produces a file. We tuned
the app so that the execution time for a single run through the application was
24 minutes running against Sql Server 6.5 with BEA's jdbc driver. After performing
a DBMS conversion to upgrade it to Sql Server 2000 I switched the jDriver to the
Sql Server 2000 version. I ran the app and got an alarming execution time of
5hrs 32 min. After some research, I found the problem with unicode and nvarchar/varchar
and set the "useVarChars" property to "true" on the driver. The execution time
for a single run through the application is now 56 minutes.
56 minutes compared to 5 1/2 hrs is an amazing improvement. However, it is still
over twice the execution time that I was seeing against the 6.5 database. Theoretically,
I should be able to switch out my jdbc driver and the DBMS conversion should be
invisible to my application. That would also mean that I should be seeing the
same execution times with both versions of the DBMS. Has anybody else seen a
simlar situation? Are there any other settings or fixes that I can put into place
to get my performance back down to what I was seeing with 6.5? I would rather
not have to go through and perform another round of performance tuning after having
already done this when the app was originally built.
thanks,
mikeMike wrote:
Joe,
This was actually my next step. I replaced the BEA driver with
the MS driver and let it run through with out making any
configuration changes, just to see what happened. I got an
execution time of about 7 1/2 hrs (which was shocking). So,
(comparing apples to apples) while leaving the default unicode
property on, BEA ran faster than MS, 5 1/2 hrs to 7 1/2 hrs.
I then set the 'SendStringParametersAsUnicode' to 'false' on the
MS driver and ran another test. This time the application
executed in just over 24 minutes. The actual runtime was 24 min
16 sec, which is still ever so slightly above the actual runtime
against SS 6.5 which was 23 min 35 sec, but is twice as fast as the
56 minutes that BEA's driver was giving me.
I think that this is very interesting. I checked to make sure that
there were no outside factors that may have been influencing the
runtimes in either case, and there were none. Just to make sure,
I ran each driver again and got the same results. It sounds like
there are no known issues regarding this?
We have people looking into things on the DBMS side and I'm still
looking into things on my end, but so far none of us have found
anything. We'd like to continue using BEA's driver for the
support and the fact that we use Weblogic Server for all of our
online applications, but this new data might mean that I have to
switch drivers for this particular application.Thanks. No, there is no known issue, and if you put a packet sniffer
between the client and DBMS, you will probably not see any appreciable
difference in the content of the SQL sent be either driver. My suspicion is
that it involves the historical backward compatibility built in to the DBMS.
It must still handle several iterations of older applications, speaking obsolete
versions of the DBMS protocol, and expecting different DBMS behavior!
Our driver presents itself as a SQL7-level application, and may well be treated
differently than a newer one. This may include different query processing.
Because our driver is deprecated, it is unlikely that it will be changed in
future. We will certainly support you using the MS driver, and if you look
in the MS JDBC newsgroup, you'll see more answers from BEA folks than
from MS people!
Joe
>
>
Mike
The next test you should do, to isolate the issue, is to try another
JDBC driver.
MS provides a type-4 driver now, for free. If it is significantly faster,
it would be
interesting. However, it would still not isolate the problem, because
we still would
need to know what query plan is created by the DBMS, and why.
Joe Weinstein at BEA
PS: I can only tell you that our driver has not changed in it's semantic
function.
It essentially send SQL to the DBMS. It doesn't alter it. -
Cant create connection Pool for MS SQL Server 2000 with Microsoft Driver
i am using bea weblogic server 6.1, i cant create connection pool while using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft website. when
i give the following class name for JDBC driver and the connection url and click
apply while selecting the available server, a number of exception appears in default
server (that is the connection pool cannot be created..... cannot load the driver
class).
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple application in Jbuilder
7.0 the application runs successfully and fetches the data deom MS SQL database
but in at Bea connection Pool is not created with these settings. i do give appropriate
username and password in properties field in connection pool. Thankx for any help!khabbab wrote:
That was the original code part from "startweblogic" :
:runWebLogic
echo on
set PATH=.\bin;%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;
echo off
and i changed it to :
:runWebLogic
echo on
set PATH=.\bin;%PATH%
set CLASSPATH=.;.\lib\weblogic_sp.jar;.\lib\weblogic.jar;D:\Program Files\Microsoft
SQL Server 2000 Driver for JDBC\lib\msbase.jar;D:\Program Files\Microsoft SQL
Server 2000 Driver for JDBC\lib\msutil.jar;D:\Program Files\Microsoft SQL Server
2000 Driver for JDBC\lib\mssqlserver.jar;I suggest moving or copying the three ms driver jars to a directory that has no blanks
in it so the classpath doesn't have blanks in it. Ie:
go to the "D:\Program Files\Microsoft SQL Server 2000 Driver for JDBC\lib"
directory and do this:
mkdir D:\microsoft_jdbc_driver
cp *.jar D:\microsoft_jdbc_driver
Then make the classpath include D:\microsoft_jdbc_driver\msbase.jar etc.
Joe
>
>
echo off
when i save and run the bat file, server appears then disappears.
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
The class path which is echoed at server startup does not include thepaths to
driver jar files. when i edited the "startweblogic.bat" file and includedthe
driver class paths to jar files, now the server doesnot even run. tellme what
to do now???Show me what change you made to the startweblogic file.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
kindly tell me how can i check that the class paths for driver jarfiles are included
in that string? thanks. also tell me can not i use the jdriver forsql server
2000?.The startup script will echo what it's doing, including printing out
the classpath
it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
for
basic JDBC, but the MS drivfer is preferable in some ways.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
i am using bea weblogic server 6.1, i cant create connection
pool
while
using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
website.
when
i give the following class name for JDBC driver and the connectionurl and click
apply while selecting the available server, a number of exception
appears
in default
server (that is the connection pool cannot be created..... cannot
load
the driver
class).The server startup script creates a string that will become the
classpath
for the server.
This string is part of the java call to start the server with a-classpath
argument. You need to
make sure the MS driver jars are part of that classpath string.
Joe
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple applicationin Jbuilder
7.0 the application runs successfully and fetches the data deom
MS
SQL database
but in at Bea connection Pool is not created with these settings.
i
do give appropriate
username and password in properties field in connection pool.
Thankx
for any help!
khabbab wrote:
The class path which is echoed at server startup does not include thepaths to
driver jar files. when i edited the "startweblogic.bat" file and includedthe
driver class paths to jar files, now the server doesnot even run. tellme what
to do now???
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
kindly tell me how can i check that the class paths for driver jarfiles are included
in that string? thanks. also tell me can not i use the jdriver forsql server
2000?.The startup script will echo what it's doing, including printing out
the classpath
it will use. Yes you can use the jDriver for MS SQL2000. It is sufficient
for
basic JDBC, but the MS drivfer is preferable in some ways.
Joe
Joseph Weinstein <[email protected]_this> wrote:
khabbab wrote:
i am using bea weblogic server 6.1, i cant create connection
pool
while
using MS
SQL Server 2000. i have installed JDBC Driver SAP1 from microsoft
website.
when
i give the following class name for JDBC driver and the connectionurl and click
apply while selecting the available server, a number of exception
appears
in default
server (that is the connection pool cannot be created..... cannot
load
the driver
class).The server startup script creates a string that will become the
classpath
for the server.
This string is part of the java call to start the server with a-classpath
argument. You need to
make sure the MS driver jars are part of that classpath string.
Joe
URL= jdbc:Microsoft:sqlserver://127.0.0.1:1433;DatabaseName=MyDB
Driver= com.microsoft.jdbc.sqlserver.SQLServerDriver
when i use the above setting in a JDBC simple applicationin Jbuilder
7.0 the application runs successfully and fetches the data deom
MS
SQL database
but in at Bea connection Pool is not created with these settings.
i
do give appropriate
username and password in properties field in connection pool.
Thankx
for any help! -
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
-
Using DB Adapter for MS SQL Server 2005 SP in OSB 11g.
Hi All,
I have a requirement to create a DB Adapter for MS SQL Server Stored Procedure in JDeveloper and export the Adapter file to OSB 11g. I have Created the Adapter and imported it into OSB 11g successfully. Created the Datasource and Connection pool also in console.
The problem is while trying to execute the created business Service, I am getting the error as below,
<Oct 26, 2012 12:20:25 PM IST> <Error> <JCATransport> <BEA-381967> <Invoke JCA outbound service failed with application error, exception: com.bea.wli.sb.transports.jca.JCATransportException: oracle.tip.adapter.sa.api.JCABindingException: oracle.tip.adapter.sa.impl.fw.ext.org.collaxa.thirdparty.apache.wsif.WSIFException: servicebus:/WSDL/Test/CheckAppID/WL_Driver/CheckAppId_WL_Driver [ CheckAppId_WL_Driver_ptt::CheckAppId_WL_Driver(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'CheckAppId_WL_Driver' failed due to: Unimplemented string conversion.
Conversion of JDBC type to String is not supported.
An attempt was made to convert a Java object to String using an unsupported JDBC type: .
; nested exception is:
BINDING.JCA-11804
Unimplemented string conversion.
My XSD is ,
<element name="InputParameters">
<complexType>
<sequence>
<element name="application_id" type="int" db:index="1" db:type="INT" minOccurs="0" nillable="true"/>
</sequence>
</complexType>
</element>
<element name="OutputParameters">
<complexType>
<sequence>
<element name="RowSet0" type="db:RowSet0_RowSet" db:type="RowSet0" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
<element name="RowSet1" type="db:RowSet1_RowSet" db:type="RowSet1" minOccurs="0" maxOccurs="unbounded" nillable="true"/>
</sequence>
</complexType>
</element>
<complexType name="RowSet1_RowSet">
<sequence>
<element name="RowSet1_Row" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="cde" type="int" db:type="INT" minOccurs="0" nillable="true"/>
<element name="msg" db:type="NVARCHAR" minOccurs="0" nillable="true">
<simpleType>
<restriction base="string">
<maxLength value="255"/>
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
<complexType name="RowSet0_RowSet">
<sequence>
<element name="RowSet0_Row" minOccurs="0" maxOccurs="unbounded">
<complexType>
<sequence>
<element name="aaa" type="boolean" db:type="BIT" minOccurs="0" nillable="true"/>
<element name="bbb" db:type="NVARCHAR" minOccurs="0" nillable="true">
<simpleType>
<restriction base="string">
<maxLength value="10"/>
</restriction>
</simpleType>
</element>
</sequence>
</complexType>
</element>
</sequence>
</complexType>
I don't know why there is a datatype conversion error.
Help me in resolving this.
Regards,
Nataraj R.Hi,
I believe NVARCHAR is an unsupported type...
The following document lists the supported data types for SQL Server stored procedures and functions... NVARCHAR is not in the list... :-(
http://docs.oracle.com/cd/E23943_01/integration.1111/e10231/adptr_db.htm#CHDEBEEE
Hope this helps...
Cheers,
Vlad -
Oracle 8i Gateway Service problem for MS SQL Server 7.0
I am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
AT the MS-DOS prompt, enter:
SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
Would some one provide solution for this problem please.
Thanks and regards,
GhulamI am installing Oracle Gateway services of oracle 8.1.7 with MS SQL Server 7.0 and want to create gateway service to access SQL Server. At some point Oracle document says :
AT the MS-DOS prompt, enter:
SET GTW_EXE = TGMSQL80.EXETo create a new gateway service name, enter:
GTWSRV80 sid -CREATEI have complete Oracle 8.1.7 Release 3 pack but could not find the GTWSRV80 executable, I also do not have TGMSQL80.EXE. From where I can have these executables.
Would some one provide solution for this problem please.
Thanks and regards,
Ghulam -
Cannot establish connection - JDBC driver for MS SQL server 2000
Hi,
We are facing problems in connecting to SQL server 2000.
We have installed the latest version of the driver from followin link and following
https://websmp108.sap-ag.de/msplatforms > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
We have given the following entries in our communication channel:
JDBC Driver : com.microsoft.sqlserver.jdbc.SQLServerDriver
Connection: jdbc:sqlserver://<SQLserver IP>:1433;databaseName=production_info
Please let us know the procedure to find if the JDBC driver for SQL 2000 is installed from our SAP XI.
ERROR DETAILS:
Error during database connection to the database URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info' using the JDBC driver 'com.microsoft.sqlserver.jdbc.SQLServerDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Cannot establish connection to URL 'jdbc:sqlserver://<SQLserverIP>:1433;databaseName=production_info': SAPClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver'
Please help.
Regards,
RehanHi Chris,
We have used the same because we have downloaded the driver from following location
https://websmp108.sap-ag.de/msplatforms ; > SQL Server > JDBC Driver for MS SQL Server (Version 3.70.10)
I have tried with both "com.microsoft.jdbc.sqlserver.SQLServerDriver"; and "com.microsoft.sqlserver.jdbc.SQLServerDriver";, but still I am facing the same error.
Service market place has given the driver as "JDBC Driver for MS SQL Server (Version 3.70.10)", is there a way to find out if it is for 2000 or 2005?
Thanks for your reply.
Regards,
Rehan
Maybe you are looking for
-
V20z:upgraded bios for dual-core support, lsi SCSI no longer works.
I upgraded the firmware of my v20z to latest available(2.4.0.14) to gain support for some AMD 275 processors. Prior to upgrade system was running w2k3 server and XP fine. After upgrading the bios/processors the boot process stops when initializing th
-
Auto update of TODAY()
Date OT Minutes Amount =IF(C2>0, TODAY(), "") =IF(B2>0, B2/60*20*1.5, "") =IF(C3>0, TODAY(), "") =IF(B3>0, B3/60*20*1.5, "") =IF(C4>0, TODAY(), "") =IF(B4>0, B4/60*20*1.5, "") =IF(C5>0, TODAY(), "") =IF(B5>0, B5/60*20*1.5, "") I have this table where
-
Anyone know if Keynote has a maximum slide size? I'm trying to create a Keynote presentation with a slide size of 4272X1080 and it won't seem to let me put that size in the custom slide settings. I've tried different sizes, but anything above 4000 gi
-
WRT54G v6 1.01.00 QoS Firmware Bug
I've noticed the QoS settings page has a bug in it. When attempting to enable QoS with Auto Bandwidth, you will not be able to save. You're instead given an error that the bandwidth must be between 64-1000000000. To get around this, set it to manual
-
What are the smallest eports settings for printing up to 8x12? Does resizing to 2400px on the Long edge at 200ppi make sense? I would like the smallest printable file possible. I am emailing thousands of Santa photos to hundreds of people and sending