About 13,700 results
Open links in new tab
  1. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · So many ways to do it. From Workbench: File > Run SQL Script -- then follow prompts From Windows Command Line: Option 1: mysql -u usr -p mysql> source file_path.sql …

  2. How can I execute a set of .SQL files from within SSMS?

    May 12, 2017 · The ":r filename.sql" command is the SQLCMD script command to import and execute a sql script file. You know you are in SQLCMD mode because any lines that are …

  3. sql server - Running .sql file within a SQL query - Stack Overflow

    Feb 5, 2015 · I basically just need to be able to run some SQL, then have it load and run a file from the disk, do more SQL, run that same script again, etc. I was hoping to make a SQL …

  4. sql server - Run all SQL files in a directory - Stack Overflow

    I wrote an open source utility in C# that allows you to drag and drop many SQL files and start running them against a database. The utility has the following features: Drag And Drop script …

  5. How to run .sql file in Oracle SQL developer tool to import …

    Jul 22, 2015 · You could execute the .sql file as a script in the SQL Developer worksheet. Either use the Run Script icon, or simply press F5. For example, @path\script.sql; Remember, you …

  6. How to run multiple SQL script files in a Shell script

    Feb 12, 2019 · There are multiple SQL scripts like this and for each SQL script I have to create log files so I used spool here. After every SQL script files execute I used &&. So Is it good to …

  7. How to run sql script using SQL Server Management Studio?

    Apr 22, 2012 · As you will see you can open a "Query Window", paste your script and run it. It does not allow you to execute scripts by using the file path. However, you can do this easily by …

  8. want to run multiple SQL script file in one go with in SQLPLUS

    @echo off echo.>"%~dp0all.sql" for %%i in ("%~dp0"*.sql) do echo @"%%~fi" >> "%~dp0all.sql" When you run that batch file it will create a new script named all.sql in the same directory …

  9. Executing set of SQL queries using batch file? - Stack Overflow

    Feb 5, 2014 · Save the commands in a .SQL file, ex: ClearTables.sql, say in your C:\temp folder. Contents of C:\Temp\ClearTables.sql. Delete from TableA; Delete from TableB; Delete from …

  10. How to execute a .sql file using PowerShell - Stack Overflow

    I have a .sql file. I am trying to pass connection string details through a PowerShell script and invoke a .sql file. I was searching and came up with a cmdlet related to Invoke-Sqlcmd. While I …

Refresh