This can also be done by a SQL job which can be scheduled. Create a TSQL step with the select statement containing the required command. go to the advanced tab and change the "output" field to your required file. Then define a schedule. It could also be done by a DTS package.
Thanks guys.. But I was looking any SQL syntax rather than DTS, Command (BCP).I guess there is nothing like that in SQL. I used to a Synatx in Oracle way back, I was think SQL might have something. May be in 2005.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.