Solved

How to insert a null date into Paradox 5 date field.

Posted on 2008-10-15
2
816 Views
Last Modified: 2013-12-17
I have the task of importing data retrieved from a Paradox 5 table into another database with the exact table. Now the problem is with a Date field in this table is set to 00/00/0000 (its a delete date). The BDE has no problems creating this record with the host application but now the issue for me is that using C# with an OLEdbConnection and issuing queries such as INSERT INTO test VALUES(1,'FirstName,'LastName','00/00/0000') gives me a 'Type mismatch' error.
I do not want to list the field names in the query.

Is there any way to do this in a query?

Thanks in advance.

0
Comment
Question by:ExanSoftware
2 Comments
 
LVL 5

Accepted Solution

by:
PaulKeating earned 500 total points
ID: 22726050
INSERT INTO test VALUES(1,'FirstName,'LastName',NULL)
0
 

Author Closing Comment

by:ExanSoftware
ID: 31506503
Thanks, i had tried that but was not working for me until now. Paradox is very finicky. Nothing but a headache to be honest...
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Occasionally there is a need to clean table columns, especially if you have inherited legacy data. There are obviously many ways to accomplish that, including elaborate UPDATE queries with anywhere from one to numerous REPLACE functions (even within…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question