473,387 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

MS SQL server and (missing) ANSI DATE-datatype

sub: MS SQL server and (missing) ANSI DATE-datatype

I’m working at a company who has developed a large client/server application in Delphi 6, with Interbase as the DB-server (both Borland products). As data-access technology we use dbExpress (from Borland) because it is claimed to be database-independent. Now we have a new customer who wants to use MS SQL-server and I investigated if this was possible. Unfortunately my conclusion is that it is not (at least not for us), as I’ll explain below. If anyone thinks I’m wrong, and so has a solution, I’d be very pleased to hear it.

First let me repeat the mail I wrote to Borland:

-- We have a MS SQL Server database and we use dbExpress to connect to it (with driver dbexpmss.dll, vendorLib OleDb). When we want to use a query and it has a date-time parameter, we get the error:
“EdatabaseError: dbExpress Error: Invalid Field Type.”
I found a work-around, which in brief says: use TSQLTimeStamp in stead of TdateTime (see http://bdn1.borland.com/article/0,1410,30078,00.html), and indeed this works. The only problem is that we already have a large application which contains a lot of these kind of parameterized queries, so it would take a lot of time to re-program. Our application works fine with Interbase and Firebird as database, but now we have a new customer who wants to use MS SQL-server. When we started building our application, we chose for dbExpress because it claimed to be database-independent, but apparently it’s not. In another similar bug-report (see report 11090) I read that Borland gave this bug the status ‘closed’, but to really forfill the claim about database-independence, this bug should be fixed. –

Although Borland didnt’s answer me (yet), I think they consider this a non-issue (for them) because the work-around they suggest is imposed by Microsoft, because SQL-Server does not comply to the SQL ANSI-standards regarding date/time-values: Interbase has a DATE-datatype (as prescribed by ANSI), but SQL-Server has not, it only has DATETIME (in ANSI this is called TIMESTAMP).
I read somewhere (in an article of 2003) that the next version of SQL-Server (code-name Yukon) would be extended with DATE-type, but in SQL-Server 2005 I didn’t see it yet.
Why can’t Microsoft just comply to ANSI-standards..
Nov 23 '06 #1
0 3011

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: STB | last post by:
Salve Ragazzi!!! ho un problema che non riesco a risolvere e spero di riuscirci con il vostro aiuto... dunque.. ho un file csv tipo questo ...
9
by: wiredog | last post by:
I am struggling rewriting my query from MS Access' IIF, Then to SQL Servers TSQL language. I am hoping some one can give me some guidance. I believe I have the first portion of the query correct...
7
by: aaj | last post by:
Hi all We had a small problem when an ASP web page had a missing 'where' statement and updated all the records in the table. Luckily we could retrieve all the data from the backups. How do...
5
by: seapearl1023 | last post by:
Hi, My question is if MS SQL Server 2000 Standard version is SQL99 Compliant? How about MS SQL Server 2000 Enterprise version, MS SQL Server 6.5/7.0? Thanks. Hai-Chu
2
by: Frank | last post by:
The DB in question contains daily stock transactions keyed by ticker (symbol) and date. Unfortunately all dates do not exist for all ticker symbols. To assist the process, there are two...
2
by: Jimbo | last post by:
Does the date function Date()..not work on Windows 200 Server? On windows 2000 professional I have a text box with a control source of Date()..its shows up fine...but on a windows 2000 server...
17
by: Justin Emlay | last post by:
I'm hopping someone can help me out on a payroll project I need to implement. To start we are dealing with payroll periods. So we are dealing with an exact 10 days (Monday - Friday, 2 weeks). ...
4
by: ShastriX | last post by:
Getting a weird error while trying out a query from Access 2003 on a SQL Server 2005 table. Want to compute the amount of leave taken by an emp during the year. Since an emp might be off for...
1
by: Mike Hofer | last post by:
I really need some help, and I'd appreciate any that you folks can provide. The ASP.NET application in question uses version 1.1 of the .NET Framework. All of the pages use a common base class...
41
by: jaysome | last post by:
It's been almost eight years since ISO/IEC approved ISO/IEC 9899:1999. Does anyone know if ANSI has approved it? A Google search shows arguably confusing answers as to whether ANSI has...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.