0

I've created a SQL Server database to keep track of transactions that will be handled by an application (Windows service) which connects to DB with a Login user.

When I'm trying to connect to the DB, the server replies with

Duplicate connection name

I've tried to connect to the database using SQL Server Management Studio and it works, but from the app it doesn't.

Does anyone know any solution for this?

2
  • Can you show your connection string? Commented May 9, 2017 at 16:43
  • The connection string is: EXEC SQL CONNECT TO :gHostConnect USER $integrated; Commented May 12, 2017 at 12:28

1 Answer 1

1

The problem was caused by the fact that the user must be mapped to database role membership as db_owner. By setting the role, the connection problem was fixed.

image: set database role membership to db_owner in SQL Server Management Studio

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.