SQL and databases

MSSQL: WHERE LIKE equivalent for DateTime

I don’t often use SQL queries but sometimes I have to. And every time it’s the same – I use search engines to find documentation, especially about work with datetime fields. During these readings I found out at least 3 ways to select records with date I need. Read more»

SQL and databases

SQL error “SSIS Error Code DTS_E_PRODUCTLEVELTOLOW” fix

On test environment I have executed an SQL Server Integration Services Package and I’va got the error: SSIS Error Code DTS_E_PRODUCTLEVELTOLOW. The component “Lookup My Cities” (64) cannot run on installed (64-bit) of Integration Services. It requires Standard Edition (64-bit) or higher. End Error As it turned out, service SQL Server Integration Services wasn’t installed […] Read more»

SQL and databases

SELECT from table WHERE items IN (@variable)

You need to make query like “SELECT * from tbl WHERE items IN (‘item1’, ‘item2’, ‘item3’, ‘item4’)” and you want to send items to IN clause as variable. It’s nice when, for example, you want to execute Stored procedure or, as in example below, use INSERT … SELECT construction. Then you need to make a […] Read more»

SQL and databases

Popular Posts