About 455,000 results
Open links in new tab
  1. c# - How can I set an SQL Server connection string? - Stack Overflow

    May 8, 2017 · Actually you can use the SqlConnectionStringBuilder class to build your connection string. To build the connection string, you need to instantiate an object from that SqlConnectionStringBuilder and set their properties with the parameters you use to …

  2. SQL Server connection strings - ConnectionStrings.com

    Connection strings for SQL Server. Connect using Microsoft.Data.SqlClient, SqlConnection, MSOLEDBSQL, SQLNCLI11 OLEDB, SQLNCLI10 OLEDB, SQLNCLI OLEDB.

  3. How do I connect to a SQL database from C#? - Stack Overflow

    To connect to SQL Server Express you need nothing but System.Data, which is a standard .NET assembly. Just use SqlXXX classes and you'll be done.

  4. Examples for SQL Server Connection String in C#

    Feb 22, 2021 · In this article, I have provided various samples of using SQL server connection string in C#, to connect asp.net web applications, console or using SQL server connection string using integrated security.

  5. Connection string syntax - ADO.NET Provider for SQL Server

    Nov 19, 2024 · Learn about syntax of connection strings in the Microsoft SqlClient Data Provider for SQL Server. The syntax for each provider is documented in its ConnectionString property.

  6. SQL Server Connection Strings Reference Guide

    Jan 6, 2025 · Learn how to define a connection string to connect to SQL Server using SqlClient, OLDEDB and ODBC connections for .NET.

  7. Sql

    Gets or sets the string used to open a SQL Server database. The connection string that includes the source database name, and other parameters needed to establish the initial connection. The default value is an empty string. An invalid connection string argument has been supplied, or a required connection string argument has not been supplied.

  8. C# Database Connection: How to connect SQL Server (Example)

    Dec 30, 2024 · SqlCommand in C# allow the user to query and send the commands to the database. SQL command is specified by the SQL connection object. Two methods are used, ExecuteReader method for results of query and ExecuteNonQuery for insert, Update, and delete commands. It is the method that is best for the different commands.

  9. How to Establish a C# SQL Server Connection String - Web Dev …

    Aug 7, 2024 · To create a connection string in C# for SQL Server, you can use the SqlConnection class provided by ADO.NET. Here is a basic example of how you can set up a connection string: class Program . static void Main() . string connectionString = "Data Source=YourServerAddress;Initial Catalog=YourDatabase;Integrated Security=True;";

  10. c# - Setting connection string with username and password in …

    Nov 16, 2022 · When I run the application, it throws an error. "ApplicationInsights": { "InstrumentationKey": "" }, "ConnectionStrings": { "DefaultConnection": "Server=myserver;Database=mydatabase;userid=id;password=mypwd" }, "Logging": { "IncludeScopes": false, "LogLevel": { "Default": "Debug", …

  11. Some results have been removed
Refresh