Problem inserting data into db Microsoft ODBCSQL server drive SQL server

Asked By 20 points N/A Posted on -
qa-featured

 “Problem inserting data into db Microsoft ODBCSQL server drive sql server” Hello This error message arises if I have inserted particular characters or a huge name in the registrant name section on the Software page and Forms. Then to approve it, I cut down the name to fewer than 50 characters and confirm that the name does not hold any particular characters. But I want to insert more than 50 words. What should I do?

Need your help. Thanks.

SHARE
Answered By 5 points N/A #99656

Problem inserting data into db Microsoft ODBCSQL server drive SQL server

qa-featured

Hi T.Andy,

Try modifying the column width of the affected table in the MS SQL server. You can easily do this by using the SQL Server Management Studio. You have to have access to the database server though. You can also execute a DDL to do it. Just simply execute this command:

alter table <your_table> modify <your_column> VARCHAR(SIZE)

You have to change the column's data type to VARCHAR if it not yet a VARCHAR. Remember you don't know the size of the data you want to insert. VARCHAR can handle that because of its characteristics. It will automatically adjust to the data provided that it is not greater than the SIZE specified. You may refer to this site for more info about the VARCHAR data type.

https://docs.microsoft.com/en-us/sql/t-sql/data-types/char-and-varchar-transact-sql

 

I hope it helped.

Related Questions