SQLCMD Import Big Data files

Source: Internet
Author: User

SQLCMD Import Big Data files

SQLCMD allows you to run scripts from a command-line prompt in the Windows command window.

The syntax is as follows:

sqlcmd
[
{-U <login id> [-P <password>]} |-e}
]
[-S <server> [\<instance >]] [-H <workstation>] [-D <database>]
[-L <time out>] [-t <time out>] [-H [-S <col separator>] [-W <col width>] [-A <packet size>]
[-E] [-I.]
[-C <cmd end>] [-l [C]] [-Q "<query>"] [-Q "<query>"]
[-M <error level>] [-V] [-W] [-u] [-R [0 | 1]]
[-I <input file>] [-O <output file>]
[-F <codepage> | i:<codepage> [<, O: <codepage>]
[-K [1 | 2]]
[-y <display width>] [-y <display width>]
[-P [1]] [-R] [-B] [-V] [-A] [-X [1]] [-X]
[ -? ]
]

Sqlcmd-usa-pmypassword-q "SELECT * from DatabaseName. TableName

Where-Q uppercase and-Q lowercase are distinguished, queries are executed, but the former will exit sqlcmd when the query is completed, while the latter will not.

Execute SQL Script:

D:\install>sqlcmd-usa-p123456-i Testsql.sql

SQLCMD Import Big Data files

Related Article

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.