Hello
I have a stored procedure that is accessing an external database using the
OpenRowset feature provided in SQL Server.
When I execute the SP from Query Analyzer I get results, but I see that an
OLEDB Error occured when tracing through SQL Profiler.
adjustnum, bankingref, receiptref, `date`, pay, erni, pay + erni AS cost,
netcharge, netcharge - (pay + erni) AS profit, vat, total, flag, 0 As
InvoiceNet, 0 As InvoiceDiscount FROM t_mtran WHERE (clientref > '')
AND((clientref = 'AV2001') OR (clientref = 'AV2002'))
EXEC ('INSERT INTO #temp (clientref, type, internalno, invoicenum, Returns results and the following error is trapped through Profiler. Non-interface error: OLE DB provider MSDASQL returned an incorrect value Although QA is okay with this, (shows me some records), in my ASP page I end I have done some research and it is alleged, (see end of post), that the Is there anyway I can set this property when calling the OPENROWSET MTIA David M ---------------------------------------------------------------------------
Hello Andy, Based on the Error, "OLE DB error trace [Non-interface error: OLE DB provider MSDASQL returned its a problem of incompatibility of SQL Server with the ODBC Drivers Thanks, Vikrant Dalwale Microsoft SQL Server Support Professional ---------------------------------------------------------------------------
creditnum, adjustnum, bankingref, receiptref, date, pay, erni, cost,
netcharge, profit, vat, total, flag, InvoiceNet, InvoiceDiscount)
SELECT * FROM OPENROWSET(''MSDASQL'', ''DRIVER={Microsoft FoxPro VFP Driver
(*.dbf)};UID=;Deleted=No;Null=No;Collate=Machine;BackgroundFetch=Yes;Exclus
for DBPROP_CONCATNULLBEHAVIOR which should be either DBPROPVAL_CB_NULL or
DBPROPVAL_CB_NON_NULL
up with a closed recordset. I am not sure why ADO cannot see the records,
but my main concern is the error and how to prevent it.
underlying ODBC driver used does not support the property
DBPROP_CONCATNULLBEHAVIOR and one should contact the vendor of the driver.
Well as you can see from the above code, I am using the MICROSOFT FoxPro
driver...!?!?!
function? I don't know if I could get round this by using a linked server,
but in my experience so far I have found OPENROWSET considerably faster than
using Linked Servers.
----
Subject: Re: MYSQL Linked Server
Newsgroups: microsoft.public.sqlserver.server
Date: 2002-08-19 20:00:16 PST
an incorrect value for DBPROP_CONCATNULLBEHAVIOR which should be either
DBPROPVAL_CB_NULL or DBPROPVAL_CB_NON_NULL].
OLE DB error trace [Non-interface error]. "
provided for the MySQL.
I would recommed to contact the Provider for the MySQL ODBC Driver for
further information.
----