TinyTds::Error: String or binary data would be truncated.: EXEC proc_diu_tmp_doc_ent_comp @w_operacao = 2, @w_dent_id = N'201540000000000021222NAC999999', @w_cid_id = 3850, @w_dent_com_ie = N'081271530', @w_dent_com_total_ipi = 0, @w_dent_com_total_icms = 0, @w_dent_com_id_entrada = 0, @w_dent_com_total_vlr = 1.0
--
You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-sqlserver-a...@googlegroups.com.
To post to this group, send email to rails-sqlse...@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-sqlserver-adapter.
For more options, visit https://groups.google.com/d/optout.
Hi Ken,My database for production and development is the same.Only difference is the ruby version:Server is: ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]Vagrant box: ruby 2.1.3p242 (2014-09-19 revision 47630) [x86_64-linux]
On Wed, Feb 11, 2015 at 12:01 PM, Ken Collins <k...@actionmoniker.com> wrote:Andre,Please do a quick google search on “String or binary data would be truncated” tagged with “SQL Server”. There are quite a few hits that talk about this problem. In general, your production DB looks like it has different column definitions for this operation. If you find this is not the case, please do a bit more investigation to see if this is indeed a FreeTDS/TinyTDS issue.My gut says it is not though. But if it is, please open a public issue here https://github.com/rails-sqlserver/tiny_tds/issues vs email. It is important to for you and others so that a larger community can see and help if needed. Cheers!- Ken
On February 11, 2015 at 5:57:21 AM, André Lima (andreli...@gmail.com) wrote:
Hello Friends,--I have this problem only on production. In developing executes normally.TinyTds::Error: String or binary data would be truncated.: EXEC proc_diu_tmp_doc_ent_comp @w_operacao = 2, @w_dent_id = N'201540000000000021222NAC999999', @w_cid_id = 3850, @w_dent_com_ie = N'081271530', @w_dent_com_total_ipi = 0, @w_dent_com_total_icms = 0, @w_dent_com_id_entrada = 0, @w_dent_com_total_vlr = 1.0
Is there any specific adapter setting for production?ThanksAndre Lima
--Atenciosamente,
André Lima
--
You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-sqlserver-a...@googlegroups.com.
To post to this group, send email to rails-sqlse...@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-sqlserver-adapter.
For more options, visit https://groups.google.com/d/optout.
TinyTds::Error: String or binary data would be truncated.: EXEC proc_diu_tmp_doc_ent_comp @w_operacao = 2, @w_dent_id = N'201540000000000021219NAC999999', @w_cid_id = 3850, @w_dent_com_ie = N'081271530', @w_dent_com_total_ipi = 0, @w_dent_com_total_icms = 0, @w_dent_com_id_entrada = 0, @w_dent_com_total_vlr = 10.0
--
You received this message because you are subscribed to the Google Groups "Rails SQLServer Adapter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rails-sqlserver-a...@googlegroups.com.
To post to this group, send email to rails-sqlse...@googlegroups.com.
Visit this group at http://groups.google.com/group/rails-sqlserver-adapter.
For more options, visit https://groups.google.com/d/optout.