Viewing 15 posts - 16 through 30 (of 69 total)
Hmmmm...thought that would work but when I executed this:
declare @t varchar(max)
set @t = 'test1
test2
'
select @t = replace(@t, char(10) + char(13) + char(10) + char(13), char(10) + char(13))
select @t
I got this:
test1
test2
April 18, 2008 at 12:02 pm
Now that's what I call simple
Thanks...
April 18, 2008 at 11:33 am
yeah thats what i'm doing now (meant to write select instead of set). My question was is it possible to use the function directly in the parameter for the...
March 25, 2008 at 2:17 pm
Kinda funny. As your reply came in I had just finished running a selectivity analysis against that field and lo and behold it dropped way down under my 2...
March 25, 2008 at 1:02 pm
After taking a better look at the execution plan, in one instance it was trying to use the wrong index and in another it was using the correct one.
Which honestly...
March 25, 2008 at 12:20 pm
Ahhhh wait. Now I'm getting somewhere. Based on what you just said I ran 3 different scenerios:
1) LIKE %nn%
2) LIKE %nn
3) LIKE nn%
1 and 2 took the usual...
March 25, 2008 at 12:11 pm
That's the really odd part. The execution plan and the client stats between both trials are almost identical. It is actually telling me that the client execution time...
March 25, 2008 at 11:29 am
I will test UPDLOCK. I've had some deadlocking issues when using that in a select/update transaction in the past but that was with a different version of sql server....
January 9, 2008 at 1:43 pm
Dynamic tsql is difficult because in my situation, I have a rather long procedure with other local table variables that I need to access. When you use dynamic tsql,...
December 14, 2007 at 8:10 am
Does anyone know what will happen if I do a TRUNCATE on a table at the same time I am bulk inserting rows into it? I have to truncate...
December 12, 2007 at 9:15 am
Yeah....that is part of my battery. I'm looking at my production system and seeing what the ratio of preserved records vs deleted records are and if I can get...
December 5, 2007 at 8:10 am
Thanks for the suggestions. I've put together several scenarios and will be testing them over the next couple weeks. In an isolated environment the tablock works great but...
December 4, 2007 at 6:07 pm
I'm not keeping the rows. There is a steady stream of large amounts of data from different sources coming into the staging area. The end user applies some...
December 1, 2007 at 4:21 pm
Yeah already do that....but when you're dealing in hundreds of millions of records with finite resources you have to delete it sometime.....and when the garbage man comes around to remove...
November 30, 2007 at 2:54 pm
Good point.....this is all being done in a staging area so the indexes/foreign keys that would apply to my OLTP environment don't necessarily apply here....
November 30, 2007 at 12:02 pm
Viewing 15 posts - 16 through 30 (of 69 total)