H
H
heavybrain2019-08-08 11:40:54
cmd/bat
heavybrain, 2019-08-08 11:40:54

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

1 answer(s)
K
Konstantin Tsvetkov, 2019-08-08
@heavybrain

osql -S [Server] -E -Q "SELECT * FROM [Database].dbo.[Table]" > text

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question