Viewing 15 posts - 52,411 through 52,425 (of 59,064 total)
sqluser (2/20/2008)
try this one also ....DECLARE @s1 varchar(16)
DECLARE @s2 varchar(16)
SET @s1 = '1232'
SET @s2 = 'tete,1232'
SELECT @s1,@s2
SELECT SUBSTRING(@s2,CHARINDEX(@s1,@s2,1),LEN(@s1))
---
Careful!!!! You must still include the delimiter wrapping or you will get...
February 20, 2008 at 11:04 am
Adam Haines (2/20/2008)
declare @filter varchar(25)
set @filter = 'test|test2'
DECLARE @x XML
SET @x =...
February 20, 2008 at 7:43 am
Ok... I'm a bit new to 2k5... just installed it a couple of months ago and still coming up to speed on how some of the new features work.
Can someone...
February 20, 2008 at 6:35 am
You pictures didn't show up because you didn't attach them.
February 19, 2008 at 10:53 pm
If you have a "friendly" DBA, (s)he will be able to setup a proxy user on a job that anyone could run at any time.
Good lesson here, though... most DBA's...
February 19, 2008 at 8:41 pm
If it's not too far from work, go into work once in a while. Otherwise, you're fine. Just continue to make sure that they know you exist. ...
February 19, 2008 at 8:38 pm
Yes you can... like this...
DECLARE @S1 VARCHAR(100)
DECLARE @S2 VARCHAR(100)
SET @S1 = '5'
SET @S2 = '1,2,3,4,55,6'
SELECT PATINDEX('%'+@S1+'%',@S2)
But, you notice that in...
February 19, 2008 at 8:33 pm
What was the error... partial file transmission or just a bad row or maybe a rowcount at the end of the file? What was the error?
February 19, 2008 at 8:18 pm
Awesome. And very simple, to boot! Thanks Chris! Neat redirection trick.
February 19, 2008 at 8:14 pm
Very cool, Chris... how the heck did you do it?
February 19, 2008 at 8:10 pm
... just a reminder... no privacy info, please. Also, if it's a big file, please zip it. Thanks.
February 19, 2008 at 3:13 pm
trigonom (2/13/2008)
I am working in SQL Server 2000.For testing purposes, how can I limit the number of rows returned from a cursor?
You didn't answer the question that came up right...
February 19, 2008 at 3:03 pm
Hmmm... I see what you want to do... this is just a small example... if you really want commas in your final output, see where I marked the code "Modify...
February 19, 2008 at 3:00 pm
Christopher Ford (2/19/2008)
I had to run Jeff's running total update because I had 80 million rows to group by 1,928,672 different accounts over a 7 year...
February 19, 2008 at 2:40 pm
Actually, Kevin, what you said is spot on... but they haven't figured out the rest of what you said, yet... when they do, Michigan will be a hot spot for...
February 19, 2008 at 11:43 am
Viewing 15 posts - 52,411 through 52,425 (of 59,064 total)