Answer the question
In order to leave comments, you need to log in
How to make a batch file to select from a SQL database in txt?
Good afternoon, tell me how you can run a SQL script through a batch file so that the results of the selection get into a text file?
Answer the question
In order to leave comments, you need to log in
osql -S [Server] -E -Q "SELECT * FROM [Database].dbo.[Table]" > text
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question