Search notes:

SQL Server - sqlcmd: specifying an sql file to be executed

When sqlcmd is invoked in cmd.exe, a file containing SQL commands can be specified with the -i option:
C:\> sqlcmd -S Hostname\InstanceName -i f:\project\some\script.sql
Other input options are -Q and -q.

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1759345505, '216.73.216.60', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/databases/SQL-Server/tools-utilities/sqlcmd/options/i/index(35): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78