Link to home
Create AccountLog in
Avatar of apollo-13
apollo-13

asked on

sql start and stop.cmd

I need to start sql server from task manager.I did a.cmd script.

sqlstart.cmd:
net start "SQL Server (DB)"


yesterday it did not started.I did manuel test run. when run script SQLDB asks me YES or NO question.

I think if i add always YES in my script ,then will be ok.

But i do not know how can i do it?
SOLUTION
Avatar of Dmitriy Ilyin
Dmitriy Ilyin
Flag of Russian Federation image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of apollo-13
apollo-13

ASKER

$=mean is?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
User generated imagehere is my script which aktual:
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
yes when i run in command line then comes out question YES or NO. this YES must be in my script for running this script with out me .

how can i add this yes option?
SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
when i run script manuel ,opens command promt automatically and ask me Do you want to run this program YEs or NO?. if i write YES and click enter then OK.
but i want my script make it automatically whitout my YES writeing.
ASKER CERTIFIED SOLUTION
Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account