Home All Groups Group Topic Archive Search About

How to kill all connections

Author
24 Mar 2006 10:08 PM
ad
I want to move the database files to another by program, but if the
connection is open, I can't do that?
Can I kill all connections of a databse by program?

Author
25 Mar 2006 4:46 AM
William (Bill) Vaughn
If you use the SQL Management Studio Detach task, it gives you the option to
close the connections prior to detach.

ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/d0de0639-bc54-464e-98b1-6af22a27eb86.htm


--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
INETA Speaker
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

Show quote
"ad" <fly***@wfes.tcc.edu.tw> wrote in message
news:e8fIu94TGHA.5836@TK2MSFTNGP10.phx.gbl...
>I want to move the database files to another by program, but if the
>connection is open, I can't do that?
> Can I kill all connections of a databse by program?
>
Author
25 Mar 2006 7:22 AM
Cor Ligthert [MVP]
Bill,

This is in my opinion a typical MS Assecc question where the extra file is
pending.

Probably you know the answer direct, while I have to search because I forgot
it.

Cor

Show quote
"William (Bill) Vaughn" <billvaRemoveT***@nwlink.com> schreef in bericht
news:eBRubc8TGHA.4276@TK2MSFTNGP10.phx.gbl...
> If you use the SQL Management Studio Detach task, it gives you the option
> to close the connections prior to detach.
>
> ms-help://MS.SQLCC.v9/MS.SQLSVR.v9.en/udb9/html/d0de0639-bc54-464e-98b1-6af22a27eb86.htm
>
>
> --
> ____________________________________
> William (Bill) Vaughn
> Author, Mentor, Consultant
> Microsoft MVP
> INETA Speaker
> www.betav.com/blog/billva
> www.betav.com
> Please reply only to the newsgroup so that others can benefit.
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> __________________________________
>
> "ad" <fly***@wfes.tcc.edu.tw> wrote in message
> news:e8fIu94TGHA.5836@TK2MSFTNGP10.phx.gbl...
>>I want to move the database files to another by program, but if the
>>connection is open, I can't do that?
>> Can I kill all connections of a databse by program?
>>
>
>
Author
25 Mar 2006 6:15 PM
W.G. Ryan eMVP
Depends on the back end db you're using.  Is there a specific one you need.
Show quote
"ad" <fly***@wfes.tcc.edu.tw> wrote in message
news:e8fIu94TGHA.5836@TK2MSFTNGP10.phx.gbl...
>I want to move the database files to another by program, but if the
>connection is open, I can't do that?
> Can I kill all connections of a databse by program?
>

AddThis Social Bookmark Button