About 17,500,000 results
Open links in new tab
  1. How can I dump the result of a query into a file using Microsoft …

    Feb 18, 2016 · You can write specialized template (using existing sample templates) that will output your data to multiple files. Hint: you will need to write the query, that will return only 1 …

  2. 8 Ways to Export SQL Results To a Text File - SQLServerCentral

    Jul 18, 2011 · This article will show eight ways to export rows from a T-SQL query to a txt file. We will show the following options: Shows results to a file in SQL Server Management Studio …

  3. How to Save MySQL Query Output to a File - Database Star

    If you need to save the results of a MySQL query to a file, you can do this easily with a built-in MySQL command. See how in this guide.

  4. How to Export Query Result in MySQL? - GeeksforGeeks

    Jul 2, 2024 · Exporting query results in MySQL can be done using methods like SELECT INTO OUTFILE or MySQL client tools like MySQL, mysqldump, and mysqlimport. These approaches …

  5. SQL Server : export query as a .txt file - Stack Overflow

    You can use windows Powershell to execute a query and output it to a text file. Invoke-Sqlcmd -Query "Select * from database" -ServerInstance "Servername\SQL2008" -Database …

  6. write results of sql query to a file in mysql - Stack Overflow

    Jun 13, 2011 · For example, you could use the mysql command line interface in conjunction with the "tee" operator to output to a local file: http://dev.mysql.com/doc/refman/5.1/en/mysql …

  7. How to Export SQL Server Data to a Text File Format?

    Jun 15, 2024 · Saving result to file via SSMS is a simple way to export table data to a text file in SQL Server. This method involves selecting the query results and then saving them to a file. …

  8. In SQL Server, how do I save the results of a query to a txt file?

    Nov 29, 2022 · Use sqlcmd at the command line to execute your SQL statement; the results will arrive as text and can be trivially saved. Use bcp at the command line to execute your SQL …

  9. Exporting SQL Server Query Results to CSV - SQL DBA Blog

    Oct 2, 2018 · To begin the export process, we use the Results to File option instead of the default Results to Table. This method allows us to save the query output directly to a file. 1. Select …

  10. How To Save MySQL query output to file or export to CSV

    Jun 1, 2020 · All you have to do is use the INTO OUTFILE syntax from the MySQL client. This example query creates a new plain text file in the /tmp directory named mysql_output_file.txt …

Refresh