Home Blog Page 272

SQL Server: Use a CASE Expression in an Update Statement

The CASE expression is used to compare one expression with a set of expressions in SQL. The result of the CASE expression is a Boolean value, true or false. We can use various DML statements like INSERT, SELECT, DELETE and UPDATE with a CASE statement. In this Tech-Recipes tutorial, we will see how to use a CASE expression with UPDATE statements.

SQL Server: How to Check if a File Exists in a Directory

Frequently, when working with SQL, we need to know if a file exists in a local directory or not. This can be done using SQL Server’s built-in procedure known as master.dbo.xp_fileexist. This user-defined function (UDF) checks whether or not a file exists in a specified directory.

SQL Server: How to Left Pad a Number with Zeros

The replicate T-SQL function in Microsoft’s SQL Server makes it simple to add leading zeros to a number value.

SQL Server: Copy One Table to Another Using Stored Procedure

When modifying an important table in the database, user frequently backup the table by making a copy of the original table with a different name. Using a stored procedure makes this process simple and convenient to reuse.

Dropbox: How to Permanently Delete Items and Folders

0

One of the benefits of Dropbox is that it allows you to restore items that you may have deleted from your computer’s Dropbox folder. Dropbox stores these items on its servers so that you can go to its website and restore them if you need to. If you have files that you want to permanently delete, you need to do more than just simply remove them from your computer.

Windows 8: How to Add Applications to the Startup Folder

0

The Startup folder has been in Windows since its beginning. It allows the user to select applications to automatically launch during the Windows initiation process. However, in Windows 8 finding and using the Startup folder can be difficult.

Windows Phone 8: Download Maps for Offline Use

0

By default, the Maps app on Windows Phone requires an active internet connection to work because the data is not stored locally on the phone. To be able to use the phone offline, which is useful when the mobile signal is weak or when you want to save battery, you can choose to download a number of maps to your device.

SQL Server – Dealing with NULL values when sorting

When working with NULL values, it’s important how you deal with NULL records in your database. This example walks through and explains how to sort and separate NULL and non-NULL values. This example should work with all database types including MySQL, MS SQL, and postgreSQL.

SQL Server: Enable and Disable Triggers

If we have a trigger and want to prevent it from running, we can either delete the trigger or disable it temporarily. With the trigger disabled, it will not function. We have three ways to enable/disable a trigger in SQL Server by using a graphical option or by using a query editor.

Google Hangouts for Android: Mute Notifications or Block Contacts

0

If you are annoyed by repeatedly receiving notifications of a conversation or by a person on Google Hangouts, you can turn off the notices and block the person.

IE6: Images Will Save Only as a Bitmap (*.bmp)

0

If Internet Explorer will only let you save an image file as a bitmap, here is how to fix it.