SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Error converting data type DBTYPE_DBTIMESTAMP to datetime


Error converting data type DBTYPE_DBTIMESTAMP to datetime

Author
Message
pavargasq
pavargasq
Valued Member
Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)Valued Member (62 reputation)

Group: General Forum Members
Points: 62 Visits: 135
Good afternoon:

There is a process that somestimes fails with the error:

Error converting data type DBTYPE_DBTIMESTAMP to datetime

This error usually happnes when you import data from another sources of data like oracle.
The weird thing is that i restart the instance in sqlserver 2000 and execute once again the procedure and it works OK.

Thr problem is i cannot restart the instance everyday because there are other procedures running, and i think this is a temporary solution. but i cannot find out the "root of the problem.". dont know if it is a sqlserver problem.

is there any better solution to tackle the problem from the root?

This a part of the code
PRO_ETL_CARGUE_PS_CATEGORIAS_CARGO_TD 2900, 511188, ''



INSERT INTO DETALLE_PS_CATEGORIAS_CARGO_TD (
COD_CATEGORIA

,MIN_CARGO_REQUERIDO
,ID_CATEGORIA
,DES_CATEGORIA
,FEC_CREACION
,USU_CREACION
,MIN_CARGO_REQUERIDO
,ID_CATEGORIA
,FEC_MODIFICACION
,USU_MODIFICACION
FROM OPENQUERY (SCL,'SELECT
TD.COD_CATEGORIA
,TD.ID_CATEGORIA
,TD.DES_CATEGORIA

from PS_CATEGORIAS_CARGO_TD TD')

(1 row(s) affected)
Server: Msg 8114, Level 16, State 8, Line 1
Error converting data type DBTYPE_DBTIMESTAMP to datetime.

Id appreciate your help
mark johnson-159789
mark johnson-159789
Valued Member
Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)Valued Member (50 reputation)

Group: General Forum Members
Points: 50 Visits: 103
Did you receive any ideas on this issue?

Mark Johnson
MCP, MCTS Sql Server 2005,MCTS Sql Server 2008, OCP
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search