Skip to content

Tag: sql

How to set multiple values inside an if else statement?

I’m trying to SET more than one value within the if else statement below, If I set one value it works, but if I set two values, it doesn’t work: Error message: “Msg 156, Level 15, State 1, Line 9 Incorrect syntax near the keyword ‘ELSE’.” However it seems to be possible to …

Deleting Mode Analytics Bridge Connector

After installing the Mode Analytics Bridge Connector for a remote MySQL database I decided to use another type of connection. I installed this .pkg and ran this code: from this page, which won’t load without an account with Mode. Now I want to completely remove everything installed by that .pkg and undo…

Select record between two IP ranges

I have a table which stores a ID, Name, Code, IPLow, IPHigh such as: Now, if I have an IP address 192.168.2.50, how can I retrieve the matching record? Edit Based on Gordon’s answer (which I’m getting compilation errors) this is what I have: but this gives me an error: Any ideas? Answer Painfully.…