Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE: SQL error -3050 = Invalid timestamp format:INTERNAL: msg#00175

db.maxdb

Subject: RE: SQL error -3050 = Invalid timestamp format:INTERNAL

Hi Jesus,

Jesus Barreto [mailto:jbarreto@xxxxxxxxxx] wrote:
>
> I have a problem when run REPMCLI with file that content
> insert statement, the
> problem is timestamp field that don't accept timestamp format ISO
>
> in database I get a table like this
>
> XXX_TABLE(TABLEID INTEGER , TIMESTAMP_FIELD TIMESTAMP)
>
> the file content is:
> INSERT INTO XXX_TABLE(TABLEID, TIMESTAMP_FIELD) values(100,
> '2004-03-06
> 00:29:25.000000')
> //
> .
> .
> .
> when i execute this:
> repmcli -u user,password -d database_name -n localhost -b fileName
>
> i get the next error:
>
> Error during execution
> -->-25010
> SQL error -3050 = Invalid timestamp format:INTERNAL (error
> position: 248[line: 1, col: 248])
>
> I try to set TIMESTANP to ISO, with
> SET TIMESTAMP ISO
> //
> but I get the same error
>
With 'SET TIMESTAMP ISO' you set the format for Loader commands not for
simple SQL commands executed with the Loader.
The solution depends on the version of the Loader you use.
1. Solution that works with every version
Replace the ISO timestamp values in your SQL commands with INTERNAL
timestamp values. This is surely not what you'd like to do, I know :-)

2. Solution that works starting with Loader version 7.5.00.15
Execute the command 'SET FORMAT ISO'. This changes the format for time
and date and timestamp values in SQL commands executed with the Loader
to the one required.

HTH.
Regards,
Steffen
--
Steffen Schildberg
SAP DB Team
SAP Labs Berlin

--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo