bcp "select top(10000)* from TableName" queryout g:query.dat -c -S [IP] -U [UserName] -P [Password]
bcp [database].dbo.[Tablename] out g:query.dat -c -S [IP] -U [UserName] -P [Password]