Hi
My qusetion:
i want export Table data to text file usind sqlsmd?
but i have to run sqlcmd code from stored proc..
i am able to export data using below command at command prompt:
sqlcmd -S server1 -U testuse -P test@123 -d citidb -Q "select * from
[table1](nolock)" -o "MyData.txt"
but how can put the above code in Stored procedure
so that i can execute that sprocedure..
i dont want to use Xp_cmdshell in Stored procedure