Skip to content

Commit a1023b3

Browse files
authored
DSN support in BCP and sqlcmd
1 parent 5ed1608 commit a1023b3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/tools/bcp-utility.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,8 @@ bcp [<a href=/proxy/https/github.com/MicrosoftDocs/sql-docs/commit/&quot;#db_name&quot;&gt;database_name.&lt;/a&gt;] <a href=/proxy/https/github.com/MicrosoftDocs/sql-docs/commit/&quot;#schema&quot;&gt;schema&lt;/a&gt;.{&lt;a hre
177177
Specifies the database to connect to. By default, bcp.exe connects to the user's default database. If -d database_name and a three part name (database_name.schema.table, passed as the first parameter to bcp.exe) are specified, an error will occur because you cannot specify the database name twice. If *database_name* begins with a hyphen (-) or a forward slash (/), do not add a space between **-d** and the database name.
178178

179179
**-D**<a name="D"></a>
180-
Causes the value passed to the `bcp` `-S` option to be interpreted as a data source name (DSN). For more information, see _DSN Support in sqlcmd and bcp_ in [Connecting with sqlcmd](../connect/odbc/linux-mac/connecting-with-sqlcmd.md).
180+
Causes the value passed to the `bcp` `-S` option to be interpreted as a data source name (DSN). A DSN may be used to embed driver options to simplify command lines, enforce driver options that are not otherwise accessible from the command line such as MultiSubnetFailover, or to help protect sensitive credentials from being discoverable as command line arguments. For more information, see _DSN Support in sqlcmd and bcp_ in [Connecting with sqlcmd](../connect/odbc/linux-mac/connecting-with-sqlcmd.md).
181+
181182

182183
**-e** _**err\_file**_<a name="e"></a>
183184
Specifies the full path of an error file used to store any rows that the **bcp** utility cannot transfer from the file to the database. Error messages from the **bcp** command go to the workstation of the user. If this option is not used, an error file is not created.

0 commit comments

Comments
 (0)