About 50 results
Open links in new tab
  1. Execute SQL script from command line - Stack Overflow

    providing a file name containing all my SQL queries is much more handy than providing the SQL query as command-line arguments.

  2. command line - How to run SQL script in MySQL? - Stack Overflow

    Jan 20, 2012 · 695 If you’re at the MySQL command line mysql> you have to declare the SQL file as source.

  3. Run PostgreSQL queries from the command line - Stack Overflow

    Oct 30, 2013 · But I face few issues sometimes such as if the column name is similar to any reserved keyword of postgresql such as natural in this case similar SQL is difficult to run from the command …

  4. sql - How do you run a single query through mysql from the command …

    How do you run a single query through mysql from the command line? Asked 16 years, 5 months ago Modified 1 year, 5 months ago Viewed 260k times

  5. How to I run a single sql command from the sqlcmd prompt?

    The answer above uses lowercase -q, which will run the command but leave the sqlcmd prompt open and running. Depending on what you want, the case of the -Q/-q argument matters.

  6. How to connect to SQL Server from command prompt with Windows ...

    Mar 21, 2014 · assumes a username & password for the SQL Server already setup Alternatively how can I setup a user account from command prompt? I've SQL Server 2008 Express on a Windows …

  7. How can I issue a single command from the command line through sql …

    Mar 12, 2009 · Using SQL Plus, you can run a script with the "@" operator from the command line, as in: ... But is it possible to just run a single command with a similar syntax, without a whole separate …

  8. Run a PostgreSQL .sql file using command line arguments

    Mar 16, 2012 · Run a PostgreSQL .sql file using command line arguments Asked 14 years, 1 month ago Modified 1 year, 4 months ago Viewed 1.4m times

  9. How to connect to MySQL from the command line - Stack Overflow

    Feb 27, 2011 · How can you connect to MySQL from the command line in a Mac? (i.e. show me the code) I'm doing a PHP/SQL tutorial, but it starts by assuming you're already in MySQL.

  10. Run SQL script via command line to remote server

    Jan 22, 2018 · You find out all the parameters for sqlcmd by running sqlcmd -?. That tells you use can use -d to specify the database name. Thus: sqlcmd -S myServer\instanceName -i C:\myScript.sql -d …