﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Cloud Computing / SQL Azure - Development  / Does SQL Azure Support Bulk Insert from a File? / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Tue, 21 May 2013 13:25:23 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Does SQL Azure Support Bulk Insert from a File?</title><link>http://www.sqlservercentral.com/Forums/Topic1193887-2571-1.aspx</link><description>you can use the .NET Frameworks SQLBulkCopy object , and use that to load via bulk copy, but not BULK INSERT command; that requires you to have already organized the data into a DataTable on the client side.if BULK INSERT were to be possible, the path to the file would be something like \\Your.Inernet.IP\c$\Somefolder\Somefile.csv, so that's not going to work.</description><pubDate>Thu, 20 Oct 2011 10:40:42 GMT</pubDate><dc:creator>Lowell</dc:creator></item><item><title>Does SQL Azure Support Bulk Insert from a File?</title><link>http://www.sqlservercentral.com/Forums/Topic1193887-2571-1.aspx</link><description>I'm just curious if this would work.If I connect to SQL Azure using SSMS on my local machine and the C:\something\something.csv is on my local machine.[code="sql"]DECLARE @sql VARCHAR(255)DECLARE @path VARCHAR(255)DECLARE @filename VARCHAR(255)SET @path = 'C:\something\'SET @filename = 'something.csv'SET @sql = 'BULK INSERT dbo.Plans FROM ''' + @path + @filename + ''' '   + '     WITH (            FIELDTERMINATOR = '','',            ROWTERMINATOR = '''',            FIRSTROW = 2         ) 'PRINT @sql--EXEC (sql)[/code]</description><pubDate>Thu, 20 Oct 2011 10:33:27 GMT</pubDate><dc:creator>smallmoney</dc:creator></item></channel></rss>