all groups > sql server connect > march 2006 >
You're in the

sql server connect

group:

New SQL Server 2005 JDBC 1.0 & Visual J++


New SQL Server 2005 JDBC 1.0 & Visual J++ StevenBr
3/31/2006 5:17:02 PM
sql server connect:
We have a legacy Java application that we maintain in Visual J++; we are
moving to SQL Server 2005 and would like to switch it from an old WebLogic
JDBC driver to the new Microsoft SQL Server 2005 JDBC Driver.

However, we're noticing strange behavior with regard to instantiating the
"com.microsoft.sqlserver.jdbc.SQLServerDriver" class (no class def found
errors even though the sqljdbc.jar file is specified on the correct path in
the Classpath environment variable, and using FileMon we can see the app
finding the file).

I assume this means that we're running under the old, and unsupported,
Microsoft Java VM. Is it possible this VM does not support the new JDBC
driver?

--
Steven Bras
RE: New SQL Server 2005 JDBC 1.0 & Visual J++ stcheng NO[at]SPAM online.microsoft.com
4/3/2006 12:00:00 AM
Hi Steven,

Thank you for posting.

Regarding on the SQL Server 2005 JDBC driver, it is built against the SUN
J2se sdk 1.4 while the Microsoft's VJ++ jvm has already stoped updating, so
it dosn't support new built java components. I suggest you tried testing
the JDBC driver through standard SUN J2SE SDK to see whether it works. For
VJ++ we may consider using the OLEDB COM interface to access the SQL Server.

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)




RE: New SQL Server 2005 JDBC 1.0 & Visual J++ StevenBr
4/3/2006 7:36:01 AM
Thanks for your response; can you point me to samples of how to use ole db in
java?
--
Steven Bras
Tessitura Network, Inc.


[quoted text, click to view]
RE: New SQL Server 2005 JDBC 1.0 & Visual J++ stcheng NO[at]SPAM online.microsoft.com
4/4/2006 12:00:00 AM
Thanks for your response Steven,

I'm not quite sure about a complete example on connecting database through
OLEDB provider in VJ++, I think it'll be better to post in some VJ++ or
data accessing specific newsgroup. Also, have you any plan on migrating the
program to pure .net framework so that we have more choice on data
accessing to SQL Server?

Regards,

Steven Cheng
Microsoft Online Community Support


==================================================

When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.

==================================================


This posting is provided "AS IS" with no warranties, and confers no rights.



Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
AddThis Social Bookmark Button