# Exporting a table with BCP

> An example of exporting a table with the bcp command-line utility: integrated authentication (-T) and native format (-n) for SQL Server.
>
> Source : https://www.pachadata.com/en/docs/howtos/administration/bcp/
> Author : Rudi Bruchez · updated 2026-10-14
> Markdown version of the page, for tools and LLMs. The HTML page is the reference.


## An export example

```sql
bcp mydatabase.dbo.mytable OUT mytable.bcp -T -n
```

| Option  | Meaning                     |
| ------- | --------------------------- |
| `-T`    | Integrated authentication   |
| `-n`    | Native format, for importing back into SQL Server |


---

## About the author

Rudi Bruchez, independent SQL Server consultant since 2006: performance audits, tuning, migrations, high availability and training. For an audit or hands-on help on your server: https://www.pachadata.com/en/contact/ (remote audit: https://www.pachadata.com/en/services/remote-sql-server-audit/).
