BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

same server, different database

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers)
View previous topic :: View next topic  
Author Message
dbo.db
Guest





PostPosted: Mon Jul 31, 2006 11:19 pm    Post subject: same server, different database Reply with quote



I've established a connection with a particular database on a server (via a UDL file). Interacting with that DB works as it should.

I now want to call a stored procedure on a *different* database, but it's on the *same* server.

It works fine via Query Analyzer. The stored proc is simply qualified by the DB name and the DBO prefix (AnotherDB.dbo.storedProc1).

But it does not work via TADOStoredProc. It complains that my parameters aren't valid. Specifically, it complains about the first paramter in the list (@vParam1 does not exist).

Just to see what would happen, I passed zero parameters (the stored procedure requires them). In that scenario, I get an exception complaining the procedure expects a parameter, the very same parameter Builder said didn't exist when it was passed.

What's going on? Or is calling another database which is on the same server simply not supported? Am I forced to open up another connection?
Back to top
Guest






PostPosted: Mon Jul 31, 2006 11:38 pm    Post subject: Re: same server, different database Reply with quote



[Oops... didn't press enter. I'm new... and can't read
instructions apparently Razz I've reposted it so it's easier to
read]

I've established a connection with a particular database on a
server (via a UDL file). Interacting with that DB works as it
should.

I now want to call a stored procedure on a *different* database,
but it's on the *same* server.

It works fine via Query Analyzer. The stored proc is simply
qualified by the DB name and the DBO prefix
(AnotherDB.dbo.storedProc1).

But it does not work via TADOStoredProc. It complains that my
parameters aren't valid. Specifically, it complains about the
first paramter in the list (@vParam1 does not exist).

Just to see what would happen, I passed zero parameters (the
stored procedure requires them). In that scenario, I get an
exception complaining the procedure expects a parameter, the very
same parameter Builder said didn't exist when it was passed.

What's going on? Or is calling another database which is on the
same server simply not supported? Am I forced to open up another
connection?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> C++ Builder Databases (SQL Servers) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.