Re:Re: Invalid Variant Operation
Hi Brian,
Sorry for the delay in replying, I have been away. Thanks again for your
help.
I am having quite a few problems with timeouts and deadlocks.
I have been doing some reading about locking but am finding it hard to
understand exactly what will cause a lock and what does not cause a lock.
Can you suggest a good resource? (I am using SQL Server 2000 and D5 with
ADO)
A couple of other stupid questions:
1) Can a select statement cause a lock on the records that it reads?
2) I have a SP that makes updates to several tables. It seems to be able to
cause a deadlock when 2 users run it at the same time even though they would
definitely not be trying to update the same records (same tables but not
same records). What sorts of things do I need to look out for?
3) Cursors - I have read they are evil and to be avoided. However, our
application lets the user set up 'rules' that each contains steps the system
should follow when processing an order, etc. We need to load the rule and
process each step one after the other. Is there a better way than a cursor
or are cursors justified in this case?
Thanks in advance for any help.
Regards,
Matthew
"Brian Bushay TeamB" <
XXXX@XXXXX.COM >wrote in message
Quote
>Just a quick question on the return paramter bing null.
>
>I am trying to figure out how to check for a null value so I don't create
>an
>error.
>
>The only way I seem to be able to access the value is
>'proc1.Parameters.ParamByName('@RETURN_VALUE').Value'
>
>It won't let me use AsInteger, AsString, or the IsNull option instead of
>the
>'Value' property?
You already got the correct answer from Brian Holister on this one.
I just want to add that you really should try to figure out why you are
getting
the deadlock and if there is another way to write your stored procedure to
avoid
it. Deadlocks use up a lot of resources and if you are adding more uses
you are
likely to get them more frequently.
Brian
--
Brian Bushay (TeamB)
XXXX@XXXXX.COM