1

Isit possible to use app.config file in Visual C# Database Sql Server Projects like any other winforms or webform projects.

Thanks in advance Judes

1 Answer 1

1

Not really, no.

You're effectively creating a class library project. Although you can add app.config files to such projects (normal ones, rather than SQL CLR ones), they're not actually usable at runtime (without jumping through a lot of hoops) - only the config file associated with the EXE project gets used.

Added to which, in this case, your code will actually be running inside the SQL Server process.

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.