Import large capacity from remote data files

Source: Internet
Author: User
To import data from other computers using BULKINSERT or INSERT... SELECT * FROMOPENROWSET (BULK...), you must share data files between the two computers. When specifying a shared data file, use its Universal Naming Convention (UNC) name, which is generally in the form of \ ServernameSharenamePathFile

To import data FROM other computers using bulk insert or INSERT... SELECT * from openrowset (BULK...), you must share data files between the two computers. When specifying a shared data File, use its Universal Naming Convention (UNC) name, which is generally in the form of \ Servername \ Sharename \ Path \ File

To import data FROM other computers using bulk insert or INSERT... SELECT * from openrowset (BULK...), you must share data files between the two computers. When specifying a shared data file, use its Universal Naming Convention (UNC) name, which is generally in the form\\Servername\Sharename\Path\Filename. In addition, the account used to access the data file must have the permissions required to read the files on the remote disk.

For example, the following bulk insert statement imports large amounts of data in the data file newdata.txt to the SalesOrderDetail table of the AdventureWorks database. This data file resides in the \ dailyorders shared folder under the salesforce network shared directory of system computer2.

<无>
BULK INSERT AdventureWorks2012.Sales.SalesOrderDetail   FROM '\\computer2\salesforce\dailyorders\neworders.txt';GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.