About 50 results
Open links in new tab
  1. How to run SQL in shell script - Stack Overflow

    How do you run a SQL command in a shell script while setting a variable? I had tried this method and it isn't executing the command, it is thinking the command is just a string. #!/bin/ksh variab...

  2. Connect to sqlplus in a shell script and run SQL scripts

    Oct 1, 2024 · 42 I have a .sql file, which is a bunch of oracle pl/sql commands and I want to create a shell script to run these commands. Suppose that user/pass@server is my credentials. What will be …

  3. Enable 'xp_cmdshell' SQL Server - Stack Overflow

    Feb 28, 2018 · Blockquote SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned off as part of the security configuration for this …

  4. mysql - How to export and import a .sql file from command line with ...

    Jul 10, 2012 · I want to export and import a .sql file to and from a MySQL database from command line. Is there any command to export .sql file in MySQL? Then how do I import it? When doing the …

  5. how to execute sql queries from a shell script - Stack Overflow

    May 18, 2012 · $ sql select t1.col1,t2.col2 from Table1 t1 join Table t2 on t1.client_id=t2.client_id. I'm pasting the script here in case you might profit from it. It is zsh, and mysql-specific. You'll have to …

  6. sql server - Getting execute permission to xp_cmdshell - Stack Overflow

    Enable the xp_cmdshell procedure Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1 SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this …

  7. Connect to SQL Server Database from PowerShell - Stack Overflow

    Sep 5, 2014 · SQL Server Management Studio 2012 isn't a "version of SQL" - it's an application that can connect to and manage SQL Server, and it can connect to any version of SQL Server from 2000 …

  8. 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 was

  9. I forgot the password I entered during PostgreSQL installation

    I either forgot or mistyped (during the installation) the password to the default user of PostgreSQL. I can't seem to be able to run it, and I get the following error: psql: FATAL: password

  10. Set Configuration value in Spark-SQL Shell - Stack Overflow

    Jul 13, 2020 · But, I wish to know how to do the same by using the SET command in the spark-sql shell. I have tried using the SET command in Spark- Sql shell, but it doesn't seem to be working.