Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Unable to create dataset for report from stored procedure 1

Status
Not open for further replies.

alexjones

Programmer
Jul 27, 2001
132
US
At the risk of having anyone who sees this run screaming from the forum - the stored procedure extracts data from a FoxPro linked server. Initial attempts at retrieving data yielded the dreaded message:

Server: Msg 7391, Level 16, State 1, Line 1
The operation could not be performed because the OLE DB provider 'MSDASQL' was unable to begin a distributed transaction.
[OLE/DB provider returned message: [Microsoft][ODBC Visual FoxPro Driver]Driver not capable]
OLE DB error trace [OLE/DB Provider 'MSDASQL' ITransactionJoin::JoinTransaction returned 0x8004d00a].

After adding set options:
SET QUOTED_IDENTIFIER ON
SET ANSI_NULLS ON
SET ANSI_WARNINGS ON
inside and outside the stored procedure and
SET XACT_ABORT ON
inside the stored procedure, I was able to execute the stored procedure correctly from Query Analyzer.

When I tried to use the stored procedure to populate the dataset for a report I was creating in Reporting Services (2005, SP2), once again I got

The operation could not be performed because the OLE DB provider 'MSDASQL' was unable to begin a distributed transaction. (.Net SqlClient Data Provider)

Can anyone tell me what I'm missing here? Or point me in the direction of something or someone who can? [banghead]

Any hints would be greatly appreciated.




 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top