Posts OSQL
Post
Cancel

OSQL

This article describes how you can execute queries by the default  SQL Server OSQL command line.

http://metrix.fcny.org/wiki/display/dev/How+to+execute+a+.SQL+script+using+OSQL

samples :

osql -S server -U user -P password -d dbase -Q “delete from orders”

1
osql -S server -U user -P password -d dbase -n-1 -i "c:\SQLFileNameAndPath.sql"

origin - http://www.pipiscrew.com/?p=294 osql

This post is licensed under CC BY 4.0 by the author.
Contents

Trending Tags