UniSQL
Posted: Fri 31 Oct 2008 15:11
Hopefully an easy question...
How do I write the following code for VB.NET in a way that it will work on multiple platforms? I've studied the documentation and online forums but I keep missing something. I use these examples because the data types between MS SQL and Oracle are different. I want to code universal SQL that will work with both, as well as other platforms we may use in the future.
1. Create a table called tblAccount with these fields:
RecID: integer
AccountNo: text up to 255 characters
OpenDate: date only
LastViewed: date and time (hh:mm:ss)
LastUpdate: date and time, time to include fractions of a second
2. Insert a record with these values:
RecID: 1
AccountNo: "1234A"
OpenDate: 10/21/2008
LastViewed: 10/27/2008 18:27:32
LastUpdate: 10/25/2008 13:22:15.456
I've tried various combinations of code, but all of them had shortcomings so I decided not to put any of it here.
Thanks!
How do I write the following code for VB.NET in a way that it will work on multiple platforms? I've studied the documentation and online forums but I keep missing something. I use these examples because the data types between MS SQL and Oracle are different. I want to code universal SQL that will work with both, as well as other platforms we may use in the future.
1. Create a table called tblAccount with these fields:
RecID: integer
AccountNo: text up to 255 characters
OpenDate: date only
LastViewed: date and time (hh:mm:ss)
LastUpdate: date and time, time to include fractions of a second
2. Insert a record with these values:
RecID: 1
AccountNo: "1234A"
OpenDate: 10/21/2008
LastViewed: 10/27/2008 18:27:32
LastUpdate: 10/25/2008 13:22:15.456
I've tried various combinations of code, but all of them had shortcomings so I decided not to put any of it here.
Thanks!