Error while using sqlwrite - String data, right truncation
Mostrar comentarios más antiguos
Hello, I am using the database toolbox, and I want to add a database to an already existing database on Microsoft SQL server.
However, I get this error:
Error using database.odbc.connection/sqlwrite (line 214)
ODBC JDBC/ODBC Error: ODBC Driver Error: [Microsoft][SQL Server Native Client 11.0]String data, right truncation.
Error in write2db (line 15)
sqlwrite(Conn, TableName, Table)
FYI, the number of columns are the same. I don't know if it is due to heavy strings or not.
Does someone have an idead?
Thanks a lot
5 comentarios
Walter Roberson
el 2 de Abr. de 2019
I wonder if one of the fields you are trying to write is a string object or character vector (or, more likely, cell array of character vectors), and if the field was defined as a fixed width, and you are trying to write something wider than was allocated?
Guy Laviolette
el 2 de Abr. de 2019
Guy Laviolette
el 2 de Abr. de 2019
Guillaume
el 2 de Abr. de 2019
What is the actual query that causes this error?
Guy Laviolette
el 3 de Abr. de 2019
Respuestas (0)
Categorías
Más información sobre Reporting and Database Access en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!