Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

SQL 2005 script automation

Posted on 2011-09-14
2
Medium Priority
?
143 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 2000 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Look below the covers at a subform control , and the form that is inside it. Explore properties and see how easy it is to aggregate, get statistics, and synchronize results for your data. A Microsoft Access subform is used to show relevant calcul…

783 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