title: How to Find Current Directory of itself with a TSQL Script File In SQL Server
body: <p>I Think That My Question Is Simple.
  How  Can I Find That My Query Is Running From Where
  ( Where is The Location of the Script File itself ) ?</p>
  
  <p>Edit :</p>
  
  <p>Thank You For Your Answer.
  I Need To Import a XML File Using my TSQL Script File And i want to Keep Them Together,
  so Wherever Someone try to run the TSQL script file, it must knows the current directory of itself to know where is the XML file and then import it. Thank Again ! </p>