Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Sql Server - SP - install while there is user activity

Posted on 2016-10-12
10
Medium Priority
?
32 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
  • 2
  • +2
10 Comments
 
LVL 66

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 52

Accepted Solution

by:
Vitor Montalvão earned 1600 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
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

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 52

Assisted Solution

by:Vitor Montalvão
Vitor Montalvão earned 1600 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 70

Assisted Solution

by:Scott Pletcher
Scott Pletcher earned 400 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 43

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 66

Expert Comment

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

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 52

Expert Comment

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

722 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