Stored procedures being called as Prepared Statements??



We are switching from DataDirect to Microsoft's JDBC driver and the
application code has not changed. the JDBC driver is making a prepared
statement call to the SQL Server and unpreparing the statement after
procedure execution. The target is a SQL Server 2005 SP1 database on
Windows 2003 Enterprise. the app server is bea web logic 8.1 on a linux
box. we have a connection pool of 40 threads.

Is this prepare and unprepare normal and expected behavior? Are we not
setting any configurable items correctly? (this happens on the same
SPID)

We see a RPC starting and RPC Complete events in the trace, but no SP
start and SP Complete events in the trace.


Any help on this is appreciated.

Thanks.
this info is from the SQL trace

declare @p1 int
set @p1=0
declare @p4 int
set @p4=NULL
exec sp_prepexec @p1 output,N'@P0 int OUTPUT,@P1 varchar(8000),@P2
varchar(8000)',N'EXEC @P0 = sp_get_list @P1,@P2
',@p4
output,'SC','I'
select @p1, @p4

EXEC @P0 = sp_get_list @P1,@P2

exec sp_unprepare 8689

.



Relevant Pages

  • Re: Missing Join Predicate and Cross joins
    ... It is one of the Errors and Warnings events. ... It is also one thing tracked in the SQL Server default trace. ... TripID INT NOT NULL PRIMARY KEY ...
    (microsoft.public.sqlserver.programming)
  • Re: Stored procedures being called as Prepared Statements??
    ... the JDBC driver is making a prepared ... statement call to the SQL Server and unpreparing the statement after ... The target is a SQL Server 2005 SP1 database on ... declare @p1 int ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: One Web Service updates SQL, another cant?
    ... section of the Trace Properties dialog. ... And then I start getting the database closed errors on subsequent calls. ... > The error suggests that somehow the connection to SQL Server is being ... Could we have a look at your connection string? ...
    (microsoft.public.sqlserver.security)
  • The DBMS returned an unspecified error.
    ... We are using Microsoft's JDBC driver for Java database access to SQL Server ... intense process (inserting fairly large batches of information in a ... Insufficient memory available. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: Newlines not allowed in Call Escape by SQL Server 2005 JDBC driver
    ... The SQL Server 2000 JDBC driver does not ... Test JDBC Driver Stored Procedure Escape Syntax. ...
    (microsoft.public.sqlserver.jdbcdriver)

Loading