SQLServerException: The operation requires a single user connection.

Hi,

Currently I am porting my code to SQL Server 2005 from 2000. I am facing the below problems in one of the screens. Can someone point out what could be the cause. We are trying to fetch column metadata.

Also the same piece of code works fine for the 1st time. However, when another form is opened, we face this error.

We maintain our connections in pool and retrieve and return the same back to pool once done.

I am not able to find more info on "single user connection"

com.microsoft.sqlserver.jdbc.SQLServerException: The operation requires a single user connection.

com.microsoft.sqlserver.jdbc.SQLServerException: The operation requires a single user connection.

at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)

at com.microsoft.sqlserver.jdbc.DBComms.aquireExclusiveUse(Unknown Source)

at com.microsoft.sqlserver.jdbc.IOBuffer.sendCommand(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerStatement.sendExecute(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerStatement.doExecuteQuery(Unknown Source)

at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeQuery(Unknown Source)

[1220 byte] By [MysteriousMana] at [2007-11-27 8:34:02]
# 1
The exception makes it rather clear.The code (SQL, not java) that you are running requires some special conditions to run.And exactly where did you search? Because googling returns 39 links with those key terms.
jschella at 2007-7-12 20:30:12 > top of Java-index,Database Connectivity,Java Database Connectivity (JDBC)...