Solved

Sql Server - SP - install while there is user activity

Posted on 2016-10-12
10
26 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 47

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
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 

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 47

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:EugeneZ
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 47

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 47

Expert Comment

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

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed
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.

773 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