Link to home
Start Free TrialLog in
Avatar of estecher
estecher

asked on

Unable to import large text i.e. text >1024 characters from excel to sql database


I could do the it manually but how do i import excel to the database even if the text in excel has large text like >1024 characters. How do i do it. Please let me know.
Avatar of Lowfatspread
Lowfatspread
Flag of United Kingdom of Great Britain and Northern Ireland image

what's the import failing with?

is the text > 8060 bytes (4030 characters)    (is it text or Ntext varchar or Nvarchar?)

will the "text" contain control characters CR LF x'00' etc..
Are you sure it is not importing correctly?  Or is it just not displaying all the data in Enterprise Manager?  Enterprise Manager cannot display more than 1K data.
Avatar of estecher
estecher

ASKER

The import is failing at the row which has more than 1024 characters, the data type of the cell is varchar(5000). I did some cells manually but i have many rows to do . Is there a better way to do?
ASKER CERTIFIED SOLUTION
Avatar of Anthony Perkins
Anthony Perkins
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I appreciate the points, however I do not believe I have earned them.  See here from the EE Help:
I accepted the wrong answer. Now what?
https://www.experts-exchange.com/Databases/Microsoft_SQL_Server/help.jsp#hi17