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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Failed to Open Rowset

Status
Not open for further replies.

INFORMAT

Programmer
Jan 3, 2001
121
BE
Hi,

I made a main report that contains one subreport. Both reports are based on a stored procedure.
I use Crystal Reports .NET

In the subreport (stored procedure), I add the name of the database as a parameter.
--> ex. sql query : select * DATABASE.dbo.person
When I run my main report I get an error:
<< Not supported.
Details: ADO Error Code: 0x80040e37
Source: Microsoft OLE DB Provider for SQL Server
Description : Invalid object name '.dbo.person'.
SQL State: 42502
Native Error: 208
>>

It looks like the subreport is already coming up before the main report did. In that case the subreport did not get on time the parameters from the main report, including the important parameter databaseName!
cfr error: ???.dbo.person.

Although, after this error it works fine in Crystal reports but when I call this report from my .NET program I get the error &quot;Failed to Open Rowset&quot;.

Can anyone help me?
with regards,
Informat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top