dbTalk Databases Forums  

Loading a busy database

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Loading a busy database in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tom P.
 
Posts: n/a

Default Loading a busy database - 04-10-2006 , 01:03 PM






Any comments on how to load a busy database? I have a table in a SQL Server
database that is read-only (SELECT only) to all applications. The only
application that has any more permissions is the loading application. This
is done via SQL Server stored procedure. When the job runs at night the SP
runs in about 15 minutes. If it fails for any reason and I have to run it
during the day it takes hours to complete. I assume this is due more to a
busy server than table locks as nothing but my SP should be able to lock the
table.

How does one accomplish loading during the day, assuming the system is busy?
Do you kick users out? Limit their ability to use up resources (somehow?)
Thoughts?

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Loading a busy database - 04-10-2006 , 01:12 PM






You are still going to take out Shared Locks on the tables/keys/rows though
right so this will restrict the loading app to some degree.

Have a look here for the matrix

http://msdn2.microsoft.com/en-us/lib...6(SQL.90).aspx

You could try having the SELECTs use WITH (NOLOCK)



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote

Quote:
Any comments on how to load a busy database? I have a table in a SQL
Server
database that is read-only (SELECT only) to all applications. The only
application that has any more permissions is the loading application.
This
is done via SQL Server stored procedure. When the job runs at night the
SP
runs in about 15 minutes. If it fails for any reason and I have to run it
during the day it takes hours to complete. I assume this is due more to a
busy server than table locks as nothing but my SP should be able to lock
the
table.

How does one accomplish loading during the day, assuming the system is
busy?
Do you kick users out? Limit their ability to use up resources (somehow?)
Thoughts?



Reply With Quote
  #3  
Old   
Tom P.
 
Posts: n/a

Default Re: Loading a busy database - 04-10-2006 , 01:29 PM



OK, more for me to learn there. Given that the other apps can hold some sort
of lock on the table, how does one load the table? Wait until the lock is
released?

"Allan Mitchell" wrote:

Quote:
You are still going to take out Shared Locks on the tables/keys/rows though
right so this will restrict the loading app to some degree.

Have a look here for the matrix

http://msdn2.microsoft.com/en-us/lib...6(SQL.90).aspx

You could try having the SELECTs use WITH (NOLOCK)



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote in message
news:7C1FF343-DE66-4674-B2F3-6607A6DE8832 (AT) microsoft (DOT) com...
Any comments on how to load a busy database? I have a table in a SQL
Server
database that is read-only (SELECT only) to all applications. The only
application that has any more permissions is the loading application.
This
is done via SQL Server stored procedure. When the job runs at night the
SP
runs in about 15 minutes. If it fails for any reason and I have to run it
during the day it takes hours to complete. I assume this is due more to a
busy server than table locks as nothing but my SP should be able to lock
the
table.

How does one accomplish loading during the day, assuming the system is
busy?
Do you kick users out? Limit their ability to use up resources (somehow?)
Thoughts?




Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Loading a busy database - 04-10-2006 , 02:05 PM



The load should wait for the lock to be released. By default the "waiting"
process will just wait.

Have a look here

http://www.google.com/search?hl=en&l...UT&btnG=Search



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote

Quote:
OK, more for me to learn there. Given that the other apps can hold some
sort
of lock on the table, how does one load the table? Wait until the lock is
released?

"Allan Mitchell" wrote:

You are still going to take out Shared Locks on the tables/keys/rows
though
right so this will restrict the loading app to some degree.

Have a look here for the matrix

http://msdn2.microsoft.com/en-us/lib...6(SQL.90).aspx

You could try having the SELECTs use WITH (NOLOCK)



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote in message
news:7C1FF343-DE66-4674-B2F3-6607A6DE8832 (AT) microsoft (DOT) com...
Any comments on how to load a busy database? I have a table in a SQL
Server
database that is read-only (SELECT only) to all applications. The only
application that has any more permissions is the loading application.
This
is done via SQL Server stored procedure. When the job runs at night
the
SP
runs in about 15 minutes. If it fails for any reason and I have to run
it
during the day it takes hours to complete. I assume this is due more
to a
busy server than table locks as nothing but my SP should be able to
lock
the
table.

How does one accomplish loading during the day, assuming the system is
busy?
Do you kick users out? Limit their ability to use up resources
(somehow?)
Thoughts?






Reply With Quote
  #5  
Old   
Tom P.
 
Posts: n/a

Default Re: Loading a busy database - 04-10-2006 , 02:33 PM



Thanks.

"Allan Mitchell" wrote:

Quote:
The load should wait for the lock to be released. By default the "waiting"
process will just wait.

Have a look here

http://www.google.com/search?hl=en&l...UT&btnG=Search



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote in message
news:25396D1F-CF5B-4729-A51B-A9237B583A14 (AT) microsoft (DOT) com...
OK, more for me to learn there. Given that the other apps can hold some
sort
of lock on the table, how does one load the table? Wait until the lock is
released?

"Allan Mitchell" wrote:

You are still going to take out Shared Locks on the tables/keys/rows
though
right so this will restrict the loading app to some degree.

Have a look here for the matrix

http://msdn2.microsoft.com/en-us/lib...6(SQL.90).aspx

You could try having the SELECTs use WITH (NOLOCK)



--


Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com


"Tom P." <TomP (AT) discussions (DOT) microsoft.com> wrote in message
news:7C1FF343-DE66-4674-B2F3-6607A6DE8832 (AT) microsoft (DOT) com...
Any comments on how to load a busy database? I have a table in a SQL
Server
database that is read-only (SELECT only) to all applications. The only
application that has any more permissions is the loading application.
This
is done via SQL Server stored procedure. When the job runs at night
the
SP
runs in about 15 minutes. If it fails for any reason and I have to run
it
during the day it takes hours to complete. I assume this is due more
to a
busy server than table locks as nothing but my SP should be able to
lock
the
table.

How does one accomplish loading during the day, assuming the system is
busy?
Do you kick users out? Limit their ability to use up resources
(somehow?)
Thoughts?







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



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.