Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Varchar (8000) problem 1

Status
Not open for further replies.

beckwiga

Programmer
Mar 30, 2005
70
0
0
I had to import several extremely large, comma delimited text files into my SQL Server db. I didn't notice at first, but all my fields are VarChars of size 8000! Most all of my fields do not exceed 30 in length, and I want to redefine them all as nChar of size 30. Is there an easy way to do this without doing it manually? I have a lot of fields and a lot of tables. If I reimport my text files with DTS, can I set the type and size someplace? It defined them like this by default.

Any help would be appreciated.
 
When using DTS you can modify the transfermation properties that is uses to create the tables and specify different column sizes. You'll need to modify each table and column manually however.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
no problem.

Denny
MCSA (2003) / MCDBA (SQL 2000)

--Anything is possible. All it takes is a little research. (Me)

[noevil]
(Not quite so old any more.)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top