The exception message I receive is straightforward:
SQLDateTime overflow must be between 1/1/1753 12:00:00 AM and 12/31/9999 12:59:59 PM``
This is the VB 2013 code which uses Linq to SQL:
Dim BQCust = (
From c In FinDB.Customers
Where c.Customer_Account = 2000223).FirstOrDefault
FinDB.SubmitChanges(ConflictMode.ContinueOnConflict)
There were no changes made in this example. I have manually checked all 6 of the datetime fields in the BQCust object of type Customer and none match the error condition. All but 1 of them are flagged to allow Nulls. The 1 that is not has a value of #5/14/2016 9:20:03 AM#. Besides, wouldn't they all have to be valid to be included in the SQL DB table that I'm retrieving them from?? So what data is causing this exception?
CREATE TABLE [dbo].[Customers](
[RecIdent] [int] IDENTITY(1,1) NOT NULL,
[Customer Account] [decimal](18, 0) NOT NULL,
[Customer Name] [varchar](255) NULL,
[Company] [varchar](255) NULL,
[Customer Status] [varchar](255) NULL,
[Address 1] [varchar](255) NULL,
[Address 2] [varchar](255) NULL,
[City] [varchar](50) NULL,
[State] [varchar](50) NULL,
[Zip Code] [char](10) NULL,
[County] [varchar](50) NULL,
[Date Created] [datetime] NULL,
[Account Type] [varchar](255) NULL,
[Sales Representative] [varchar](50) NULL,
[Renewal Date] [datetime] NULL,
[Account Manager] [varchar](50) NULL,
[Acceptance Date] [datetime] NULL,
[Voided Date] [datetime] NULL,
[Expiration Date] [datetime] NULL,
[LastChanged] [datetime] NOT NULL CONSTRAINT [DF_Customers_LastChanged] DEFAULT (getdate()),
CONSTRAINT [PK_Customers] PRIMARY KEY CLUSTERED