SQL Server - Specifying Database Name/Owner Name when using prepareCall statement
From: Ryan (rkennel_at_veng.com)
Date: 08/25/04
- Next message: Lee Fesperman: "Re: datasource without JNDI?"
- Previous message: kaeli: "datasource without JNDI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 25 Aug 2004 12:17:39 -0700
When calling a stored procedure in sql server passing just the Stored
Procedure name, my stored procedure name works correctly. Below is
the String I use when performing Connection.prepareCall(String)
{CALL sp_name (?,?,?)}
However when I want to specify the db name and the user name (name of
the user who owns the sp), I get an error that the driver could not
find the stored procedure. Any clues as to how this could be fixed?
In other words, how can I set the default database name and owner name
to query against?
{CALL dbName.username.sp_name (?,?,?)}
- Next message: Lee Fesperman: "Re: datasource without JNDI?"
- Previous message: kaeli: "datasource without JNDI?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|