Drop Table

Support Forum for database administrators and web based access to important newsgroups related to databases
Register on Database Support Forum Edit your profileCalendarFind other Database Support forum membersFrequently Asked QuestionsSearch this forum -> 
For Database admins: Free Database-related Magazines Now Free shipping to Texas


Post New Thread










Thread
Author

Stored Procedure vs. Query Analyzer
I need to create a Stored Procedure that will run a query to fill a temporar
y
table.  I have run the query successfully from within Query Analyzer to prov
e
that it works, however when I try to use the query from within a Stored
Procedure, I get an error.

Essentially, the query runs OpenQuery against a LinkedServer.  The
LinkedServer is based on a DSN.  Using different drivers to create the DSN
doesn't seem to help as the errors are all pretty much the same.  References
in the error messages are something like "Driver not capable." or "Optional
feature not implemented.".  Is there something I missed in creating my Store
d
Procedure?  Cutting it down to just the Select query it looks like this:

CREATE PROCEDURE "RunF18T"

AS

select * from  OpenQuery(F18T,'sele
ct * from OBS')

/* SET NOCOUNT ON */
RETURN

Where F18T is the LinkedServer and OBS is a table in the database.

Query Analyzer - Runs fine.
Stored Procedure - NG.

Any pointers?

Thanks,
Steve


Report this thread to moderator Post Follow-up to this message
Old Post
Steve
10-28-05 04:23 PM


Re: Stored Procedure vs. Query Analyzer
whats the error you get in the SP?  is it invalid pointer?


Report this thread to moderator Post Follow-up to this message
Old Post
GlennThomas5
10-29-05 01:23 AM


Re: Stored Procedure vs. Query Analyzer
No, it's not invalid pointer.  When I use the Pervasive ODBC driver to creat
e
the DSN the error comes back with "Driver not capable".  When I use the
DataDirect driver to create the DSN the error says "Optional feature not
implemented".

Either one of these configurations will run successfuly from the Query
Analyzer, just not from a SP.

I think I'm going to be bald soon from tearing my hair out trying get to the
bottom of this.

Any ideas?

Steve


"GlennThomas5" wrote:

> whats the error you get in the SP?  is it invalid pointer?
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Steve
10-29-05 01:23 AM


Sponsored Links





Last Thread Next Thread
Post New Thread

MS SQL Server archive

Show a Printable Version Email This Page to Someone! Receive updates to this thread
Microsoft SQL Server
Access database support
PostgreSQL Replication
SQL Server ODBC
FoxPro Support
PostgreSQL pgAdmin
SQL Server Clustering
MySQL ODBC
Web Applications with dBASE
SQL Server CE
MySQL++
Sybase Database Support
MS SQL Full Text Search
PostgreSQL Administration
SQL Anywhere support
DB2 UDB Database
Paradox Database Support
Filemaker Database
Berkley DB
SQL 2000/2000i database
ASE Database
Forum Jump:
All times are GMT. The time now is 03:35 PM.

 
Mobile devices forum | Database support forum archive




Copyrights DropTable.com Database Support Forum 2004 - 2006