General discussion


SQL Sessions

By kaypaul ·
How can I logoff user sessions on SQL at a certain time of the day?

As I need to run a batch and don't want any users
connecting to the SQL.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Comments

Collapse -

by Tony Hopkinson In reply to SQL Sessions

Like you here's me looking for sp_kill @spid. No such thing apparently. Haven't tries it but this fella says the solution is

I should point out though this won't stop people connecting during your sp. It would probably be better to shut the server down, run it up as exclusive, do your stuff and then restart it normally.

Collapse -

by kaypaul In reply to

Poster rated this answer.

Collapse -

by kaypaul In reply to SQL Sessions

This question was closed by the author

Related Discussions

Related Forums