Where can I find SQLCMD?

Hi, all here, where is the SQLCMD (to run sql scripts). I mean I did not find SQLCMD on the SQL Server tho.

Thanks a lot in advance for any help.




Answer this question

Where can I find SQLCMD?

  • LuisLopezCarrete

    Hi, for me its located in

    C:\Program Files\Microsoft SQL Server\90\Tools\Binn

    HTH, Jens Suessmeyer.


  • Shon

    Hi, Jens, thanks a lot. Found it in the folder. But I cant run sql scrit in it tho. Could you please tell me how can I run any sql script in it (I have my database .mdf and .ldf files available, I wanna attach the database to the SQL Server instance through this command window)

    Thanks a lot.



  • Kevin Feasey

    Hi, Jens, thanks a lot.

  • Matt150279

    Put the database files in the appropiate folders where you want to store these, then use the Sp_Attachdb procedure to attach the databases. More information about the syntax can be found in the BOL. If you have more questions on this or need a hand on this, just tell us.

    HTH, Jens Suessmeyer.

    ---
    http://www.sqlserver2005.de
    ---

  • Where can I find SQLCMD?