Quantcast
Channel: SQL Server Replication forum
Viewing all articles
Browse latest Browse all 4054

Export a request (automatically)

$
0
0

Hi, I hope i am in the good forum to ask my question, please excuse me if that is not the case.

I am trying to export a request in a file via a SQL command. I'll trigger this function every time the database that I look is changed.

I am working on Microsoft SQL Server Management Studio 17.

I tried this request :

EXECUTE xp_cmdShell 'echo Hello World! > C:\Users\hca\Desktop\fichier.txt'

also i tried some things linked to it (Grant execute on xp_cmdshell , using a proxy account), maybe i did it bad but i'm not sure but all i get is "Access is denied"

Does someone know a way to grant me the permission, or an other way to do what i want(export the files via a command SQL)?

Thank you for your help and your time!


Viewing all articles
Browse latest Browse all 4054

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>