Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 770133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:26:57+00:00 2026-05-14T18:26:57+00:00

I have a TableAdapter filling a DataSet , and for some reason every select

  • 0

I have a TableAdapter filling a DataSet, and for some reason every select query populates my timestamp column with the value 1/1/2000 for every selected row.

I first verified that original values are intact in the database side; most are, though a few rows lost their original value because of update queries performed programmatically before the issue was discovered.

The DataColumn.DataType is DateType, while the PgSQL database column type is timestamp. I recently noticed the issue in a bound DataGridView control, and confirmed this is not related to my data-binding by using the Preview Data option in the Visual Studio DataSet Editor.

After checking properties and types, and even recreating the TableAdapter from scratch, I’m pretty baffled. What I can do to fix the issue and/or diagnose the cause?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:26:58+00:00Added an answer on May 14, 2026 at 6:26 pm

    The framework (eg. DataTable properties) doesn’t know the source type of a table field; there’s simply a DataType property that indicates what it expects to be able to convert the field value into.

    The framework expects a date type for converting to DateTime, so timestamp values need to be converted in the query (ex. SELECT timestamp::date FROM table) or the conversion will fail, giving a value of 1/1/2000.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some designer generated code that I am using to query a dataset.
I have a CheckedComboBoxEdit that's bound to a TableAdapter that populates it with a
I have a Strongly typed Dataset TableAdapter in C#, how do I get a
I have a typed dataset, and where I call TableAdapter.Update(DataRow) , the SQL executed
I am using a dataset and have build my tableAdapter in VWD. In SQL
I have DataSet and TableAdapter for the table in that DataSet. The problem is
I have to get a dynamically created SQL-Query to work with a DataSet. I'm
I have a query in Mysql like the following: SELECT id, nome, sigla FROM
I'm using the VS2010 DataSet designer to make some select queries with optional parameters
We have a Dataset with about 40 TableAdapters on it. These are used everywhere

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.