Viewing 8 posts - 16 through 23 (of 23 total)
change line
CONSTRAINT primary key (CarNo, JobDate, WorkerID))
to
primary key (CarNo, JobDate, WorkerID))
February 20, 2007 at 9:07 pm
Was the ELSE ***** a sql statement, or several statements?
February 20, 2007 at 1:46 am
Nice touch Michael - a good generalization of the solution (though it does need an extra NOT in there to get the right result set)
select * from @t where...
February 18, 2007 at 1:11 am
SELECT CharField
FROM YourTable
WHERE PATINDEX('[0-9][0-9]',CharField) > 0
This uses a wildcard range of [0-9] for both the first and second characters of the CHAR field - and if both characters are "hits"...
February 17, 2007 at 2:53 am
Yep - but simple can be tricky
A couple of minor items....
This should also be joined on orderid to meet the requirements (although the...
February 15, 2007 at 3:33 am
A slightly different approach that avoids grouping, and only has two instances of the same table.
Whether that makes any difference in performance is another question
February 14, 2007 at 2:53 am
While this doesn't address your question about what architecture change in 2005 causes your delete to slow down, the following should be a lot more efficient. Indexing one or more...
February 12, 2007 at 3:18 am
before you strip out all characters, note that an autodialer dialing "(800) 555-1212 ext 12"" should dial 18005551212, pause for several seconds, then dial 12. Your autodialer probably has a...
January 19, 2007 at 11:11 am
Viewing 8 posts - 16 through 23 (of 23 total)