.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Code Snippets >> SQL Query >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Running script file through command propmt

Posted By:Maverick       Posted Date: March 21, 2011    Points: 40    Category: SQL Query    URL: http://www.dotnetspark.com  

the two commands will run the .sql file from the windows + run

Type the following command by pressing windows+R

For SQL server

sqlcmd -i c:\.sql -S -U -P sasasasa -d

Press enter

For Oracle

sqlplus /@Hoststring" "filepath"

Press enter


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend