Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
SELECT TicketID, TicketDate, etc.
FROM dbo.Tickets
WHERE OfficeID = @OfficeID
SELECT TicketID, TicketDate, etc.
FROM dbo.Tickets
WHERE OfficeID = CASE WHEN @OfficeID = 'ALL'
THEN OfficeID
ELSE @OfficeID END
Declare @collist2 Table (id int identity(1,1), ColName VarChar(255))
Insert into @collist2(ColName) Values('All Columns')
Insert into @collist2
Select distinct c.[name] as ColName
From sysobjects o inner join syscolumns c on o.[id] = c.[id]
Where o.xtype = 'U' and
o.[name] = @tblName
Select * from @collist2
Order by id asc
=iif( Parameters!colName.Value <> "All Columns", Parameters!colName.Value, Fields!ColumnName.Value )