0

I am new at SQL Servers. Don't know how to connect to server. Can anyone tell me how can I create new server for developing C# desktop application with database.

2

GSerg
  • 76,472
  • 17
  • 159
  • 346
ALi Raza Darr
  • 149
  • 1
  • 1
  • 9

3 Answers3

0

For your local instance use:

 .

and choose Windows Authentication so you don't have to enter SQL credentials.

hyankov
  • 4,049
  • 1
  • 29
  • 46
0

There is one easy way to Browse servers in your system

open your Connect to server Dialog box, in server name drop down you will find Browse for more option at last. See This image

Now, You will have two tabs, Local server and Network server.

In Local server, you can see your available MS SQL servers.

Bharat
  • 5,869
  • 4
  • 38
  • 58
0

This is the best place to start.

https://www.connectionstrings.com/

For your specific scenario, you want this.

https://www.connectionstrings.com/sql-server/

From there, you have several options.

Standard Security
Server=myServerAddress;Database=myDataBase;User Id=myUsername;
Password=myPassword;

OR

Trusted Connection
Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;

etc...

ASH
  • 20,759
  • 19
  • 87
  • 200