all groups > sql server (alternate) > september 2004 >
You're in the

sql server (alternate)

group:

Extended Stored Procedures DB-Lib Alternative



Extended Stored Procedures DB-Lib Alternative sandell NO[at]SPAM pacbell.net
9/17/2004 1:38:49 PM
sql server (alternate): Since DBlib is no longer the suggested method for connecting back to
sql server from an Extended Stored Procedure, has anyone built any
extended stored procedures that use other connection methods like
OLEDB? Has anyone seen links to any sample extended stored procedures
that use something other than db-lib? In particular I am interested
in something that connects back to the database as the user who
invoked the extended stored procedure. I haven't had much luck
finding any.

Also, is there an alternative for the bcp api that is a little more
current and has support for newer datatypes like bigint? We currently
use the bcp api from an extended stored procdure written in C++, but
now need to add bigint support which the bcp api doesn't have.

Re: Extended Stored Procedures DB-Lib Alternative aksaharan NO[at]SPAM gmail.com
9/23/2004 9:45:09 AM
[quoted text, click to view]

ODBC Connection works fine for the loopback in ESP's. Sample
Re: Extended Stored Procedures DB-Lib Alternative Gert E.R. Drapers
9/23/2004 12:34:59 PM
You can use ODBC or OLEDB, I prefer ODBC because it is lean and mean and I
do not like COM. Both support the full set of data types including BIGINT.

ODBC contains an updated version of the BCP API since SQL Server 7.0 which
also supports all new data types or alternatively you can use the
IRowsetFastload interface if you want to use OLE DB.

There ships an ODBC sample with SQL Server, see "C:\Program Files\Microsoft
SQL Server\80\Tools\DevTools\Samples\ods\xp_odbc", there is no OLE-DB
sample.

GertD@SQLDev.Net

Please reply only to the newsgroups.
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use.
Copyright © SQLDev.Net 1991-2004 All rights reserved.

[quoted text, click to view]

Re: Extended Stored Procedures DB-Lib Alternative Bruce Sandell
9/24/2004 5:10:24 PM
Thanks very much for the advice. I'll take a look into bcp for odbc.



*** Sent via Developersdex http://www.developersdex.com ***
AddThis Social Bookmark Button