Syed Syed - 3 months ago 58
C# Question

C# connection with SQL Server

I am writing a desktop application on c# using .NET and will be using a SQL Server database.

How to connect to SQL Server with .net?

When my whole job is completed how will I be able to make a installation package for users such that they don't need to install SQL Server or .net to run the desktop application?

New to c# .... help me out guyz


You can do it in Visual Studio.

  • You need to install SQL Server Data Tools in Visual Studio
  • View -> SQL Server Object Explorer
  • Right-click on SQL Server -> Add SQL Server
  • Fill informations about SQL Database and Connect