sql server - SQL wont import because the data will be truncated. How do get it to just cut the string off at 16 characters -
i need import .csv
file sql server table. in table, 1 of columns of datatype varchar(16)
, in .csv
excel file, of entries in column 25 characters or more. need sql server cut string off @ 16 characters , import that. how this? have no idea how start code this
i import table using anysql maestro import wizard by
- right clicking table
- clicking data management
- clicking import
- selecting
.csv
file type - selecting columns
.csv
match columns in sql table - clicking ok.
if field in .csv
right size, there no issue importing
simple solution
open .csv file excel.
in excel keep first 16 characters , remove others (search left function)
use sql server management studio import data excel file
Comments
Post a Comment