Viewing 15 posts - 31 through 45 (of 190 total)
Hello Lynn Pettis... That worked. Seems very simple. Thanks a...
April 25, 2018 at 12:28 pm
Hello Luis Cazares Sorry for replying to an older post...
April 25, 2018 at 10:42 am
Yeah Louis. I understood those parts correctly.
October 25, 2016 at 12:31 pm
Thanks everyone.
Thanks Luis. That is very simple and it worked. 🙂
October 25, 2016 at 12:12 pm
Thanks all for the reply. I got it.
September 27, 2016 at 3:20 pm
Once again Thanks a lot.
Jeff- I understand your concern but we have data coming from third party so we have to massage data here.
The Dixie Flatline- You are right. I...
September 14, 2016 at 11:43 am
INSERT INTO #EXAMPLE(AZ,NY,PA)
SELECT AZ,NY,PA FROM
(SELECT code,value FROM #UnPivotExample
) AS cp
PIVOT
( MAX(code) for value IN ([AZ],[NY],[PA])
) AS up
When I try this way, it says,
Msg 8114, Level 16, State 1, Line 50
Error...
September 14, 2016 at 9:42 am
Thanks a lot guys. However I tried this approach
CREATE TABLE #UnPivotExample(code varchar(2), value int)
INSERT INTO #UnPivotExample (code,value)
SELECT code,value
FROM
(SELECT [AZ], [NY], [PA] FROM #Example
) AS cp
UNPIVOT
...
September 14, 2016 at 9:38 am
Thanks guys.
Patindex is not supoorted in ssis i guess. So if i use this in ssis then it may be prob. but i think i understand the logic here and...
August 9, 2016 at 3:15 pm
Anyway Thanks a lot. I hope this is flawless
SELECT
'exec sp_rename ''' + QUOTENAME( Table_Name) + '.' + QUOTENAME(COLUMN_NAME) +
''', ''' + QUOTENAME(LOWER(REPLACE(column_name, '''', ''''''))) + ''', ' +...
August 8, 2016 at 9:01 am
Thanks
I was using this to change all at once,
SELECT
'exec sp_rename ''' + QUOTENAME( Table_Name) + '.' + QUOTENAME(COLUMN_NAME) +
''', ''' + QUOTENAME(LOWER(COLUMN_NAME)) + ''', ' + '''COLUMN'';'
FROM
Information_Schema.[COLUMNS]
Now I...
August 8, 2016 at 8:58 am
Thanks a lot experts. I will definitely use all these advises and try one more time.
July 25, 2016 at 8:33 am
Viewing 15 posts - 31 through 45 (of 190 total)