DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
Command To Execute Script File From Command Prompt
// command to execute script file from command prompt
script for SQL server sqlcmd -i c:\<scriptfilepath>.sql -S <yoursevername> -U <userId> -P sasasasa -d <yourdatabase> Press enter script for Oracle sqlplus <username>/<password>@Hoststring" "scriptfilepath"





