Link to home
Start Free TrialLog in
Avatar of dronethought
dronethought

asked on

SQL...what happens when a service is stopped and someone is logged on

Hello,
Question. I have a SQL database. It is new and currently how I back it up is I log everyone out, stop the sQL services and the database service, and drag and drop the instance (DATA) to an SSD drive.

What happens if I stop the SQL services when people are logged in? Does this lead to database corruption?

I know Symantec's backup product has an agent that backs up the database for me while people are logged in and I do not have to stop the services. The product is finally stable.

How do you backup your SQL databases, what is the best way? I watched several TECHNET videos on the subject.

Thanks,
ASKER CERTIFIED SOLUTION
Avatar of Carl Tawn
Carl Tawn
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dronethought
dronethought

ASKER

Thank you.
Dear Carl,
Forgot to ask, the syntax is used in which program...I am new to SQL.
Thanks.
DT
Normally it would be through SQL Server Management Studio, sqlcmd (command-line client), or as part of a scheduled SQL Server Agent job.
Thank you!!