Skip to content

Tag: sql-server

PHP, ODBC, and SQL Injection

How does one prevent against SQL injections when using ODBC to connect to a MS SQL Server? odbc_prepare() doesn’t work (see my open question) due to bugs unixODBC, and there is no _escape or _quote …

Cannot start LocalDB

Cannot start LocalDB instance, I have installed and re-installed over and over. Keep getting this error : Start of LocalDB instance “v11.0” failed because of the following error: Error occurred during LocalDB instance startup: SQL Server process failed to start. Anyone any advice ? ? Microsoft SQL…

group rows in plain sql

I have a Table with columns Date and Number, like so: date Number 1-1-2012 1 1-2-2012 1 1-3-2012 2 1-4-2012 1 I want to make a sql query that groups the rows with the same Number and take the minimum date. The grouping only may occur when the value iof Number is the same as previous / next row. So

Issue creating table in MS SQL Database with Python script

The above code successfully connects to the database. The script also returns no errors when run, however when I go to check if the table was created, there are no tables in the SQL DB at all. Why is no table created and why is no error returned? Answer Each user in MS SQL Server has a default schema associat…