aspose file tools
The moose likes JDBC and the fly likes SQL Server 2005 & Microsoft JDBC driver Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "SQL Server 2005 & Microsoft JDBC driver" Watch "SQL Server 2005 & Microsoft JDBC driver" New topic
Author

SQL Server 2005 & Microsoft JDBC driver

Ram Bu
Greenhorn

Joined: Jul 15, 2005
Posts: 13
Hello,

I just wanted to share this fix with rest of you folks. I spent almost a day trying to fix the problem.

Those who are trying to retrieve data from SQL Server 2005 using Microsoft's JDBC driver might get the following error message.

[Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x38 is unknown.

All you need to do is change the connection string.

Current : jdbc:microsoft:sqlserver://<ServerName>:<PortNumber>;databaseName=<DatabaseName>;SelectMethod=Cursor

New: jdbc:microsoft:sqlserver://<ServerName>:<PortNumber>;databaseName=<DatabaseName>;SelectMethod=Direct


By changing select method from Cursor to Direct you would be able to retrieve data.

HTH
[ March 02, 2007: Message edited by: Ram Bu ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35436
    
    9
Thanks for sharing that. What was the SQL statement you were trying to execute?


Android appsImageJ pluginsJava web charts
Ram Bu
Greenhorn

Joined: Jul 15, 2005
Posts: 13
Any simple SELECT statements would throw that error message.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: SQL Server 2005 & Microsoft JDBC driver
 
Similar Threads
no active Connection...jdbc newbie
Hi...jdbc..no active Connections issue...
SQL Server 2005 problems with driver
SQL Server 2000 JDBC Driver Error
Why cant connect to another computer in lan?