Viewing 15 posts - 27,016 through 27,030 (of 59,101 total)
Well done on posting your script to share your knowledge.
I would, however, like to suggest that 1) low row or character counts should never be used as a justification for...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 3:52 pm
@harsha-2 (and ayoe else interested),
Thanks for taking the time to post a script but you have to be very careful with recursive CTEs. Please read the following article for...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 3:13 pm
sarwaanmca (4/14/2013)
Thank you sir...Thank you so much....
Take Care...
Regards,
K.D.Saravanan
Thank you for the feedback. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 1:05 pm
Pravasis (4/14/2013)
Mansfield (4/11/2013)
2. It depends....
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 12:42 pm
You need to apply a good splitter to each CSV. Like this.
SELECT s.Owner_Name,
SeatNo = split.Item
FROM dbo.Source s
CROSS APPLY...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 11:40 am
The simple explanation is "converting rows to colums". For how to do that in T-SQL, please see the following article.
http://www.sqlservercentral.com/articles/T-SQL/63681/
In MS Excel and other "front end" reporting, pivoting is...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 11:31 am
j.miner (4/8/2013)
(
case
when @var_cnt = 1 then 'jan'
when @var_cnt = 2 then 'feb'
when @var_cnt = 3 then 'mar'
when @var_cnt = 4 then 'apr'
when @var_cnt = 5 then 'may'
when @var_cnt...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 2:24 am
vsts.dev (4/5/2013)
like
exec 4,5,6
and desired result should be
TranID | MonthValue
...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 2:18 am
Erin Ramsay (4/9/2013)
I read your article and I know it's been a loooooooooooooooong time but you know you could replace this:
--=====...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 14, 2013 at 12:58 am
mic.con87 (4/12/2013)
I have 3 categories ie Voice, Data, SMS.
I have a list of case statements that I currently run based on these categories.
SUM(CASE WHEN categ = 'Voice'
AND rev <> 'ICT'
THEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:46 pm
winmansoft (4/13/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:35 pm
sweeneyliam71 (4/13/2013)
select id, SubjectText from dbo.email where contains
([ContentText],'"( (execute near class, near program ,NEAR code,near SQL ))"',2,true);
go
and
select id, SubjectText from dbo.email where...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:30 pm
To see how the query that JLS wrote works, please see the following article.
http://www.sqlservercentral.com/Forums/Topic935472-392-1.aspx
To learn how to do the same in a dynamic condition where the column...
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:20 pm
Change the "AND" to an "OR".
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 10:14 pm
eseosaoregie (4/13/2013)
--Jeff Moden
Change is inevitable... Change for the better is not.
April 13, 2013 at 9:42 pm
Viewing 15 posts - 27,016 through 27,030 (of 59,101 total)