Solved

Sql Server - SP - install while there is user activity

Posted on 2016-10-12
10
24 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
Comment Utility
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
Comment Utility
What I meant was we still have applications / users running queries (dml only)
0
 
LVL 45

Accepted Solution

by:
Vitor Montalvão earned 400 total points (awarded by participants)
Comment Utility
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
 

Author Comment

by:MTL999
Comment Utility
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 45

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 400 total points (awarded by participants)
Comment Utility
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
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 
LVL 69

Assisted Solution

by:ScottPletcher
ScottPletcher earned 100 total points (awarded by participants)
Comment Utility
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
Comment Utility
<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
Comment Utility
Oh, SP meant Service Pack.  I misunderstood this to mean Stored Procedure.
0
 
LVL 45

Expert Comment

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

Expert Comment

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

Featured Post

Get up to 2TB FREE CLOUD per backup license!

An exclusive Black Friday offer just for Expert Exchange audience! Buy any of our top-rated backup solutions & get up to 2TB free cloud per system! Perform local & cloud backup in the same step, and restore instantly—anytime, anywhere. Grab this deal now before it disappears!

Join & Write a Comment

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…
Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

763 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now