Unix Technical Forum

Problem Accepting Null values

This is a discussion on Problem Accepting Null values within the SQL Server forums, part of the Microsoft SQL Server category; --> I have created a stored procedure and when i execute it in sql server 2005 it runs fine...the user ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 12:36 PM
Twobridge
 
Posts: n/a
Default Problem Accepting Null values

I have created a stored procedure and when i execute it in sql server
2005 it runs fine...the user can put in a parameter or none at all and
the corresponding results are returned.

@name varchar(20) = NULL

select person.address
from person
where person.name = @name

My problem comes when i try using the stored procedure in my report in
ms reporting services. When i run the report and try not entering a
value for the parameter i get an error saying that it is required that
i enter the parameter. Any ideas?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 12:36 PM
Damien
 
Posts: n/a
Default Re: Problem Accepting Null values

Twobridge wrote:

> I have created a stored procedure and when i execute it in sql server
> 2005 it runs fine...the user can put in a parameter or none at all and
> the corresponding results are returned.
>
> @name varchar(20) = NULL
>
> select person.address
> from person
> where person.name = @name
>
> My problem comes when i try using the stored procedure in my report in
> ms reporting services. When i run the report and try not entering a
> value for the parameter i get an error saying that it is required that
> i enter the parameter. Any ideas?


In Reporting Services, have you brought up the Report Parameters dialog
(through "Report" menu and "Report Parameters..." option, selected the
parameter and ticked the "Allow NULL Value" option?

Damien

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com