Re: ODBC in Stored Procedure
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Tue, 17 Jan 2006 22:06:43 +0000 (UTC)
Pumkin (PopClaudia@xxxxxxxxx) writes:
> I'm trying to get the column names from a table to which I'm connected
> through OBDC. I don't want to use linked server. I get my data with
> Openrowset.
> I found the SQLDescribeCol and SQLColumns ODBC functions.
> Can anybody tell me how to use those functions in a SQL Server stored
> procedure?
You can't. Well, you could write an extended stored procedure or an
OLE object that you could call from a stored procedure, and that would
use these functions.
However, it would be more straight forward to query the system catalog
on the remote server directly.
What exactly are you trying to achieve?
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- ODBC in Stored Procedure
- From: Pumkin
- ODBC in Stored Procedure
- Prev by Date: Re: Truncated Decimals
- Next by Date: Re: To Create Unique table names and access them in code...
- Previous by thread: ODBC in Stored Procedure
- Next by thread: To Create Unique table names and access them in code...
- Index(es):
Relevant Pages
|