all groups > sql server reporting services > may 2005 >
You're in the

sql server reporting services

group:

DataSet has no fields


DataSet has no fields Jon A
5/27/2005 4:48:02 PM
sql server reporting services:
Please Help. I am calling a stored procedure which creates a SQL statement and
then runs
exec (@SQL + @Where + @Order)
Is there anyway to manual create fields. The Stored procedures returns the
same column names and number of columns?

--
Thanks,
RE: DataSet has no fields Mary Bray [SQL Server MVP]
5/29/2005 2:35:06 PM
Why don't you set the proc to just do a select of the fields you want until
the report is built, then change the proc back to the exec(string) command.
That way you'll have access to the fields in the builder.

[quoted text, click to view]
RE: DataSet has no fields Tim McOwan
5/31/2005 3:01:01 AM
Alternatively, you can go into the properties of the dataset that you want
fields for (by clicking the elipsis next to the name of the dataset on the
Data tab in report design) and go to the "Fields" tab. Here you can define
your fields manually and this will enable you to use them in your report
design. Be careful to name your fields exactly as they are returned from the
database otherwise RS will run into problems.

Also, another thing to try is to click on the "Refresh Fields" button on the
Data tab in report design. This executes the query and "figures out" what
fields are returned where it may not be immediately obvious from your query
design (especially where using Dynamic SQL is concerned).

Cheers
--
Tim McOwan


[quoted text, click to view]
AddThis Social Bookmark Button