Search notes:

ADO.NET: context connections

At least connections to SQL Server (System.Data.SqlClient.SqlConnection) and Oracle (Oracle.DataAccess.Client.OracleConnection) can be established as so-called context connections.
Such context connections are useful if the (CLR-) method needs to connect to the same database that the method was alread called from, for example because the method was called in a stored procedure or was used in view or select statement.
In that case, a System.Data.Common.DbConnection can be established with the connection string context connection=true.

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/Microsof...', 1759407973, '216.73.216.42', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/Microsoft/dot-net/namespaces-classes/System/Data/Common/DbConnection/context-connections(37): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78