Tag: tricks
How to return rows in random order in SQL Server ?
Do you want to return rows sorted in random order , here’s how you do it. How to return rows in random order in SQL Server ? This example demonstrates how to sort the Employee table and display the results in random order.
How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App?
There are times when the automatic lock of the Screen is enabled by the user in the Settings App of the Windows Phone 8. When your App is running on the device, sometimes you may not want to lock the device automatically for various reasons . How to Prevent the Lock Screen to automatically lock from the Windows Phone 8 App? Below is a sample…
How to Declare and Define an byte data type variable in F# ?
How to Declare and Define an byte data type variable in F# ?
Connecting to a Database in SQL Server Management Studio
Most of the time you will be connecting to your database when working in SQL Server Management Studio. You want to know how to connect to a particular database in SQL Management Studio when working with SQL Server 2014 and executing a query. For example , you want to connect to the AdventureWorks2014 database. How to connect to a database in SQL Management Studio in…
How to sort an array using Comparator in C# ?
The Array.Sort method lets the developers pass the comparator which can be used to sort an array of objects. How to sort an array using Comparator in C# ? In the below example , the method CompareByName is used which lets the Array.Sort method to sort the array of objects in descending order.
How to hide virtual keyboard in android using Java?
There are times when you want to hide the virtual keyboard in android. You can easily do that using the InputMethodManager. How to hide virtual keyboard in android using Java ? Just call the hideSoftInputFromWindow method of the InputMethodManager class by passing the token of the current window that contains the focussed view. Below is a sample code snippet demonstrating the usage of InputMethodManager to…
How to Declare and Define an Float data type variable in F# ?
How to Declare and Define an Float data type variable in F# ?