About 1,050,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. Connection string syntax - ADO.NET Provider for SQL Server

    Nov 19, 2024 · You can use the ConnectionString property to get or set a connection string for a SQL Server database. The connection string keywords also map to properties in the SqlConnectionStringBuilder.

  4. c# - How to get the connection String from a database - Stack Overflow

    May 7, 2012 · Open SQL Server Management Studio and run following query. You will get connection string: 'data source=' + @@servername +. ';initial catalog=' + db_name() +. case type_desc. when 'WINDOWS_LOGIN' . then ';trusted_connection=true' else.

  5. 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.

  6. SqlConnectionStringBuilder Class (Microsoft.Data.SqlClient)

    Provides a simple way to create and manage the contents of connection strings used by the SqlConnection class. The following console application builds connection strings for a SQL Server database.

  7. SQL server connection string examples in C# & XML

    Jul 15, 2024 · In this article, I have provided various examples of SQL server connection string in C#, ASP.NET Web.Config file in XML format and MySQL connection string in C#.

  8. Connection String Syntax - ADO.NET | Microsoft Learn

    Aug 23, 2024 · You can use the ConnectionString property to get or set a connection string for a SQL Server database. If you need to connect to an earlier version of SQL Server, you must use the .NET Framework Data Provider for OleDb (System.Data.OleDb). Most connection string keywords also map to properties in the SqlConnectionStringBuilder. Important.

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

    Aug 7, 2024 · When working with C# and SQL Server, establishing a connection between your application and the database is essential. In this guide, we will walk you through the process of creating a C# SQL Server connection string, sharing best practices and examples along the way.

  10. Connection string using SQL Server authentication in C#

    This is the connection string which usually works for me in C# asp.net, however: Server=[SERVER];Database=[DATABASE];Uid=[USER];Pwd=[PASSWORD] (note how it is different than yours: Pwd= as opposed to Password= )

  11. Some results have been removed
Refresh