About 549,000 results
Open links in new tab
  1. c# - SqlDataAdapter not passing data to datatable using fill

    Mar 10, 2022 · ISSUE: When the data table is to be filled via the SqlDataAdapter.Fill method, no data is passed to the data table, thus triggering the catch portion. ATTEMPTED SOLUTIONS: Changed platform targets between x86 and x64; both fail (application is x86 native).

  2. c# - How to fill DataTable with SQL Table - Stack Overflow

    One or more rows contain values violating non-null, unique, or foreign-key constraints" exception. After I started to use DataAdapter.Fill (DataTable) type of Query and now no exception. You can make method which return the datatable of given sql …

  3. c# - SqlDataAdapter.Fill (DataTable) not filling DataTable - Stack Overflow

    Jun 7, 2013 · I'm currently trying to retrieve records from a database in a WPF application written in C#. I'm using the SQL data reader and it appears to connect fine but the following is giving me a NullReferenceException: if (isString == true) SqlDataAdapter adapter = new SqlDataAdapter("SELECT PartNumber FROM LoanerItems", loanersConnection);

  4. DataAdapter.Fill Method (System.Data.Common) | Microsoft Learn

    When the SELECT statement used to populate the DataSet returns multiple results, such as a batch SQL statements, if one of the results contains an error, all subsequent results are skipped and not added to the DataSet. You can use the Fill method multiple times on the same DataTable.

  5. SqlDataAdapter.Fill (DataTable) does not detect re-raised error

    Dec 27, 2022 · You want the result set in a DataTable, and you use SqlDataAdapter.Fill(DataTable). Now, imagine that during that final SELECT, there is an error during execution. That could be a conversion error or an arithmetic error like overflow.

  6. DataAdapter.Fill (DataTable) Not Working - Microsoft Q&A

    Aug 7, 2024 · I'd like to try returning to System.Data.SqlClient. I think most versions are deprecated as unsecure, but maybe 4.86 is okay? But when I install 4.86, it complains that it needs this DLL:

  7. C# SqlDataAdapter.Fill giving error about data conversion …

    Aug 20, 2010 · I'm trying to fill a datatable using a SqlDataAdapter in C#. I'm not very familiar with the objects, and am basically working off a template of someone else's code to try to figure out how it works. Here's the basic form.

  8. DbDataAdapter.Fill Method (System.Data.Common) | Microsoft …

    If an error or an exception is encountered while populating the data tables, rows added prior to the occurrence of the error remain in the data tables. The remainder of the operation is aborted. If a command does not return any rows, no tables are added to the DataSet, and no exception is …

  9. Error when dataAdaptor fills dataTable - C# Developer …

    Aug 10, 2019 · It appears that the error happens when the dataAdaptor tries to fill the dataTable but I don't know why. The error code "DB_SEC_E_AUTH_FAILED" suggests a security related error -- specifically an authentication related error.

  10. Retry not working with SqlDataAdapter.Fill(table) (.net ... - GitHub

    Apr 25, 2022 · Hence, there are 2 approaches to add RetryLogicProvider support to SqlDataAdapter.Fill in MDS. Use the example above and make a Fill(DataTabe, SqlDataReader) method in SqlDataAdapter; Use the new keyword to hide/"override" the 5 public Fill methods from DbDataAdapter; In that case, I'll remove my PR to update the docs.

  11. Some results have been removed
Refresh