Visual studio feeds

All Visual Studio blogs in one place


Enter your email address:

Delivered by FeedBurner

Increase your website traffic with



Anti-spam: How many eyes has a typical person?

Follow us on FB


Android: Read contents from a URL

AddThis Social Bookmark Button
Code snippet:
package com.example.ninet.myapplication;

import android.os.AsyncTask;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.widget.TextView;


public class MainActivity extends AppCompatActivity {

protected void onCreate(Bundle savedInstanceState) {
try {
new DownloadFileTask().execute(new URL(""));
} catch (IOException ex) {




public boolean onCreateOptionsMenu(Menu menu) {
getMenuInflater().inflate(, menu);
return true;

public boolean onOptionsItemSelected(MenuItem item) {
int id = item.getItemId();

if (id == {
return true;

Get the list of installed SQL Server versions/editions with VBScript

AddThis Social Bookmark Button
This script works in 64bit as well as 32bit installations. This may not be a straightforward method but this works for my purpose so thought to share with public.
' Script to detect installed version of SQL Server
' Dev: Praveen Nair
' Date: 15, Sept 2015

dim arr
arr = GetInstances()
if (not isArray(arr)) then
msgbox "No SQL Server Found"
end if

list = ""
for i = 0 to UBound(arr)
s = split(arr(i), ".")
select case (s(0))
case "12":
str = "SQL Server 2014"
case 11:
str = "SQL Server
case 10: ' 10.50 = 2008 R2, 10.0 = 2008
str = "SQL Server 2008"
case 9:
str = "SQL Server 2005"
case 8:
str = "SQL Server 2000"
case 7:
str = "SQL Server 7.0"
case else
str = s(0)
end select
list = list & str & vbCrLf
msgbox "Installed Edition(s): " & vbCrLf & list

Const HKLM = &H80000002
Const BasePath64 = "SOFTWARE\Wow6432Node\Microsoft\Microsoft SQL Server\"
Const BasePath32 = "SOFTWARE\Microsoft\Microsoft SQL Server\"

Function GetInstances
Set reg = GetObject("winmgmts://./root/default:StdRegProv")

'if Bits = 64 then
BasePath = BasePath64
keyPath = BasePath64 &...(Read whole news on source site)

Solution: SSD Drive not getting detected on Win 10 OS

AddThis Social Bookmark Button
Recently I have purchase Samsung - 850 EVO 500GB Internal Serial ATA Solid State Drive for Laptops - Black (Model: MZ-75E500B)  in order to boost the performance of my laptop. Issue:  SSD Drive was not getting detected on Win 10 OS. Solution: This issue was occurring because SSD drive was new and their was no previous partition and disk was not been formatted.  Steps to overcome this problem:

Update Table from Another Table in SQL Server

AddThis Social Bookmark Button
Update Table from Another Table in SQL Server:  A simple scenario demonstrating how we can update Persons table with data from Employees table using update statement.  A simple but very effective query which can saves you from creating unnecessary cursor for updating from different tables.  By performance wise also Update statement is more efficient compared to creating update cursor. Update

Windows Phone 10 update, stuck with error 0x8024201f; easy fix

AddThis Social Bookmark Button
I’ve always been happy to give cutting edge apps, operating systems and gadgets a go and when Windows Insider opened up for Windows Phone 10 preview I definitely had to sneak on board and get my trusted Nokia Lumia 930 (a gift from a very dear friend, Jin) upgraded. To be honest, the experience hasn’t been altogether a happy one.… Read more →

String.Interpolation – C# 6

AddThis Social Bookmark Button
One of the new, and probably very unused capabilities of C# 6, is String Interpolation. Ok, that’s not really a new concept. We’ve seen it with String.Format() and the ideologically wrong String.Concat() methods. Hell, we’ve probably all (at some point in our lives) done [string + ” ” + string] and made it work. Of course, not going into why that’s… Read more →

Modules in JavaScript Circa 2015

AddThis Social Bookmark Button
Until 2015, the JavaScript language has officially only offered only two types of variable scope global scope and function scope. Avoiding global scope has been a primary architectural goal of nearly every library and framework authored over the last ten years. Avoiding global scope in the browser has meant weve relied heavily on closures and syntactical oddities like the immediately invoked function expression (IIFE) to provide encapsulation. (function() { // code goes here, inside an IIFE }()); Avoiding...DotNetSlackers is actively looking for authors to write paid articles in several areas. If you are interested please contact us.

SQL SERVER SSMS Query Command(s) completed successfully without ANY Results Part 2

AddThis Social Bookmark Button
What do you do when you encounter something that you didnt expect? A lot of times such experiences take you to a state of shock or a state of bafflement. The curiosity sometimes pushes you off the cliff to understand why certain behaviors occur. I am fortunate that I get into bizarre situations and the […]...DotNetSlackers is actively looking for authors to write paid articles in several areas. If you are interested please contact us.