A
A
AleksMo2020-08-11 09:47:00
visual studio
AleksMo, 2020-08-11 09:47:00

How to connect to Microsoft SQL Server using Visual Studio 2019?

How to connect from an account to Microsoft SQL Server using Visual Studio 2019 C# windows forms?
I was able to connect via

cn.ConnectionString = @"Data Source = ALEKS\SQLEXPRESS;Initial Catalog = Test; Integrated Security = True";

I do not understand how to connect from a user account. The condition is that the user first starts a session and connects to the database, the account is bound to the domain.
spoiler
5f323e341c126541667496.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Korotenko, 2020-08-11
@AleksMo

Right click on the shortcut, run as user.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question