Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dunbest question ever.... 1

Status
Not open for further replies.

simian336

Programmer
Sep 16, 2009
723
US
I have wondered this for sometime but could never find the answer on my own.... What do the numbers and > signify when running a query from command line?

Thanks

Simi

Example

C:\>osql -U sa -P 1234 -i D:\all.sql
1> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 1> 2> 3> 4> 5> 6> 7> 8> 1> 2> 3> 4> 5> (8
5165 rows affected)
1> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> (85165 rows affected)
1> 2> 3> 4> 5> (60802 rows affected)
1> 2> 3> 4> 5> (60802 rows affected)
1> 2> 3> 4> 5> 6> 7> 8> 9> 10> 11> 12> 13> 14> 15> 16> 17> 18> 19> 20> 21> 22> 2
3> 24> 25> 26> 27> 28> 29> 30> 31> 32> 33> 34> 35> 36> 37> 38> 39> 40> 41> 42> (
0 rows affected)
 
See this page for osql syntax
Notice the -i syntax which allows you to specify an input file full of commands to exectue.

See this page for the #> explanation
The osql is being run in interactive mode, so the #> is an indicator it is waiting for a command from the user...but in this case the input was coming from the input file.

=======================================
People think it must be fun to be a super genius, but they don't realize how hard it is to put up with all the idiots in the world. (Calvin from Calvin And Hobbs)

Robert L. Johnson III
CCNA, CCDA, MCSA, CNA, Net+, A+, CHDP
C#.NET Programmer
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top