I'm a beginner in asp.net and write a web application. I have 100 million records in my server in a .csv file, and I write this query in SQL Server to import all that data:
BULK INSERT BpartyTEMP
FROM 'D:\bparty2.csv'
WITH(
FIELDTERMINATOR = ',',
ROWTERMINATOR = '\n',
CODEPAGE = '1256'
);
But I want write that query directly in asp.net c# code, how can I write that? Thanks.
SqlConnectionandSqlCommandADO.NET components, and use this SQL as theCommandTextfor your command. Easy peasy....