0

I have a SQL query which is running by script while I am publishing the code in .net,

My problem is that, I need a SQL query to find the directory of same script.

Please help me to do so.

3
  • There is not enough information for anyone to be able to help you. What RDBMS are we talking about? What kind of script are you executing, and how? Commented Feb 29, 2016 at 8:39
  • @ninesided I am using MS SQL server as RDBMS. SQL file is running while I am publishing an XML script in the .NetFramework. IS it enough? Commented Feb 29, 2016 at 8:47
  • How is the SQL query kicked off? Commented Feb 29, 2016 at 9:21

1 Answer 1

2

I don't think that the SQL Server client cares where the script is being executed from. Your best bet would be to figure out what the path of the script is before you execute it and pass it in as a parameter, or embed it in the script itself.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.