Type 3/4 driver required for SQL Server (Weblogic 6.1)
Hi All,
I would like to know the site where I can download the driver for SQL Server on Weblogic 6.1 Application server or if someone can send me the driver via email to my email id [email protected]
Thanks in advance,
Seetesh Hindlekar
Hi Sanjay,
Thanks a lot. I did download a driver for 1 month evaluating period called JSQLConnect but was not able to connect to my local SQL Server.
There is one driver which gets connected to the SQL Server but I am not able to connect to the SQL Server installed on my comp but it does connect to SQL servers available on the network.
Any reasons for this not connecting to the local server.
Seetesh
Similar Messages
-
Hello everyone.
I'm using SQL Server 2014, and writting on some C++ app to query and modify the database. I use the ODBC API.
I'm stuck on inserting an SQL_NUMERIC_STRUCT value into the database, if the corresponding database-column has a scale set.
For test-purposes: I have a Table named 'decTable' that has a column 'id' (integer) and a column 'dec' (decimal(5,3))
In the code I basically do:
1. Connect to the DB, get the handles, etc.
2. Use SQLBindParameter to bind a SQL_NUMERIC_STRUCT to a query with parameter markers. Note that I do include the information about precision and scale, something like: SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr,
sizeof(cbNum), &cbNum);
3. Prepare a Statement to insert values, something like: SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
4. Set some valid data on the SQL_NUMERIC_STRUCT
5. Call SQLExecute to execute. But now I get the error:
SQLSTATE: 22003; nativeErr: 0 Msg: [Microsoft][ODBC Driver 11 for SQL Server]Numeric value out of range
I dont get it what I am doing wrong. The same code works fine against IBM DB2 and MySql. I also have no problems reading a SQL_NUMERIC_STRUCT using SQLBindCol(..) and the various SQLSetDescField to define the scale and precision.
Is there a problem in the ODBC Driver of the SQL Server 2014?
For completeness, here is a working c++ example:
// InsertNumTest.cpp
// create database using:
create a table decTable with an id and a decimal(5,3) column:
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE[dbo].[decTable](
[id][int] NOT NULL,
[dec][decimal](5, 3) NULL,
CONSTRAINT[PK_decTable] PRIMARY KEY CLUSTERED
[id] ASC
)WITH(PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON[PRIMARY]
) ON[PRIMARY]
GO
// Then create an odbc DSN entry that can be used:
#define DSN L"exOdbc_SqlServer_2014"
#define USER L"exodbc"
#define PASS L"testexodbc"
// system
#include <iostream>
#include <tchar.h>
#include <windows.h>
// odbc-things
#include <sql.h>
#include <sqlext.h>
#include <sqlucode.h>
void printErrors(SQLSMALLINT handleType, SQLHANDLE h)
SQLSMALLINT recNr = 1;
SQLRETURN ret = SQL_SUCCESS;
SQLSMALLINT cb = 0;
SQLWCHAR sqlState[5 + 1];
SQLINTEGER nativeErr;
SQLWCHAR msg[SQL_MAX_MESSAGE_LENGTH + 1];
while (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
msg[0] = 0;
ret = SQLGetDiagRec(handleType, h, recNr, sqlState, &nativeErr, msg, SQL_MAX_MESSAGE_LENGTH + 1, &cb);
if (ret == SQL_SUCCESS || ret == SQL_SUCCESS_WITH_INFO)
std::wcout << L"SQLSTATE: " << sqlState << L"; nativeErr: " << nativeErr << L" Msg: " << msg << std::endl;
++recNr;
void printErrorsAndAbort(SQLSMALLINT handleType, SQLHANDLE h)
printErrors(handleType, h);
getchar();
abort();
int _tmain(int argc, _TCHAR* argv[])
SQLHENV henv = SQL_NULL_HENV;
SQLHDBC hdbc = SQL_NULL_HDBC;
SQLHSTMT hstmt = SQL_NULL_HSTMT;
SQLHDESC hdesc = SQL_NULL_HDESC;
SQLRETURN ret = 0;
// Connect to DB
ret = SQLAllocHandle(SQL_HANDLE_ENV, NULL, &henv);
ret = SQLSetEnvAttr(henv, SQL_ATTR_ODBC_VERSION, (SQLPOINTER)SQL_OV_ODBC3, SQL_IS_INTEGER);
ret = SQLAllocHandle(SQL_HANDLE_DBC, henv, &hdbc);
ret = SQLConnect(hdbc, (SQLWCHAR*)DSN, SQL_NTS, USER, SQL_NTS, PASS, SQL_NTS);
if (!SQL_SUCCEEDED(ret))
printErrors(SQL_HANDLE_DBC, hdbc);
getchar();
return -1;
ret = SQLAllocHandle(SQL_HANDLE_STMT, hdbc, &hstmt);
// Bind id as parameter
SQLINTEGER id = 0;
SQLINTEGER cbId = 0;
ret = SQLBindParameter(hstmt, 1, SQL_PARAM_INPUT, SQL_C_SLONG, SQL_INTEGER, 0, 0, &id, sizeof(id), &cbId);
if (!SQL_SUCCEEDED(ret))
printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
// Bind numStr as Insert-parameter
SQL_NUMERIC_STRUCT numStr;
ZeroMemory(&numStr, sizeof(numStr));
SQLINTEGER cbNum = 0;
ret = SQLBindParameter(hstmt, 2, SQL_PARAM_INPUT, SQL_C_NUMERIC, SQL_NUMERIC, 5, 3, &numStr, sizeof(cbNum), &cbNum);
if (!SQL_SUCCEEDED(ret))
printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
// Prepare statement
ret = SQLPrepare(hstmt, L"INSERT INTO decTable (id, dec) values(?, ?)", SQL_NTS);
if (!SQL_SUCCEEDED(ret))
printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
// Set some data and execute
id = 1;
SQLINTEGER iVal = 12345;
memcpy(numStr.val, &iVal, sizeof(iVal));
numStr.precision = 5;
numStr.scale = 3;
numStr.sign = 1;
ret = SQLExecute(hstmt);
if (!SQL_SUCCEEDED(ret))
printErrorsAndAbort(SQL_HANDLE_STMT, hstmt);
getchar();
return 0;This post might help:
http://msdn.developer-works.com/article/12639498/SQL_C_NUMERIC+data+incorrect+after+insert
If this is no solution try increasing the decimale number on the SQL server table, if you stille have the same problem after that change the column to a nvarchar and see the actual value that is put through the ODBC connector for SQL. -
Network requirements for SQL Server Replication
Hi,
Can any one tell me what is network requirements for SQL Server replication.
I have successfully configured the replication on LAN with active directory but I am unable to configure it on WAN.
Can anyone tell me how WAN can be configured for sql server replication.
Any help in this regard will be highly appreciated.
Regards,
Muhammad ImranHi Muhammad,
In addition to Prashanth’s post, please also check the following things to optimize SQL Server replication with a WAN link.
• Initialize the Subscriber from a backup.
Publishing the execution of stored procedures as opposed to replicating each operation performed by the stored procedure.
Leveraging Subscription Streams.
For more information, please review the following blog:
http://sqlblog.com/blogs/argenis_fernandez/archive/2011/05/31/transactional-replication-and-wan-links.aspx
Thanks,
Lydia Zhang
Lydia Zhang
TechNet Community Support -
SSDT/VisualStudio requirements for SQL Server 2014
Hi
What is the minimum version of SSDT (VS Shell) is required for the creation of BI solutions in SQL Server 2014?
I have VS2010 (was installed from SQL Server 2012 installation media) but this will not work with SQL Server 2014.Hello Roger,
the current Releases of SSDT are not longer available for Visual Studio 2010, only for VS 2012/2013.
When you install a current SSDT Version, also the related VS as integrated Shell be installed, you can get SSDT-BI/Tooling here: http://msdn.microsoft.com/en-us/data/hh297027
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Hardware Requirement for SQL Server 2012 Cluster
Hi All,
We are going to share System Requirement document with the customer and one of the technical staff from Customer has request us to provide Microsoft Disk space requirement at least for below 2 section and why?
Quorum & MSDTC (Both will be SAN and what will be their RAID type)
Please share your advice.
Regards, SachinHello,
The quorum disk needs only to have a few MB to hold the file used for arbitration. Normally if you're needing a disk vote, it can be extremely small (100MB or less is what most SANs can do, some can only do 1 GB or greater). The actual file size is a few
KBs.
MSDTC holds the DTC logs, so this will be sized to how much logging and usage of MSDTC is needed and used. If you're not using distributed transactions then it doesn't even need setup.
-Sean
The views, opinions, and posts do not reflect those of my company and are solely my own. No warranty, service, or results are expressed or implied. -
XA Driver setup for SQl Server
I have set up the XA data source confiuration as follows on JBoss but it didn't work because JBoss does not recognize the "sendStringAsUnicode" property.
Does anyone know how to set this property in JBoss?
Any help is appreciated...
<xa-datasource>
<jndi-name>PFPool</jndi-name>
<track-connection-by-tx>true</track-connection-by-tx>
<isSameRM-override-value>false</isSameRM-override-value>
<Encoding>unicode</Encoding>
<xa-datasource class>com.microsoft.jdbcx.sqlserver.SQLServerDataSource</xa-datasource-class>
<xa-datasource-property name="ServerName">syncobs05</xa-datasource-property>
<xa-datasource-property name="DatabaseName">PFDDD50</xa-datasource-property>
<xa-datasource-property name="SelectMethod">cursor</xa-datasource-property>
<xa-datasource-property name="sendStringAsUnicode">true</xa-datasource-property>
<user-name>myUser</user-name>
<password>MyPass</password>
<metadata>
<type-mapping>MS SQLSERVER2000</type-mapping>
</metadata>
</xa-datasource>I am using informix 9.30.
This is the configuration:
<JDBCConnectionPool DriverName="com.informix.jdbc.IfxDriver"
InitialCapacity="4" MaxCapacity="15" Name="ClinicaPool"
Password="{3DES}1BlSNpwI2yB2iNjeIcUEUg=="
Properties="USER=informix" SupportsLocalTransaction="true"
Targets="linop" TestConnectionsOnRelease="true"
TestConnectionsOnReserve="true" TestTableName="consclin" URL="jdbc:informix-sqli://linop:1526/inscli:INFORMIXSERVER=ol_linop"/>
<JDBCTxDataSource JNDIName="clinicaDS" Name="Clinica Tx Data Source"
PoolName="ClinicaPool" RowPrefetchEnabled="true" Targets="linop"/>
Thank you very much by your aid.
Lino. -
Is there any value for free storage requirements to SQL Server 2K8 R2 to run?
Grettings
we have a SQL Server 2K8 running on a Server that has less than 10GB of free space.
Do we have a problem with that? what is the storage requirements to SQL keep running normal?
Thank you in advanceHi LmmLopes,
If you are talking about 10GB free space on the primary drive I think you should be able to run your SQL server without any issues.
Please find the chart below for the Hard disk requirements.
Hard Disk Space Requirements (32-Bit and 64-Bit)
During installation of SQL Server 2008, Windows Installer creates temporary files on the system drive. Before you run Setup to install or upgrade SQL Server, verify that you have at least 2.0 GB of available disk space on the system drive for these files.
This requirement applies even if you install SQL Server components to a non-default drive.
Actual hard disk space requirements depend on your system configuration and the features that you decide to install. The following table provides disk space requirements for SQL Server 2008 components:
Feature
Disk space requirement
Database Engine and data files, Replication, and Full-Text Search
280 MB
Analysis Services and data files
90 MB
Reporting Services and Report Manager
120 MB
Integration Services
120 MB
Client Components
850 MB
SQL Server Books Online and SQL Server Compact Books Online
240 MB
But if you are talking about the 10 GB on the entire server. Then you need to consider the database size and its expected growth.
You can consider adding additional disk drive and use it to store the data files.
Hope this answers your question.
Regards
Sathish S N -
Specifying Partner Failover in odbc.ini for Linux ODBC driver for SQL Server
Hi,
We are trying to specify the partner failover when making connections via Linux ODBC driver for SQL Server. Do you know a way to specify partner failover in the DSN entry in odbc.ini?
We are using Linux ODBC driver for SQL Server and unixODBC DriverManager.
Our DSN is:
[MyDSN]
Driver=ODBC Driver 11 for SQL Server
Description=MyDSN
Server=MySERVER,<port>
I also tried to use the following connection string in Python (via pyodbc) bypassing the DSN and connecting using the server name.
cnxn = pyodbc.connect("Server=server1,<port>;UID=sa;PWD=<pwd>;Driver=ODBC Driver 11 for SQL Server;Failover_Partner=Server2,<port2>;Database=MyDB")
If the standby DB is on server1 connection fails. It doesn't try server2. If the DB is principal on server1 connection succeeds.
Thank you,
Liviu
LLLHello,
Did you use ODBC Driver for SQL Server to connect to database that uses database mirroring?
According to
the BOL,it does not list "Failover_Partner" as ODBC Driver for Linux connection string keywords.
But ODBC driver for Linux supports
AlwaysOn Availability Groups or Failover Cluster Instance by specify MultiSubnetFailover=True when connecting to a SQL Server 2012 availability group listener or SQL Server 2012 Failover Cluster Instance.
The following case is about similar issue and it seems that ODBC Driver on Linux does not recognize Failover_Partner in connection string. (Not test myself).You can refer to:
http://social.msdn.microsoft.com/Forums/sqlserver/en-US/6a8b5223-066d-4493-84a3-b5374a32e433/native-client-on-linux-does-not-recognize-failoverpartner-in-connection-string?forum=sqldataaccess
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Is there a free JDBC Driver for SQL Server 7 available? If so, where? I created a server program that listens to a port and inserts records based on information it receives. It uses sun's JDBC:ODBC Bridge but it crashes randomly (sometimes weeks, sometimes days, sometimes hours after starting program). Each time it crashes it generates a error log file like this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f821e1
Function name=RtlEnterCriticalSection
Library=C:\WINNT\System32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.driverConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at com.xxxxx.data.DataAccess.connect(DataAccess.java:20)
at com.xxxxx.xxx.server.Broadcaster.insertOrder(POSServer.java:71)
at com.xxxxx.xxx.server.ClientListener.run(POSServer.java:298)
Dynamic libraries:
0x00400000 - 0x00405000 C:\WINNT\system32\java.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0C000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DB0000 C:\WINNT\system32\RPCRT4.DLL
0x78000000 - 0x78046000 C:\WINNT\system32\MSVCRT.dll
0x6D420000 - 0x6D4F0000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\hotspot\jvm.dll
Local Time = Mon May 06 10:36:33 2002
Elapsed Time = 124
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode)
Or this:
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : EXCEPTION_ACCESS_VIOLATION occurred at PC=0x77f821e1
Function name=RtlEnterCriticalSection
Library=C:\WINNT\System32\ntdll.dll
Current Java thread:
at sun.jdbc.odbc.JdbcOdbc.freeConnect(Native Method)
at sun.jdbc.odbc.JdbcOdbc.SQLFreeConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.closeConnection(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.close(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.finalize(Unknown Source)
at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
at java.lang.ref.Finalizer.runFinalizer(Unknown Source)
at java.lang.ref.Finalizer.access$100(Unknown Source)
at java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)
Dynamic libraries:
0x00400000 - 0x00405000 C:\Program Files\JavaSoft\JRE\1.3.1_02\bin\javaw.exe
0x77F80000 - 0x77FFB000 C:\WINNT\System32\ntdll.dll
0x77DB0000 - 0x77E0C000 C:\WINNT\system32\ADVAPI32.dll
0x77E80000 - 0x77F35000 C:\WINNT\system32\KERNEL32.DLL
0x77D40000 - 0x77DB0000 C:\WINNT\system32\RPCRT4.DLL
Local Time = Mon May 06 10:13:59 2002
Elapsed Time = 137
# The exception above was detected in native code outside the VM
# Java VM: Java HotSpot(TM) Client VM (1.3.1_02-b02 mixed mode)
I think this error occurs because I'm using sun's JDBC:ODBC Bridge. I'm hoping that using a different driver will solve the problem.
Thanks,
DanI used Sun's jdbc odbc driver for a while, with no problems, with Sql Server 7. But anyways, if you want a free type 4 driver, you can get the freetds driver at
https://sourceforge.net/projects/jtds/ -
Driver class name value for SQL Server JDBC driver
if i am using SQL Server JDBC driver to connect to DB using STRUTS DBCP
what will be the value for the property="driverClassName"
& value for property="url"
eg., <data-source type="org.apache.commons.dbcp.BasicDataSource" >
<set-property property="driverClassName" value="org.gjt.mm.mysql.Driver" />
<set-property property="url" value="jdbc:mysql://10.1.0.8/omega4105" />
<set-property property="username" value="iris"/>
<set-property property="password" value="iris"/>
</data-source>For SQL Server 2000
com.microsoft.jdbc.sqlserver.SQLServerDriver
For SQL Server 2005
com.microsoft.sqlserver.jdbc.SQLServerDriver -
All I want to know is if Distributed Transaction Coordinator services of the application role are required by SQL Server 2012 for clustering and support of SharePoint 2013.
I have been planning and deploying my companies first Windows Server 2012/SQL Server 2012 Always On cluster and Always On Availability Groups Multi-Subnet cluster and instances for SharePoint 2013, and I will be brutally honest, the documentation on either
the MSDN and TechNet leave alot to be desired. Continually finding links in the documentation will take me from a Windows 2012 reference to a page talking about Windows Server 2008 or R2, The differences of which there are so many when it comes to configurations,
settings, roles, services when working with SQL Server 2012. I have been confused, frustrated, screaming mad, with all the misdirection in this documentation. The documentation takes me windows 2008 R2 which is different than 2012!
Tired and trying to pick myself up off the floor!
Greg
GmanIn general, DTC is not required for SQL 2012. But, since you are asking specifically about SharePoint, it would be better to ask in a SharePoint forum. They would be more likely to know those situations where FTC might be needed by SharePoint.
.:|:.:|:. tim -
Deploy JDBC driver for SQL server 2005 on PI 7.1
How to deploy JDBC driver for SQL server 2005 on PI 7.1
We are in SAP NetWeaver 7.1 Oracle 10G
Third party system is SQL server 2005
There are different JDBC versions are available to download for SQL server 2005.
I am not sure about the applicable version for the PI 7.1 SP level. Again JMS Adapter needs to be deploy along with this.
Please helpHi,
Hope this How to Guide help you.
How To Install and Configure External Drivers for the JDBC & JMS Adapters from
www.sdn.sap.com/irj/sdn/howtoguides
Regards,
Karthick.
Edited by: Karthick Srinivasan on Apr 13, 2009 4:07 PM -
Deploying JDBC driver for SQL Server 2005 on PI 7.1
How to Deploy JDBC driver for SQL Server 2005 on PI 7.1 on Windows 2003 server
We are in NW PI 7.1 and third party db is sql server 05.
Found How-to Guide SAP NetWeaver u201804 but unable to find for NW PI 7.1
Can any one help me on this? (looking for guide step by step procedure)
Regards
MaheshHi,
Check these:
Re: Installing JDBC Drivers for PI 7.1
how to deploy MS Sql Server 2005 and 2008 jdbc driver
Mention of a SAP Note in the first link or refer this note [831162|https://service.sap.com/sap/support/notes/831162]
Regards,
Abhishek. -
Microsoft Jdbc driver for SQL Server memory leak
I'm using Microsoft Jdbc driver and see there's some leak after running application for a while. I'm sure that it's from Jdbc driver because I sitch to Jtds and the issue went away. My question is is there anybody knows which web sites talk about memory leak issue in Microsoft Jdbc driver for SQL Server?
Appreciate your helpI'm using Microsoft Jdbc driver and see there's some leak after running application for a while. I'm sure that it's from Jdbc driver because I sitch to Jtds and the issue went away. My question is is there anybody knows which web sites talk about memory leak issue in Microsoft Jdbc driver for SQL Server?
Appreciate your help -
Thin driver for SQL server 2000
Hi,
Is there a thin driver for SQL server 2000?
If so where can i find it?
I searched the net but in vain.
thanx in advance
ParthaDid you try the search engine available at the java soft site
http://industry.java.sun.com/products/jdbc/drivers
I used this engine some time ago and found that the thin driver at http://www.inetsoftware.de was the best fit for our project.
hope this helps.
regards,
Abhishek.
Maybe you are looking for
-
Deleting a Scheduled Event in iCal ?
Okay, I scheduled a few things and, alas, life being what it is, I had to make some changes. However, I found I was unable to delete the initialed scheduled event--I finally resorted to just "cutting" it. Is this the only way to delete an event? <Edi
-
After my mail was moved to iCloud, my mail app emails received have 23 lines of "routing data between the address and the message how can Imget rid of this "data"?
-
I upgraded to CS6 on my editing machine from CS5. When I import an MTS file into CS6 and play it back on the timeline the playback drops frames and the sync between video and audio lags and drops out. I can do the exact same thing with the exact same
-
I mistakenly added Windows XP to an old Hp N3390 Laptop. My original disks are MIA. I need to know which Windows 98 SE version I should repurchase to Make this computer operate again. For its age, it is in good shape, but the hard drive is too sma
-
I installed skype but the icon does not show up. OS is actually 4.3.3. It says it is installed and I can find it under settings, but without the icon I cannot fire it up. I'm quite new to the phone so I assume it's me, but I have had not trouble with