Viewing 15 posts - 34,771 through 34,785 (of 59,102 total)
Mike01 (3/6/2011)
don't forget the where clause or all of your records will be the same 😉
Thanks for the catch, Mike. Shamefully, I only fixed what I saw. :blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2011 at 6:16 am
guruprasat85 (3/7/2011)
Declare @var varchar(1000)Set @var=''
Select @var = @var + fruit + ',' from #temp
Select substring(@var,1,len(@var)-1)
Please read the posts above for why that's a bad idea and what to do about...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 7, 2011 at 6:14 am
Mad-Dog (3/6/2011)
I've 2 server with the same tables and i need to move data between the DEV to the PROD.
my question is how i can write the tsql that will...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 1:19 pm
Phil Factor (3/6/2011)
Maybe we should turn it around and list all the things that they spend way too much time and effort on, Jeff.
Good idea, Phil, except that list...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 1:16 pm
Deepthy (3/6/2011)
I want to execute the stored procedure usp_myproc(@versionid int,@stationname@ varchar(100),@enddate date,@reason varchar(100)) by passing 200 different values of @versionid and @stationname while the @enddate and 'reason are always...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 12:58 pm
update Info set header=ISNULL(@hea,header),content=ISNULL(@cont,content),image=(@im,image)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 12:56 pm
bdaviduck (3/6/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 12:50 pm
Robert Bourdeau (3/4/2011)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:54 am
Jeff Moden (10/18/2009)
--===== Create a function that uses VARCHAR(8000) with a DUPE Eliminator
CREATE FUNCTION dbo.Concat8KTestDupElim
...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:51 am
Carlo Romagnano (10/17/2009)
msam77-503326 (10/15/2009)
declare @res varchar(Max)
select @res = coalesce(@res + ',', '') + [name]
from
(
select 'Apple'...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:49 am
burtsev (3/4/2011)
bnordberg (10/14/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:47 am
kaplan.dani (3/4/2011)
Is there a performance issue in this way ?
I...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:42 am
RHaverty 8478 (3/4/2011)
My solution where I posted the coalesce solution will eat up a cursor on performance. Another better solution than using a cursor is:
But, it's not. It...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:39 am
vkhabas (3/4/2011)
Sorry Guys, as I remember the CTE recursion works with depth <= 70
Actually, the default for the number of resursions is 100. The max explicit size is a...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:37 am
a.rajmane (3/6/2011)
Another simple way of doing this ... see the example at http://www.sqlsuperfast.com/post/2011/02/17/T-SQL-to-Convert-rows-into-single-column.aspx
You had a bad link in your post. I fixed it in the above quote.
Both of those...
--Jeff Moden
Change is inevitable... Change for the better is not.
March 6, 2011 at 11:34 am
Viewing 15 posts - 34,771 through 34,785 (of 59,102 total)