Viewing 15 posts - 1 through 15 (of 23 total)
Well, its been a week and i have not seen a single duplicate. I think its fairly safe to say this has been resolved by changing ident_Current
to scope_identity
Thank You all...
April 7, 2009 at 11:51 am
Thank you everyone for the advise.
I changed all my stored procedures to use Scope_Identity. I do believe that majority of my problems were a direct result of the situation described...
April 1, 2009 at 6:25 am
Well one browser window==one session right?
As long as everything happens in one browser window i'm alright i think
March 31, 2009 at 3:00 pm
This post has gone off track because we were discussing where the problem might lie. I believe it lies with sql server while others believe it may be the web...
March 31, 2009 at 2:55 pm
well you concluded wrong becuase in my example:
Item item=Session["item"] this statement gives me the reference to the acutal object not a copy of it.
so then when do
lock(item)
{
}
it effectively locks the...
March 31, 2009 at 2:45 pm
What you described cannot happen because i do this before changing anything (pseudo code):
Item item=Session["item"];
lock(item) // item==Session["item"] so any subsequent hit has to wait to get access to the object...
March 31, 2009 at 9:49 am
Al, the StartDate column i populated by getdate() function. GetDate() is set as default value on the column itself that is why you dont see it in the stored proc.
What...
March 31, 2009 at 8:45 am
In my testing i recruited another guy to help me and we synchronized our clicks (the best we could) and still saw nothing.
This is an intranet application and people...
March 31, 2009 at 8:12 am
Well Gentlemen, those are very sound suggestions... however.
I've been down this road countless times. Stepped through my code,ran the profiler,had other eyes look at my code etc.
No matter what i...
March 31, 2009 at 7:42 am
Well to get into an argument with you but...
It really is the sql server that decides if the record exists or not. The webapplication displays all the ids it received...
March 30, 2009 at 9:47 am
Its pretty simple to decide if the object i have is new or not.
If they clicked on something existing i have its id if no id then its new.
March 30, 2009 at 8:45 am
You are correct i could use the not exist but why? Checking a variable for a value you know the column can never have is just as effective but quicker
March 30, 2009 at 8:43 am
@stageID is acually INPUTOUTPUT and is initialized in the web app to -1
I use to decide if i'm dealing with a "new" object (insert needed) or an existing one (update...
March 30, 2009 at 8:24 am
Thanks for all the suggestions. I will convert all my stored procs to use scope_identity as i do think that may be part of my problem
It does not appear...
March 30, 2009 at 7:16 am
Viewing 15 posts - 1 through 15 (of 23 total)