Viewing 7 posts - 16 through 22 (of 22 total)
we are not sure what exactly you are looking for?
September 28, 2012 at 12:13 am
declare one temp table and then insert the data which u r selecting
insert into @temp
(
name,
LastSuccessfulBackup,
IntervalInDays
)
SELECT a.name, b.type, MAX(b.backup_finish_date) LastSuccessfulBackup,
CAST((GETDATE() - MAX(b.backup_finish_date)) AS NUMERIC(5, 2)) IntervalInDays
FROM master..sysdatabases a
LEFT...
September 27, 2012 at 10:40 am
instead of having multiple if blocks, can't you use switch statements?
September 27, 2012 at 10:35 am
try case statement
CASE
WHEN Fields!A.Value = "Y" THEN sum(Fields!B.Value)
ELSE 0
END
September 27, 2012 at 10:01 am
Try this.
DECLARE
@ta VARCHAR(MAX) = '107.3'
SELECT SUBSTRING(@ta,0,CHARINDEX('.',@ta,0)) + SUBSTRING(@ta,CHARINDEX('.',@ta,0) + 1,LEN(@ta))
September 27, 2012 at 7:41 am
can you provide more details? or a sample code?
containing output scenario based on the inputs.
September 27, 2012 at 4:30 am
Please check now my post and let me know if its clear...
Thanks for your reply
August 19, 2012 at 11:49 am
Viewing 7 posts - 16 through 22 (of 22 total)