Solved

Sql Server - SP - install while there is user activity

Posted on 2016-10-12
10
28 Views
Last Modified: 2016-11-14
Can I install a SP while there is some user activity happening ?   I know that nornally a restar of sql server will be required but I want to make sure that the SP install will not fail becuase of user activity.

Thanks
Bruno
0
Comment
Question by:MTL999
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 65

Expert Comment

by:Jim Horn
ID: 41840149
Define what you mean by 'user activity', and give us some more background info.  I'm guessing there's a better workaround then detecting user events and executing DDL.
1
 

Author Comment

by:MTL999
ID: 41840151
What I meant was we still have applications / users running queries (dml only)
0
 
LVL 49

Accepted Solution

by:
Vitor Montalvão earned 400 total points (awarded by participants)
ID: 41840167
Any SP will stop the SQL Server engine kicking out any active connection so it will affect drastically the application and that's why it's recommended to install hotfixes when the databases are not in use.
0
Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

 

Author Comment

by:MTL999
ID: 41840216
That's all right, it what I expect.  Do you think the SP install will fail because we have query / dml activity during the install?
0
 
LVL 49

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 400 total points (awarded by participants)
ID: 41840222
It won't fail. The query will be canceled and depending on what the query did the rollback can take some time so it may affect the SP installation time.
0
 
LVL 69

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 100 total points (awarded by participants)
ID: 41840353
Allowing SQL to continue running requests is not something you want to do with a SP unless you have absolutely no choice.  You're better off quiescing SQL activity yourself before patching.
0
 
LVL 42

Expert Comment

by:Eugene Z
ID: 41840403
<Can I install a SP while there is some user activity happening >?
if you meant Sql service pack (SP)
answer: NO
plan downtime, have a good DBs backup,make sure all heavy sql processes are done before you start
0
 
LVL 65

Expert Comment

by:Jim Horn
ID: 41840412
Oh, SP meant Service Pack.  I misunderstood this to mean Stored Procedure.
0
 
LVL 49

Expert Comment

by:Vitor Montalvão
ID: 41861671
Bruno, is this question answered?
If so, please mark one or more comments as solution so this can be closed.
Cheers
0
 
LVL 49

Expert Comment

by:Vitor Montalvão
ID: 41886028
Recommendation to close this question by accepting the above comments as solutions.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.

756 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question