About 6,210,000 results
Open links in new tab
  1. How to retrieve data from a SQL Server database in C#?

    I made my connectivity to my SQL Server using this code: SqlConnection con = new SqlConnection("Data Source = .; Initial Catalog = domain; Integrated Security = True"); …

  2. Data Fetching From Microsoft SQL To C# - C# Corner

    This article is about how to fetch data from Microsoft SQL to C#. Microsoft SQL has basic functionality to retrieve data as required by other applications. It can be used as a backend to …

  3. How to Retrieve Data from SQL Server into C#

    Mar 7, 2018 · SqlDataAdapter – The Data Adapter provides the methods for actually moving data back and forth between SQL Server over a SqlConnection object. It can work with multiple …

  4. Querying SQL Server Tables from .NET

    Nov 14, 2018 · In this tip, we are going to see how to query SQL Server tables from .NET, get the results, and process them. More specifically, we are going to continue and further develop the …

  5. SQL Server Table Data to C# Objects: A Guide for Developers

    May 6, 2019 · Retrieving data: To retrieve data from your table, you can use the SELECT statement. For example, if you want to retrieve all the rows from the "students" table, you can …

  6. Write code to retrieve data from SQL database in C# asp net

    Aug 18, 2024 · Here are the steps to connect SQL database server, access database and retrieve data from a table programmatically in C# asp net. Steps: Create an object of SqlConnection …

  7. c# - Select query to get data from SQL Server - Stack Overflow

    Jul 15, 2015 · SqlCommand.ExecuteScalar Method Executes a Transact-SQL statement against the connection and returns the number of rows affected. So to get no. of statements returned …

  8. how to fetch data from database with async Task in c#?

    Feb 1, 2024 · I have a code that read data from sql server db and show it in the datagridview. How can I use async await task to do it? DAL code: public static DataTable GetAll() { using …

  9. How to Add, save & retrieve data in SQL Server using C#

    Aug 5, 2010 · Video #1: Saving to SQL Server using C# and ADO.NET Objects used: SqlConnectionString, SqlDataAdapter, Text Boxes, Button - click event. Video #2: Retrieving …

  10. How To Use LINQ To SQL For Retrieving Data From SQL Server ... - C#

    Jun 14, 2024 · This article explores LINQ to SQL, an ORM framework in .NET for mapping database tables to .NET classes. It covers querying operations like Select, Insert, Update, and …

  11. Some results have been removed