Viewing 15 posts - 121 through 135 (of 210 total)
hi,
change the below statement in your script
SUBSTRING(list, indCol.splitter +1, 100)
SUBSTRING(list, indCol.splitter +1, 250) --> increase this, your query will work with out errors
To be on safe you can increaase to...
May 14, 2014 at 12:14 am
rhythmk (5/12/2014)
Nice and easy one.One can answer by seeing the first query itself.No need to see other query as only one option has answer as 1000 for first query 🙂
+1
May 12, 2014 at 2:48 am
Revenant (5/6/2014)
DECLARE @b1 AS BIT = 1,
@b2 AS BIT = 1;
DECLARE...
May 7, 2014 at 3:15 am
Jeff Moden (5/5/2014)
May 6, 2014 at 3:18 am
find the updated one
DECLARE @MasterTableName AS VARCHAR(255)
set @MasterTableName='parent_table_name'
;WITH ParentChi AS
(
--initialization
SELECT
OBJECT_NAME (fkey.referenced_object_id) AS ParentTable
...
May 3, 2014 at 10:00 am
yuvipoy (4/3/2014)
Jeff Moden (4/2/2014) my answer can only be to "lookup the ParentID in Table2 and use it to find the information in Table1".
Yes similarly kind fof information i need...
May 3, 2014 at 9:45 am
Eirikur Eiriksson (5/3/2014)
IMHO: The ability to quickly hide and show the result pane is very helpful, especially when working with limited screen estate (laptops, tables & mobiles).😎
+1
I work...
May 3, 2014 at 4:29 am
Try with the below query
Note : please replace job_name and step_name according to your code
select
j.name as 'JobName',
s.step_id as 'Step',
s.step_name as 'StepName',
msdb.dbo.agent_datetime(run_date, run_time) as 'RunDateTime',
...
April 29, 2014 at 6:04 am
You can also see the below link
April 29, 2014 at 4:08 am
thava (4/25/2014)
my solution is avoid the summation two times the other solution using two times grouping...
April 25, 2014 at 8:02 am
David Burrows (4/25/2014)
SELECT
'Type'[Type]
,SUM(CASE WHEN code='09' THEN Amt/100 ELSE 0 END) AS [Col1]
,SUM(CASE WHEN code='10' THEN Amt/100 ELSE 0 END) AS [Col2]
,SUM(CASE WHEN code='11' THEN Amt/100 ELSE...
April 25, 2014 at 7:52 am
Viewing 15 posts - 121 through 135 (of 210 total)