Search EggHeadCafe's Job Board
EggHeadCafe Silverlight WPF ASP.NET VB.NET C# Excel SQL Server SharePoint
search
SQL Server GroupsView
SQL Server Ce
SQL Server Clients
SQL Server Connect
SQL Server Datamining
SQL Server Datawarehouse
SQL Server Dts
SQL Server Fulltext
SQL Server Msde
SQL Server Olap
SQL Server Replication
SQL Server Reportingsvcs
SQL Server Security
SQL Server Server
SQL Server Setup
SQL Server Tools
SQL Server Clustering
SQL Server Programming
SQL Server Xml
SQL Server Newusers
SQL Server Integrationsvcs

Group SummariesView
.NET Framework
Access
BizTalk
Certifications
CRM
DDK
Exchange Server
FoxPro
French
French .NET
Games
German
German .NET
Graphic Design
IIS
Internet
ISA Server
Italian
Italian .NET
Maps
MCIS
Miscellaneous
Mobile Apps
Money
MSN
Networking
Office
Ops Mgr
Publisher
Security
SharePoint
Small Business
Spanish
Spanish .NET
SQL Server
Systems Management Server
Transaction Server
Virtual PC / Virtual Server
Visual Studio
Win32
Windows 2000
Windows 2003 Server
Windows 7
Windows Live
Windows Media
Windows Update
Windows Vista
Windows XP
 

View All Microsoft SQL Server Server Posts  Ask A New Question 

automatically stop/restart sql service

pete008 posted on Thursday, February 14, 2008 4:26 PM

I would like to be able to automatically stop a sql service running on sql
2005 express, use a script to transfer files over to another server and
restart the service automatically.

Any ideas of how I can do this?
reply

 

You can use a batch file that does a net stop, copy and net start.

Jason Massie posted on Thursday, February 14, 2008 4:33 PM

You can use a batch file that does a net stop, copy and net start. Schedule
it with task scheduler.


--
Jason Massie
Web: http://statisticsio.com
RSS: http://feeds.feedburner.com/statisticsio
reply

When it does a copy and it's only copying one file, not the entire directory.

pete008 posted on Thursday, February 14, 2008 5:14 PM

When it does a copy and it is only copying one file, not the entire directory.
The directory has 4 folders and 1 readme file and it is copying the readme
file.

Any ideas?
reply

xcopy /SDocumentation for the other switches is available by running xcopy /?

Jason Massie posted on Thursday, February 14, 2008 5:22 PM

xcopy /S

Documentation for the other switches is available by running xcopy /?

--
Jason Massie
Web: http://statisticsio.com
RSS: http://feeds.feedburner.com/statisticsio
reply


Previous Microsoft SQL Server Server conversation.