declare
@Str varchar(8000)
begin
set @Str='bcp MisTest.dbo.Tmp_Details out "D:\Tmp_Details.xls" -c-ServerName-U Vithal-P pass'
print @strthis script help you to Export Data in Excel
this script help you to Export Data in Excel
declare
@Str varchar(8000)
begin
set @Str='bcp MisTest.dbo.Tmp_Details out "D:\Tmp_Details.xls" -c-ServerName-U Vithal-P pass'
print @str