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

Passing Parameters to a Stored Procedure

Status
Not open for further replies.

rbh123456789

Technical User
Mar 3, 2010
80
0
0
CA
CR 11.5 and SQL Server 2005

I have a Stored Procedure located on our database.
I created a new report, and through the Database Expert, added a 'Command' as:

EXEC [DBO].[GetAvailabity]

@Start_Date = N'2012-09-06',
@End_Date = N'2012-09-07',
@Period = N'AM',
@Name = N'ALL'

The report will indeed bring back data to the report, which is not the issue.

The problem i am having is the fact that i cannot seem to add parameters to the 'Parameter List'.

While i am in the 'Modify Command' mode, and click 'Create', I can enter all the param information.

However, once i click OK, and go back to the Command, the parameter i just created is gone.

Am i missing something? Thanks.
 
Nevermind. I was going about this issue the wrong way.
I added the SP as i normally would any view or table.
Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top