Search the web
Sign In
New User? Sign Up
metabase-dev · Metabase Development discussions list
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
MSSQL 7 and timestamps   Message List  
Reply | Forward Message #1114 of 1151 |
Re: [metabase-dev] MSSQL 7 and timestamps

Hello,

On 09/07/2004 11:59 AM, dcpck2004 wrote:
> I've read the other comments about MSSQL and dates/times/timestamps
> not being translated to the ISO format. I need to get this
> functionalilty working. Is a solution in the works or already done?
> Surely it can be done either with the "convert" SQL functions or
> within PHP using regular expression manipulation? What is the best
> way to procede with getting this sorted out?

The Metabase solves that by creating fixed size text fields. Although
text fields may not be suitable for all dates operations they are
sufficient for most (really) portable that you may want to perform
including comparisions and sorting. You may want to double check that by
configuring and running the driver conformance test suite script
driver_test_configuration.php .

This remained that way because the original driver was written to work
with MS SQL server 6, which unlike other databases did not provide a way
to let database clients tell the server to return dates formatted in the
ISO format. I don't know about newer versions.

This solution was preferred to having to guess the current server date
and time format parse it to retrieve dates in ISO format as every other
driver. If newer versions provide new means to assure return correctly
formatted dates without these tricks, it would not be hard to add an
option to the MS SQL driver to use real date and time fields instead of
text fields.

--

Regards,
Manuel Lemos

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/

PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/

Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html



Tue Sep 7, 2004 4:55 pm

mallemos
Offline Offline
Send Email Send Email

Forward
Message #1114 of 1151 |
Expand Messages Author Sort by Date

Hello, I've recently started playing with Metabase as a solution for my PHP database abstraction needs. I'm trying to write a project that needs to be...
dcpck2004
Offline Send Email
Sep 7, 2004
4:39 pm

... this may help: Ini setting for output formatting: ini_set('mssql.datetimeconvert', 'Off'); Query on startup to tell the server how input will have date...
Lukas Smith
dybvandal
Offline Send Email
Sep 7, 2004
4:41 pm

Hello, ... The Metabase solves that by creating fixed size text fields. Although text fields may not be suitable for all dates operations they are sufficient...
Manuel Lemos
mallemos
Offline Send Email
Sep 7, 2004
4:56 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help