Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Importing delimited/csv file
Message
 
À
01/07/2004 09:19:20
Alan Harris-Reid
Baseline Data Services
Devon, Royaume Uni
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
00919598
Message ID:
00920355
Vues:
13
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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform