Solved

SQL 2005 script automation

Posted on 2011-09-14
2
139 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Recently, when I was asked to create a new SQL 2005 cluster, Microsoft released a new service pack for MS SQL 2005 what is Service Pack 3. When I finished the installation of MS SQL 2005 I found myself troubled why the installation of SP3 failed …
In this article we will get to know that how can we recover deleted data if it happens accidently. We really can recover deleted rows if we know the time when data is deleted by using the transaction log.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

635 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