Solved

SQL 2005 script automation

Posted on 2011-09-14
2
133 Views
Last Modified: 2012-05-12
I need to execute a script to update data on about 500 SQL2005 Express on XP, what would be the best way to do this. the script will be removing data from each database in several tables.
any help is greatly appreciated.
0
Comment
Question by:atorex
2 Comments
 
LVL 12

Accepted Solution

by:
FarWest earned 500 total points
ID: 36536877
you can use cscript .vbs file to deploy it on those machine,
if the machines are connected to AD then you can use GPO logon script to run it on those machine

http://stackoverflow.com/questions/1371953/vbscript-how-to-set-the-connection-string

also you may need this to get computer name and use it in the script  

Set objNetwork = CreateObject("Wscript.Network")
ServerStr = objNetwork.ComputerName

good luck
0
 

Author Comment

by:atorex
ID: 36537600
Thanks,

OK, these machines are not on AD, so I can use the example script on the link to execute remotely. I will try that out and update in the next couple of days.
0

Featured Post

Free Gift Card with Acronis Backup Purchase!

Backup any data in any location: local and remote systems, physical and virtual servers, private and public clouds, Macs and PCs, tablets and mobile devices, & more! For limited time only, buy any Acronis backup products and get a FREE Amazon/Best Buy gift card worth up to $200!

Join & Write a Comment

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now