You can write results of a SELECT query into a text file in the following way:
master..xp_cmdshell 'osql -S SERVERNAME -U USERNAME -P PASSWORD -Q "SELECT * FROM TABLE" -d DATABASENAME -w "1000" -oc:TextFile.txt'
Charlie has over a decade of experience in website administration and technology management. As the site admin, he oversees all technical aspects of running a high-traffic online platform, ensuring optimal performance, security, and user experience.
Related Posts
- Handy Function to Test for Email Validity
- New Add-in for Monitoring SQL Server Performance in Updated dbForge Developer Bundle
- lenso.ai – an AI reverse image search platform
- Calix Announces AXOS???, the World???s Most Advanced Operating System for the SDN-enabled Access Network
- Kaspersky to shut down US operations




















