Search results
Currently the easiest way to connect to your database and perform queries in C# is LinqToSQL. It will save you a lot of headache as compared to using "old-school" ADO connections.
23 wrz 2024 · Learn how to connect to a database in Azure SQL Database or Azure SQL Managed Instance using .NET and C# code. Follow the steps to create a new .NET project, insert code to query the database, and run the code.
10 sie 2024 · Learn how to connect C# to SQL Server database using SqlConnection and SqlCommand objects. See code examples for selecting, inserting, updating and deleting data from the database.
31 sty 2023 · Learn how to perform INSERT, UPDATE, SELECT and DELETE operations using system.data.SqlClient namespace in C#. See code examples, output and SQL syntax for connecting and accessing SQL Server Database.
Learn how to use the SqlConnection class to create and manage a connection to a SQL Server database in C#. See examples, properties, constructors, and remarks for the class.
12 paź 2023 · In this article, I'll create a console application, use ADO.NET SQL data provider classes to connect to a SQL Server database using C#, and access, update, and execute SQL commands using ADO.NET. You can use the same code in your Windows Forms or WPF application.
15 wrz 2021 · Learn how to use DataContext to connect to a database in LINQ to SQL. Refer to these examples to use DataContext to connect to a database and to get rows.