Viewing 15 posts - 76 through 90 (of 292 total)
Your welecome. Thanks for the feedback.
James.
July 18, 2007 at 12:18 pm
Create a SQL Job with two steps. The first step checks for the record and if not found then raise an error (severity 11). Set the job to not process...
July 18, 2007 at 11:00 am
As for preventing the casts in each query I recommend bulk loading to a "staging" or temp table then have a function (created seperately) that merges/updates or replaces the values in...
July 18, 2007 at 8:51 am
No guarentees since you didn't post the full table definitions but based on what I saw I would think this would work:
UPDATE dbo.EMPLOYEE
SET CongDist = r.CongDist,
UpperDist = r.UpperDist,
LowerDist...
July 18, 2007 at 8:44 am
Thanks Jeff (sorry Peter). I read it several times but my brain just wouldn't interpret it that way. Must have been a senior moment. I just re-read it and I...
July 17, 2007 at 2:21 pm
Hey Peter, nice and neat, but you don't need the last " / 100.00". It will give the -5 to +5 range without it. At least when I tested it...
July 17, 2007 at 2:09 pm
July 17, 2007 at 1:07 pm
I don't have any direct knowledge of this error but a quick google search showed a number of similiar entries. Most pointed to MDAC problems, maybe an older version and...
July 17, 2007 at 1:03 pm
Ok, if you have to have negative numbers you could try this:
update mytable
set myvalue = myvalue +
case when RAND(CAST(NEWID() AS VARBINARY)) > 0.50
then CAST(RAND(CAST(NEWID() AS VARBINARY))*-5+1 AS...
July 17, 2007 at 12:48 pm
Try:
update mytable
set myvalue = myvalue + CAST(RAND(CAST(NEWID() AS VARBINARY))*5+1 AS INT)
James.
Oops, guess that won't produce any negative numbers. Sorry.
July 17, 2007 at 12:33 pm
Try:
update
telematchout set telephone = case when telephone is null
July 16, 2007 at 9:32 am
Ok, I'm confused. High Safety is not one of the operating modes that I could find. Since the other two listed were referenced and definately NOT automatic failovers I select...
July 16, 2007 at 8:42 am
Viewing 15 posts - 76 through 90 (of 292 total)