Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Code working with Type 1 Driver and Not with Type 4 Driver

4 views
Skip to first unread message

Shafaqut Hussain

unread,
Jun 20, 2003, 12:05:56 PM6/20/03
to
Hi,

I was using SQL with type 1 driver & following code was working fine.

..
Statement stmt = conn.createStatement() ;
stmt.addBatch("create table NodeTable ( ScenarioID varchar(255),
NodeID varchar(255) , ParentID varchar(255))") ;
stmt.addBatch("create index NodeTableNodeID on
NodeTable(NodeID,ScenarioID)");
stmt.addBatch("create table ScenarioInfo ( PatternId int, VersionNo
bigint , NodeID varchar(255))");
stmt.executeBatch() ;
...

When I switched to type 4 driver, exception

com.microsoft.jdbc.base.BaseBatchUpdateException: [Microsoft][SQLServer
2000 Dri
ver for JDBC]????????????????????????????????????
at
com.microsoft.jdbc.base.BaseStatement.executeBatchEmulation(BaseState
ment.java:709)
at
com.microsoft.jdbc.base.BaseStatement.executeBatch(BaseStatement.java
:659)

is thrown

suggestions pls...

Thanks.

Regards,

Shafaqut Hussain

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

payal...@gmail.com

unread,
Oct 24, 2013, 11:20:37 AM10/24/13
to
0 new messages