FetchedTypeView of Stored Proc returns invalid object name

Posts   
 
    
Jed
User
Posts: 38
Joined: 08-Oct-2010
# Posted on: 24-May-2011 16:50:40   

Hello

We are using a adapter.fetchedtypedview to return the results of a stored proc.

When executed it returns

SD.LLBLGen.Pro.ORMSupportClasses.ORMQueryExecutionException : An exception was caught during the execution of a retrieval query: Invalid object name 'Resultset1'.. Check InnerException, QueryExecuted and Parameters of this exception to examine the cause of this exception. ----> System.Data.SqlClient.SqlException : Invalid object name 'Resultset1'.

the stored proc is

CREATE PROCEDURE [dbo].[spMyAccountSelect](@loginname VARCHAR(10)) AS BEGIN SELECT * FROM Account where LoginName like '%'+@loginname+'%'; END

GO

using llblgen 3

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 24-May-2011 17:00:10   

runtime build nr, designer build date please. simple_smile Make sure you use the latest designer so you have the latest templates.

Frans Bouma | Lead developer LLBLGen Pro
Jed
User
Posts: 38
Joined: 08-Oct-2010
# Posted on: 25-May-2011 12:35:08   

I have downloaded the latest version on your sight

ADO.NET:Execute Reader "SELECT [AxxessRad].[dbo].[Resultset1].[FileAs], [AxxessRad].[dbo].[Resultset1].[FirstName] FROM [AxxessRad].[dbo].[Resultset1] " The command text "SELECT [AxxessRad].[dbo].[Resultset1].[FileAs], [AxxessRad].[dbo].[Resultset1].[FirstName] FROM [AxxessRad].[dbo].[Resultset1] "

This is the sqlstatement it produces

The stored proc is named GetAccount.

fileversion: 3.1.11.518

Walaa avatar
Walaa
Support Team
Posts: 14995
Joined: 21-Aug-2005
# Posted on: 25-May-2011 12:46:33   

Could you please attach a repro llbgen project file?

Jed
User
Posts: 38
Joined: 08-Oct-2010
# Posted on: 25-May-2011 14:32:56   

here it is

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39908
Joined: 17-Aug-2003
# Posted on: 25-May-2011 16:37:23   

Jed wrote:

here it is

Removed. This isn't sufficient, sorry. The problem is about a stored proc, and we want to be able to reproduce it, so we need a stored proc, a simple project which maps the proc and a piece of code which calls the proc as you do in your code so when we generate code from the project we can run your code snippet and reproduce the error.

Frans Bouma | Lead developer LLBLGen Pro
Jed
User
Posts: 38
Joined: 08-Oct-2010
# Posted on: 30-May-2011 10:09:27   

Thanks for the response.

I have just used a normal datatable and its working fine.