SET NOCOUNT ON;
USE database;
GO
IF OBJECT_ID('dbo.table) IS NOT NULL
DROP TABLE dbo.table
GO
CREATE TABLE .....
Showing posts with label Null. Show all posts
Showing posts with label Null. Show all posts
Saturday, 16 January 2010
Tuesday, 6 October 2009
Adding Null Values for Multi-Valued Parameters - SSRS
When we use multi-valued parameters, we would want to have null values as an option as we may want it to be selected by default. The problem is, there is no null value for multi-valued parameters. One possible solution could be to create a view that has a null value. To do this, we can make use of the UNION ALL command present in SQL.
CREATE VIEW viewDomainWithNull
AS SELECT -1 AS [Domain Id], 'NULL' AS [Domain Name]
UNION ALL
SELECT [Domain Id],[Domain Name] FROM Domain
Taken from
http://www.codeproject.com/KB/reporting-services/SSRSaaka3.aspx
CREATE VIEW viewDomainWithNull
AS SELECT -1 AS [Domain Id], 'NULL' AS [Domain Name]
UNION ALL
SELECT [Domain Id],[Domain Name] FROM Domain
Taken from
http://www.codeproject.com/KB/reporting-services/SSRSaaka3.aspx
Friday, 21 August 2009
Dealing with Nulls - CR
if isnull({ISSUE.DESCRIPTION})
then "There are currently no issues logged against this project"
else ({ISSUE.REFERENCE} & " - " &{ISSUE.DESCRIPTION})
then "There are currently no issues logged against this project"
else ({ISSUE.REFERENCE} & " - " &{ISSUE.DESCRIPTION})
Thursday, 20 August 2009
IsNothing Function - SSRS
=Iif(IsNothing(Fields!ANYFIELD.Value), "The Field Is Null", Fields!ANYFIELD.Value)
Subscribe to:
Posts (Atom)