Richard Mogy
unread,May 12, 2015, 7:59:14 PM5/12/15You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
I have created an sqlcmd batch file. When I execute the batch file, I get the 1> notation and the statements won't execute until a type exit.
However, if I put the statements into an ascii file and put sqlcmd -i statemetfile.txt in the batch file, it runs perfectly.
My statements in the sqlcmd batchfile are:
sqlcmd -q "truncate table ....."
sqlcmd -Q "insert into tablename select * from x"
What am I doing wrong?