Network SQL Database Communication

Asked

Viewed 1,370 times

0

I have an application working perfectly with the BD in a notebook. But I would like to be able to access this database with my application through another device.

So I thought I’d do this network communication. But it turns out that I don’t know anything about networks and I’m not being able to orient myself on this subject nor the care I should have to have someone who doesn’t have access.

Where can I start researching to solve my problem? I need to create a local network through windows, or just by Configuration Manager I can do this communication?

  • Which database? Sqlite? Mysql?

  • SQL Server Express

  • I changed the tags so that anyone with specific knowledge can help you more easily

  • Which version of sql express?

  • Sql Server Express 2016 SP1 - version 13.0.4206.0. I copied this data if it may be relevant. Microsoft SQL Server Management Studio - 14.0.17119.0 Microsoft Analysis Services Client Tools - 14.0.608.142

  • I’m doing a roadmap already put here

Show 1 more comment

1 answer

2


Enable IP connections

In SQL Configuration Manager set up your instance to receive IP connections

Enable remote connections

In Sql Management Studio right-click on the server, properties, connections, enable remote connections as shown below:

inserir a descrição da imagem aqui

Enable Connection by User and Password

In Sql Management Studio right-click on the server, properties, Security, Change connection mode to "Mixed mode", ie Windows user or SQL Server as per image below: inserir a descrição da imagem aqui

Create a user

Create a new user to connect to the server. Open the server database folder, right-click the Logons folder and New Logon, as shown below: inserir a descrição da imagem aqui

With these settings it should be possible to connect remotely via an Instantiative IP connection

In case of a permission error it may be necessary to enable port 1433 (standard SQL port on the firewall and grant permission to this database with this new user. But these settings are simpler and worth trying the connection with what has already been done above.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.