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

  1. right clicking table
  2. clicking data management
  3. clicking import
  4. selecting .csv file type
  5. selecting columns .csv match columns in sql table
  6. clicking ok.

if field in .csv right size, there no issue importing

simple solution

  1. open .csv file excel.

  2. in excel keep first 16 characters , remove others (search left function)

  3. use sql server management studio import data excel file


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -