Unix Technical Forum

Problem with a lot of inserts in short time - SQL Server 2000

This is a discussion on Problem with a lot of inserts in short time - SQL Server 2000 within the SQL Server forums, part of the Microsoft SQL Server category; --> Hi! We have SQL Server 2000 on virtual machine (slowly). We run a pair of stored procedures from ADO.NET ...


Go Back   Unix Technical Forum > Database Server Software > Microsoft SQL Server > SQL Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-01-2008, 03:49 PM
edi
 
Posts: n/a
Default Problem with a lot of inserts in short time - SQL Server 2000

Hi!

We have SQL Server 2000 on virtual machine (slowly). We run a pair of
stored procedures from ADO.NET 2.0 (WebService):
- first procedure: insert into table A a data row with correlationID
- next procedure: search for inserted record in tab A by
correlationID and insert value into tab B with constraint to tab A.

The problem is when we try to do this in short time (few minutes)
thousands times (5000/6000 pairs in 5/6 minutes) in 100 parallel
threads:

query in second procedure cannot find inserted record in first
procedure.

Everything is dirty read. no transactions.

Have you any ideas?

edi

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 03-01-2008, 03:49 PM
Erland Sommarskog
 
Posts: n/a
Default Re: Problem with a lot of inserts in short time - SQL Server 2000

edi (edward.weinert@gmail.com) writes:
> We have SQL Server 2000 on virtual machine (slowly). We run a pair of
> stored procedures from ADO.NET 2.0 (WebService):
> - first procedure: insert into table A a data row with correlationID
> - next procedure: search for inserted record in tab A by
> correlationID and insert value into tab B with constraint to tab A.
>
> The problem is when we try to do this in short time (few minutes)
> thousands times (5000/6000 pairs in 5/6 minutes) in 100 parallel
> threads:
>
> query in second procedure cannot find inserted record in first
> procedure.


Can you take that again slowly, and please include your code? And please
explain more clearly what is your problem. Is it a performance problem
only, or is there a malfunction?


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/pro...ads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinf...ons/books.mspx
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:12 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com