Ads by Lake Quincy Media
| Next Tip?
Home » Archive

Articles Archive for November 2008

CSharp, MS SQL »

[30 Nov 2008 | 5 Comments | 2,165 views]

Writting a CLR Stored Proc
With the launch of SqlServer2005, we got the ability to write CLR from any .Net language.
Overview:
The following code-snippet tells how to write a simple CLR Stored Proc with the use of C#.
Step:
1. Start Visual Studio2005 or higher
2. Add new file from File -> New -> File
3. Select Class with C#
4. Mark the name as AStepAheadProc.cs
5. Write the following lines:
/* This Example is a part of different
* examples shown in Book:
* C#2008 Beginners: A Step Ahead
* Written by: Gaurav Arora
* Reach …

Javascript »

[26 Nov 2008 | No Comment | 2,015 views]

Get Client System’s Drive List : JavaScript
In many cases if you want to know the drive list of client system using some client scripting then the best one is JavaScript, actually Activex Scripting.FileSystemObject provides the functionality.
<HTML>
<HEAD>
<SCRIPT language=JavaScript>
//Following function returns the drive list from client system
function getClientDrives() {
var objfs, s, n, e, x;
objfs = new ActiveXObject(“Scripting.FileSystemObject”);
e = new Enumerator(objfs.Drives);
s = “”;
do {
x = e.item();
s = s + x.DriveLetter;
s += “: “;
if (x.DriveType == 3) n = x.ShareName;
else if (x.IsReady) n = x.VolumeName;
else n = “<font color=red>[Other Drive-not …

CSharp, Interview Questions »

[23 Nov 2008 | No Comment | 581 views]

The ref
The ref keyword causes argument passed by reference. The effect is that any chnages is made to the parameter in the method will be reflected in that variable when control passes back to the calling method. To use a ref parameter, both the method definition and the calling method must explicitly use the ref keyword.
An argument passed to to a ref parameter must first be initialized. his differs it from out whose argument need not be explicitly initialize before being passed.
Both ref and out are …

Get Adobe Flash playerPlugin by wpburn.com wordpress themes