Solved

Sql Server - SP - install while there is user activity

Posted on 2016-10-12
10
27 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 48

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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 

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 48

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 48

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 48

Expert Comment

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

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
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…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

837 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