본문 바로가기

Databases/SQL Server

BCP를 이용한 데이터 추출


bcp "[query statement]" queryout "[file path]" [options]


[options]

-S 서버이름

-U user

-P password

-c 필드 형식을 묻지 않고 바로 저장


참조 http://msdn.microsoft.com/ko-kr/library/ms162802.aspx