Retrieve records from MSSQLServer in Python
The below Python code will create a connection to a MSSQLServer instance, and retrieve data from it back into a variable called tblResults.
The below Python code will create a connection to a MSSQLServer instance, and retrieve data from it back into a variable called tblResults.
Sometimes you don’t want a SELECT query to run for more than a set amount of time. This is a roundabout way to make your… Read More »How to Abort SQL statements after a set time in MariaDB
This came in very handy for me at one point because I needed to have a certain field in each row 14 characters long, but… Read More »SQL to Append all Fields if Shorter than a set Length
The problem Write a SQL query to get the second highest salary from the Employee table. +—-+——–+ | Id | Salary | +—-+——–+ | 1 | 100… Read More »Get the Second Highest Salary in MySQL
If you see lots of disk space quickly disappearing on your MySQL or MariaDB server, then you may want to look into the BinLog directory,… Read More »How to Purge the BinLog for MySQL and MariaDB
So you have a table where you want to delete a bunch of rows, based on a particular column being matched in another table. This… Read More »How to Delete from a Table where rows match in Another Table – MySQL
There are many occasions where you need to INSERT a record into a MySQL database table, but the record already exists. INSERT INTO queue_domains (domain)… Read More »REPLACE INTO instead of INSERT INTO – MySQL
SQL (Structured Query Language) for relational databases was maintained and standardised by the American National Standards Institute (ANSI) and the International Organisation for Standardisation (ISO)… Read More »A bit on SQL Standards
Everybody always raves how great Microsoft SQL Server is, and how much data it can hold, and how much bigger it’s “package” is than your… Read More »Why we don’t choose MSSQL!
I was trying to install Microsoft SQL Server Management Studio Express (what a long name) on a machine and kept getting error 29506 right near… Read More »Error 29506 while installing SQL Server Management Studio Express