How I can delete data from SQL Server table using batch.
I’m using SQL Server 2008 R2.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Do you mean configuring your sql script as batch job? if yes, then write your sql query in a script like
Create a batch file
.batand call your sql script in there likeFor more options on
sqlcmd: run commandsqlcmd /?in command promptConfigure this
.batfile to run in schedule as per your needIf you want to know how to schedule task in windows task scheduler then take a look @ http://support.microsoft.com/kb/308569 (This is for WINXP).