Viewing 15 posts - 3,241 through 3,255 (of 5,103 total)
have you tried inverting the order of operations ? :
SELECT @intMax = ISNULL(cast(MAX(SUBSTRING(event_num,5,6))as integer) +1,1)
FROM Events e
join Prod_Units pu on e.pu_id = pu.pu_id
WHERE pu.pl_id = @intPlId and len(event_num) =...
July 12, 2005 at 10:55 am
At this point who cares?
BTW: do you have a boss? ( or a job for that matter ? )
July 12, 2005 at 10:41 am
No,
What I meant is that if you are going to use the way that the poster issued all expressions involved should either be of the same type or implicitely converrtible otherwise...
July 12, 2005 at 10:39 am
The problem may be a context issue. You may be runing a batch and you want to make sure that it works reapeatedly then is an easy way to do...
July 12, 2005 at 10:36 am
you should use the searched way instead:
CASE WHEN @CheckBDate = 0 THEN @NullBDate ELSE @BDate END
because the types of the expresssions are not the same
![]()
July 12, 2005 at 10:33 am
if not object_id ('temp..TempTable') is null
begin
drop table #TempTable
end
July 12, 2005 at 10:27 am
but if you use this syntax:
rs.open "EXEC mySPname " & param1 & ", " & param2 ....
you also get BATCH call and won't enjoy RPC call speed benefits (which may not...
July 12, 2005 at 10:24 am
Ahh the joy of guessing ... we will never know what he actually wanted? ... unless the poster replies back ![]()
July 12, 2005 at 10:10 am
can you post some data samples ?
this is a wild guess
Update Table Set Fld = '\\server2\folder5\' + Right(Fld,charindex('\',1,reverse(fld)) -1)
July 12, 2005 at 9:26 am
Are you really saying that? ![]()
There is no last or first on a set! There is no guarrantie on order on a set. sometimes...
July 12, 2005 at 9:22 am
BE Careful with this code:
...
-- Insert patient
INSERT ...
SELECT @errorcode = @@Error
IF @errorcode > 0 BEGIN
-- Insert successful, commit it
SELECT @ID = @@IDENTITY
...
It is flawed. You must...
July 12, 2005 at 9:17 am
>>...the last (just in case the newbies come up on this thread
).<<
Well, the problem is that in SQL there is no concept of...
July 12, 2005 at 9:10 am
Viewing 15 posts - 3,241 through 3,255 (of 5,103 total)