Viewing 15 posts - 2,566 through 2,580 (of 6,486 total)
Adam Machanic (9/22/2008)
Matt Miller (9/22/2008)
September 22, 2008 at 8:37 am
cs_troyk (9/22/2008)
September 22, 2008 at 8:20 am
Jack Corbett (9/22/2008)
Case
When IS_MEMBER('role') = 1 Then 1 -- is a member
Else 0 --...
September 22, 2008 at 8:05 am
That was kind of my thought when I started using it. And then I figured out that I could get everything I used to have through the Job Activity...
September 22, 2008 at 7:58 am
You're going to want to look up the OUTPUT clause, since you're using SQL Server 2005. This will allow you to spit out the ID from the initial phase...
September 20, 2008 at 8:17 pm
The many reason to use a hierarchical data set is to have an unknown/undetermined number of levels. If you have a hard hierarchy like you have (and not some...
September 19, 2008 at 6:04 pm
steveb (9/19/2008)
Terri (9/19/2008)
Matt Miller (9/18/2008)
September 19, 2008 at 7:44 am
You could simply use the "success" or "failure" options in the job definition to define branching.
It would look something like:
Step 1: do something for real
Step 2 (branching step)
do your count....
September 19, 2008 at 7:27 am
Chris' code will work if the max number of columns per encid is known. If not - you're going to have to build something that dynamically builds a query...
September 18, 2008 at 3:59 pm
Depending on what you need this for, you might care to look at the ROW_NUMBER() function in 2005, or use the techniques described in this article.
http://www.sqlservercentral.com/articles/Advanced+Querying/61716/%5B/url%5D
September 18, 2008 at 1:42 pm
I can't say I've done a direct compare from 2000 to 2005 on function execution. That being said, even IF the 2005 functions execute faster than their 2000 counterparts,...
September 18, 2008 at 1:40 pm
It makes sure that the trailing spaces don't get truncated before you count them. (LEN will not count trailing spaces). by adding it to both - it cancels out...
September 18, 2008 at 11:08 am
Jeff Moden (9/17/2008)
Mark (9/17/2008)
DECLARE @S VARCHAR(30)SET @S='99202 10060 99000 A6402'
SELECT LEN(@S)-LEN(REPLACE(@S,' ','')) AS NumberOfSpaces
THAT's the way to do it... no RBAR, no join! 🙂
Except...It will return the wrong number if...
September 18, 2008 at 10:55 am
Personally I'd use the "generate script" and WinDIFF. This way you get to both find things that are different, and get right to the area of code where they...
September 18, 2008 at 10:53 am
Michael's right. It looks to be ms from 1/1/1970.
If my math is right - that's
9/17/2008 22:43:34.262
I'd assume that's being expressed in GMT time.
September 17, 2008 at 6:23 pm
Viewing 15 posts - 2,566 through 2,580 (of 6,486 total)