Insert on SQL Server
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-19 10:48 PM
I'm facing a serious issue, and I depends to this to keep in my job? Please someone can Help?
I'm trying to input some datas in an SQL table, but its nor working. Follows below my query:
"insert
into dbo.dbP4FResultado (cpf,situacaoCadastral,dataHoraComprovante,protocolo,document,status,mensagemFinal,enviado,dob,fullName,leveshtein,jarow)
values ('"&[CPF]&"','"&[Situação Cadastral]&"','"&[tmstp]&"','"&[Protocolo]&"','"&[Binario PDF]&"','"&[processado] &"','"&[mensagemFinal]&"','0',''"&[Data de Nascimento]&"','"&[Nome]&"','"&[leveshtein]&"','"&[jarow]&"');"
For god sake, someone can help me?
Thank you very much.
------------------------------
Jeferson Romão
Desenvolvedor
Lyo Solutions
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
06-11-19 11:21 PM
Could you please let us know what issue you are getting while inserting the data into the table? If there is any SQL error, could you please share the same?
Regards
Karan Sareen
------------------------------
Karan Sareen
Solution Support Engineer
Blueprism
Australia/Sydney
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-11-19 10:11 AM
Hi,
Two suggestions:
1. Error in the SQL you Posted
Part of the insert has an extra inverted comma, on line 25 in the attached image. when you are inserting the value: [Data de Nascimento].
Look at the image attached, using a IDE or some application to illustrate these kinds of problems can be very useful. I am using MS SQL Server.
But NotePad++ is an excellent option to help with this as you can select from many languages and simple errors like this will appear immediately.
If this does not work, please post the actual error you are getting.
2. Confirm all the data types are correct
Make sure the data being entered in each column of the SQL table matches the datatype in the Blue Prism. I have no way of seeing either your Blue Prism datatypes or the MS SQL table.
Also good luck with the job thing. Look at a few free courses on Udemy or Codecademy.
Kind regards,
Ben
Also used Google translate to help because you might be stressing out and English is not your first language but generally I believe this forum is for English only.
Em português (google translate), há uma vírgula invertida extra onde você está inserindo o valor "[Data de Nascimento]". Exclua a vírgula invertida extra e a consulta SQL estará correta. Ainda pode haver outros problemas, como tipos de dados que não estão corretos.
------------------------------
Ben Kirimlidis
RPA Developer and Data Analyst
PTSB
Europe/London
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-11-19 01:49 PM
------------------------------
Derek Turner
Applications Advisor
Celestica
America/Toronto
------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
07-11-19 06:23 PM
I'd like to thank you all that send some answer! My issue was solved.
Thank you!!!
------------------------------
Jeferson Romão
Desenvolvedor
Lyo Solutions
------------------------------
