Results 1 to 5 of 5

Thread: Error converting data type DBTYPE_DBTIMESTAMP to datetime.

Threaded View

  1. #1
    Join Date
    Jul 2008
    Posts
    2

    Error converting data type DBTYPE_DBTIMESTAMP to datetime.

    Hi,
    I would like to migrate an oledb database to sql 2005 database
    While converting i got "Error converting data type DBTYPE_DBTIMESTAMP to datetime."
    I have severl colones that i need to convert them to datetime at the same time in the same querry.

    To begin i hve tried this but it's not working :
    Code:
    select date_clotu FROM OPENROWSET(
       'MSDASQL',
       'Driver={Microsoft dBase Driver (*.dbf)};DBQ=C:\Documents and Settings\oledb',
       'Select TO_CHAR(date_clotu) FormattedDate  from SQDI')where isdate(FormattedDate)=0 ;
    Can u help me plz ...
    Last edited by skystar; 07-04-2008 at 04:16 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •