Solved

Easy BCP question

Posted on 2002-03-21
4
689 Views
Last Modified: 2012-05-04
I just can't seem to remember the correct way to do BCP using trusted connection (NT Authentication).  I checked BOL and all the examples I ever see always have -U and -P.  Does anyone have the syntax?  Do I just exclude them (this doesn't seem to work for me).

Thanks
0
Comment
Question by:dtomyn
  • 2
4 Comments
 
LVL 3

Accepted Solution

by:
trouta earned 50 total points
ID: 6888947
I believe it is -T for a trusted connection, if unsure just type 'bcp /?' at the command line and it will display the command line parameters.
0
 
LVL 5

Author Comment

by:dtomyn
ID: 6888965
no, that's not it... -T is [text or image size]
0
 
LVL 4

Expert Comment

by:aponcealbuerne
ID: 6889116
bcp DataBase..Table out filename.dat -c -T

(-T) definitively is Trusted Connection at least in MS SQL 7.0

hope helps
0
 
LVL 5

Author Comment

by:dtomyn
ID: 6889421
I'm on SQL 2000... I'm just going by what the command prompt says when I type it in...

0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Using a hta file with MSSQL agent to schedule a script job 4 40
SQL Dump exec output to table 3 23
sql server query 18 42
RESTORE MASTER DATABASE -- NOW 2 20
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
In this article we will learn how to fix  “Cannot install SQL Server 2014 Service Pack 2: Unable to install windows installer msi file” error ?
Via a live example, show how to set up a backup for SQL Server using a Maintenance Plan and how to schedule the job into SQL Server Agent.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question