on 04-13-2012 5:46 PM
Hola a todos
Tengo la sisguiente consulta en una busqueda formateada, la cual estaba fucnionado bien , pero de rependte ya no lo hace y me envia un error que dice
1([Microsoft][SQL SERVER NATIVE CLIENT 10.0][SQL SERVER]The conversion of a nvarchar type data to datatime data result in an out of range value 'Contratos de Servicio' (OCRT)
declare @y int;
declare @m int;
declare @d int;
set @y = (SELECT YEAR(( SELECT $[$10.1.0])))
set @m = (SELECT MONTH(( SELECT $[$10.1.0])))
set @d = (SELECT DAY(( SELECT $[$10.1.0])))
select dateadd(yy,(@y-1900),0) + dateadd(mm,@m-1,0) + @d-1
La ejecuto en otro ambiente y el error es
1). [Microsoft][SQL Server Native Client 10.0][SQL Server]Conversion failed when converting date and/or time from character string. 'Acuerdo global' (OOAT))
La busqueda esta en el campo de Fecha de documento de la orden de venta
Saludos
Alguna idea?
Saludos
Encontre la falla,
es un error de formto de fechas debido a la intercalacion, motivo por el cual se programo de esta manera, se migro de SQL del 2005 a 2008 y se corrigio el collation , y pude regresar a la prgramacion normal, use un select getdate()
Saludos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
8 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.