Viewing 7 posts - 1 through 7 (of 7 total)
Parenthesis were not properly managed, corrected belowSELECT FORMATMESSAGE('CTL|%s|%s|%s|', FORMAT(CURRENT_TIMESTAMP, 'yyyyMMdd'),CAST(SUM(totamount) AS varchar(MAX)),'100')
FROM table.xxxx
'%s' --> signifies as dynamic message
since there are 3 of...
February 13, 2017 at 9:27 pm
In SSIS package,
1. Store the SQL query in the variable, define it using expression
2. Connection Managers contains InitialCatalog property, if it is set dynamically (i.e., using expression)...
February 6, 2017 at 9:54 pm
We can go for dynamic Sql, try below solution -- generate a modest set of sample data
IF OBJECT_ID('tempdb..#Sample') IS NOT NULL
DROP TABLE #Sample;
CREATE...
February 6, 2017 at 5:15 am
Look at below code, see if it give the correct resultsDECLARE @SD DATETIME
,@cycle NUMERIC
SET @SD = '1-1-17'
SET @cycle = 21
SELECT CASE...
February 6, 2017 at 4:36 am
Need some help on tsql logic. I have a small requirement of Archiving...
February 6, 2017 at 4:20 am
http://deleteduplicaterecords.blogspot.in/
You get all answers here
January 23, 2015 at 12:23 am
Viewing 7 posts - 1 through 7 (of 7 total)