Recent Articles
Change the Default Database for a User in SQL Server
Here are three easy ways to change the default database for a user in SQL Server.
Option 1: Execute the system stored procedure sp_defaultdb
EXEC sp_defaultdb @loginame='UserName', @defdb='NewDefaultDB' |
Control Computer from Your Android/iPhone/iPad Mobile Device
If you need access to your Windows, Mac, or Linux computer from an Android, iPhone, or iPad mobile device you can use the free program TeamViewer. TeamViewer lets you access any of your computers which have the host application installed, from any computer or device running the client app. They also have a flash-based option you can use by logging in to their website.
LINQ – SQL Wildcard Equivalents
LINQ has several ways to mimic SQL wildcards in both query and method syntax. Below are a few examples of each:
LINQ Single vs SingleOrDefault vs First vs FirstOrDefault
Many people get confused about the difference between Single, SingleOrDefault, First, and FirstOrDefault methods in Linq. Below is a chart explaining the difference between them and examples of each scenario.



