Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Importing delimited/csv file
Message
 
To
01/07/2004 09:19:20
Alan Harris-Reid
Baseline Data Services
Devon, United Kingdom
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00919598
Message ID:
00920355
Views:
14
from within a T-SQL script you can use Bulk Insert

/* load the tables with sample data */
BULK INSERT dbo.rm_source_codes
FROM '\\Todd\JobLog\ph_sc.CSV'

Make sure the file is located on the server or use UNC so the server can find the file if it's on the client.

Out side a script use BCP or DTS (which uses BCP)
Software engineers are trained to read and understand code; they are not trained in mind reading. Document the purpose not just the functionality.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform