cruel
Programmer
- Aug 6, 2001
- 131
Hi, I am new to MS SQL server. I have a csv file sitting on a NT windows (it has all kinds of format, e.g. with % and $ signs), and try to import the data into SQL server database. All data are identified by MS applications as char even though most of them are numeric, integer, money or date. Since the csv file is too big and has a large number of variables, it makes it very inconvenient to manipulate the file. In the SQL script for importing data, I tried to redefine the destination data format accordingly. But importing failed because the source data are strings. I guess I can try import them as char and change data format inside the database. But it will be a very very long sql to write and a big waste of resources. Any suggestions? Appreciate it!