Usuário com melhor resposta
Unclosed Quotation

Pergunta
-
Respostas
Todas as Respostas
-
-
Estou tentado executar esta atualização em ADO mas recebo a msg de erro:
Unclosed quotation mark after caracter string ".
Se eu executo no management do SQL 2005 funciona corretamente, mas quando executo via ADO dá erro.
"Update Transito.dbo.CONHECIMENTO_EMBARQUE Set nuce = 'GAL0805424',tipo = 'AEREO',DatEm = '20070301',ValFre = 0.00000000,CodMof = 'USD',ValSeg = 55.64000000,CodMos = 'USD DOLLAR',DataCheg = '20070301',DatDesen = '20070306',Urge = 'S',Embar = 'GAL0805424',Cia = 'PLUS CARGO',CodDesp = '10185',DatDesp = '20070305',DatDemu = '',Destino = '',InfoDes = '02/03 - ref env p/ mercantil - 05/03 - mantra ok, ag DI - ag canal',Obs = 'VACUO / FLANGE',CodRef = '03.027/07',CodForPag = ' ',DataPrev = '20070312',DataInfo = '20070308',ValFreOrigem = 9100.00000000,NumFatFre = '58393651',Status = '',ValTaxaFatAbxMin = 0,Transb_Porto = '',Transb_Chegada = '',Transb_Saida = '',CheBra_Previsao = '20070304',CheBra_Chegada = '20070304',CheBra_Atracacao = '',CheBra_Remocao = '',Pagtos_CorCanal = 'Verde',Pagtos_NomeFiscal = '',Pagtos_DistribFiscal = '',Pagtos_ConferFiscal = '',Desemb_Incineracao = '',Desemb_Fumigacao = '',Transp_Carregto = '20070306',Transp_Saida = '20070307',Calculou_Previ
sao = '(12)',Planejada_Chegada = '20070309',PBT_CodigoOrigem = 2496,PBT_CodigoDestino = 1058,NomeOrigem = 'BOSTON',NomeDestino = 'GUARULHOS' Where NumPasta = 9191" -
se vc executar o update direto no banco funciona?
Code SnippetUpdate
Transito.dbo.CONHECIMENTO_EMBARQUESet
nuce = 'GAL0805424',tipo
= 'AEREO',DatEm = '20070301',ValFre
= 0.00000000,CodMof
= 'USD',ValSeg
= 55.64000000,CodMos = 'USD DOLLAR',
DataCheg = '20070301',DatDesen = '20070306',Urge = 'S',Embar
= 'GAL0805424',Cia = 'PLUS CARGO',CodDesp = '10185',DatDesp = '20070305',DatDemu = '',Destino
= '',InfoDes = '02/03 - ref env p/ mercantil - 05/03 - mantra ok, ag DI - ag canal',Obs
= 'VACUO / FLANGE',CodRef = '03.027/07',CodForPag = ' ',DataPrev
= '20070312',DataInfo = '20070308',ValFreOrigem = 9100.00000000,NumFatFre
= '58393651',Status = '',ValTaxaFatAbxMin = 0,Transb_Porto = '',Transb_Chegada
= '',Transb_Saida = '',CheBra_Previsao = '20070304',CheBra_Chegada
= '20070304',CheBra_Atracacao = '',CheBra_Remocao = '',Pagtos_CorCanal
= 'Verde',Pagtos_NomeFiscal = '',Pagtos_DistribFiscal = '',Pagtos_ConferFiscal
= '',Desemb_Incineracao = '',Desemb_Fumigacao = '',Transp_Carregto
= '20070306',Transp_Saida = '20070307',Calculou_Previsao
= '(12)',Planejada_Chegada = '20070309',PBT_CodigoOrigem
= 2496,PBT_CodigoDestino = 1058,NomeOrigem = 'BOSTON',NomeDestino
= 'GUARULHOS' Where NumPasta = 9191 -
-
-
-