Example to Import Data without a Format File(using Native Format )
REM Truncate table (for testing)
SQLCMD -Q "TRUNCATE TABLE TestDatabase.dbo.myNative;"
REM Import data
bcp TestDatabase.dbo.myNative IN D:\BCP\myNative.bcp -T -n
REM Review results
SQLCMD -Q "SELECT * FROM TestDatabase.dbo.myNative;"
Contributors
Topic Id: 10942
Example Ids: 32744
This site is not affiliated with any of the contributors.