SQL SERVER 2000 JDBC DRIVER - jdbc

I am trying to find the SQL SERVER 2000 JDBC Driver to use in extracting data from SQL SERVER and also carrying out several operation implemented in Java/JSF. Any idea where I could get my hands on the driver? It is no surprise that Microsoft.com /MSDN stopped supporting and hence supplying the necessary driver. Please help and it is greatly appreciated
P.S. Sorry if this is the wrong place to post this :)
EDIT: Solution Working:
So JTDS does it based on link below. The strings I changed to make it work for SQL SERVER 2000 are:
Class.forName("net.sourceforge.jtds.jdbc.Driver");
and
connServer.dbConnect("jdbc:jtds:sqlserver://host;", "username",
"password");

Have you tried
http://www.microsoft.com/download/en/details.aspx?id=1511
Or
http://sourceforge.net/projects/jtds/files/

Related

JDBC Driver & JDBC Connection string for Exadata

I have developed a code which connects to Oracle DB using the JDBC connection string oracle.jdbc.OracleDriver & respective jar for the same.
However my customer moved to a different DB called 'Exadata' recently.
My question is since they are from same vendor 'Oracle' is there any change in the JDBC driver & JDBC connection string to Exadata DB.
Google didn't help much & instead confused me.
Any leads would be appreciated with a URL to the source as well if possible. :)
Thanks!
Exadata is a "regular" Oracle database running on specialized hardware.
There is nothing you need to change in your application.
If they redefine the database service name in tnsnames.ora, they could reuse the code without changing the URL/connect-string.

How to replicate existing OracleRDB ODBC connection in Oracle's SQL Developer application?

I am new to Oracle database in general, but I'm attempting to get Oracle's SQL Developer running on a workstation that has pre-configured System DSNs created for an OracleRDB database. I've confirmed the ODBC connections are working because I can use MS Access to connect and link to the tables. The "test" options within ODBC also succeed. Now I am trying to get a similar connection created using SQL Developer so I can see the column types and write queries in a more useful editor.
Here's what I have available when examining the ODBC connection properties:
Now I'm trying to create a duplicate connection in SQL Developer, but I'm at a loss for why things don't work. I first tried using the default SQL Developer installation, but couldn't get things working. Then I discovered there's an OracleRDB extension available, so I installed that, but I keep getting this error when attempting to use similar values:
As I stated, these ODBC connections were pre-configured on the workstation I'm using, so I don't know anything more than what is provided by the Oracle ODBC driver window.
Is there something obvious I'm not seeing or doing to replicate this connection in SQL Developer? Or perhaps something else I can do to debug this to learn more?
UPDATE
On the advice of one answer I'm trying to make the connection with JDBC, but having a hard time understanding what I'm doing wrong. Here's another screenshot with the connection parameters I have available, but with the server and database names changed:
With these values (the port came from my tnsnames.ora file), if I try to make a JDBC connection I keep getting the following error from SQL Developer:
One final attempt I did was to use the proper values in the Oracle RDB tab, and when I use them and click 'test' the Testing Connection dialog just spins and never seems to return:
So I apologize for the long post here, but I'm struggling because there's just something I am really not understanding about how this all works. I appreciate everyone who took the time to read this question.
Oracle SQL Developer is a Java Application. You'll need to get the JDBC Driver for RDB.
Once you have that, in the SQL Developer preferences, find the Third Party JDBC section, and then use that to add an entry and point to the JAR for what you just installed.
Step by step instructions here.
Working connection string for RDB Thin Driver:
RDB_DB_CONN_STR = "jdbc:rdbThin://node.myplace.com:1707/";
where node.myplace.com is the name of the OpenVMS node hosting the RDB Thin Driver, 1707 is the port number assigned to the RDB Thin Driver.

Setting connection info using XQJ with Oracle 11g

I am trying to submit XQuery queries to an Oracle 11g database through their XQJ API.
When I instantiate an oracle.xquery.xqj.OXQDataSource as explained in http://www.oracle.com/technetwork/articles/oem/xquery-jdbc-325944.html, I can submit queries fine except that I haven't found how I can set up the server connection (server name, port, username, password, ...) info:
This datasource claims that it doesn't support setting any property.
It doesn't implement the data source constructor which takes a JDBC connection.
I don't see any non standard method to set such info.
When I try to access some random collection like collection("oradb:/foo") I just get an empty result set even when no server is running, suggesting that the driver doesn't even try to connect.
What have I missed and how can I set the server connection info?
Thanks,
Eric
Thanks to Charles Foster I can answer to my own question: the XQJ implementation from Oracle is an old standalone version from January 2010 that is pretty useless and doesn't interact with Oracle databases.
Despite all the Oracle statements about XQJ, I haven't been able to find any client/server XQJ implementation (except one from DataDirect of course) and the way to submit XQuery queries to Oracle databases appears to be through JDBC, embedded in PL-SQL statements.
It is possible in 12.
XQJ to run queries in Java:
http://docs.oracle.com/database/121/ADXDK/adx_j_xqj.htm#ADXDK99930
XQJ to run queries against the database:
http://docs.oracle.com/database/121/ADXDK/adx_j_xqjxdb.htm#ADXDK136

JDBC OCI Query Notification Sample

I am looking for a sample program using the OCI JDBC driver (Implementation-Version: 11.2.0.1.0) trying the query notification feature provided by Oracle 11gr2. Since the oracle link shows a c/c++ example it would be great if someone has already tried out and can share a working sample using the oci jdbc driver.
Thank you.
What about the examples in the JDBC developer's guide:
http://download.oracle.com/docs/cd/B28359_01/java.111/b31224/dbmgmnt.htm#CHDEJECF
(Btw: I don't think OCI is required for this, with the 11.x drivers, this should work with the thin driver as well)

how do i generate SQL script at runtime in VB6.0

how do i Generate SQL Script at runtime from VB6.0 and DB as SQL Server, generate all tables,views,PK,FK.Stored Procedures,Triggers from existing database. thanks in advance.
The simplest way I found to do this sort of thing was to use the SQL Distributed Object Model that you get with SQL Server and it works great with VB6. The last time I tried it was with SQL Server 2000 but the theory should still be good.
Give this link a try as a good start and take it from there, this shows you how to get at the stored procedures http://support.microsoft.com/kb/315505
Once you have got this bit down the other bits you need should be simple enough.
I hope this helps.
Cheers

Resources