Wednesday, April 7, 2010
Naming Conventions in SQL Server
• SQL Server variable names that start with the at sign (@),
• temporary tables and procedures that start with the number sign (#)
• global temporary tables and procedures that begin with the double number sign (##).
• Many built-in T-SQL functions and system variables have names that begin with a double at sign (@@),such as @@ERROR and @@IDENTITY.
Friday, March 19, 2010
Simple LINQ Examples
Linq command | output | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
“shashi” | shashi | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
"YES!!!".Dump ("Foreign |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
from n in new[] |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
from word in "The |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
var words = |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
123
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
(new[] {"Tom", "Dick", "Harry"} |
|
What's New in SharePoint Server 2010?
What's New: Enterprise Content Management (ECM)
What's New: SharePoint Enterprise Search
What's New: PerformancePoint Services
What's New: Excel Services
What's New: User Profiles and Social Data
Word Automation Services Overview
http://msdn.microsoft.com/en-us/library/ee557323(office.14).aspx
// Detect if a string is numeric
public static bool IsNumeric(string text)
{
return Regex.IsMatch(text,"^\\d+$");
}
-----------------------
Protect string content by marshalling
// Protect string content by marshalling
IntPtr bstr = Marshal.SecureStringToBSTR(password);
try
{
// ...
// use the bstr
// ...
}
finally
{
Marshal.ZeroFreeBSTR(bstr);
}
Locate string on webpage
{
StreamReader SR;
WebResponse Resp ;
WebRequest MyWebRequest;
string PageStr;
MyWebRequest = WebRequest.Create(URL) ;
MyWebRequest.Timeout = 10000 ;
try
{
Resp = MyWebRequest.GetResponse() ;
SR = new StreamReader(Resp.GetResponseStream()) ;
PageStr = SR.ReadToEnd() ;
SR.Close() ;
PageStr = PageStr.ToUpper();
if ( PageStr.IndexOf(StrToLocate.ToUpper(), 0, PageStr.Length) != -1 )
return true;
else
return false;
}
catch ( WebException wex )
{
if (wex.Status == WebExceptionStatus.Timeout)
Response.Write("The request has timed out!") ;
else
Response.Write("There was some exception: " + wex.Message) ;
return false;
}
}
Thursday, March 18, 2010
Saturday, March 13, 2010
ms-doscom virous removal tools
To kill MS-DOS.com, Global.exe, system.exe, svchost.exe manually
------------------------------------------------
B1: Use IceSword simultaneously kill 3 Process: system.exe, Global.exe, svchost.exe
For do this- first of all start computer login and immediate press ctrl+alt+del
and kill above three process
B2: Find and delete all the files have been analyzed at the
B3: Using Autoruns to check & remove all key viruses created in the registry
B4: Reboot computer.
B5: Download antivirus program (such bkav) to scan again! (If the computer has antivirus program is removed and then installed again!)
B6: Open Run -> CMD: type in sfc /scannow or sfc /scanonce and XP disk to edit the file failed.
B7: Reboot computer. (If necessary)
This script originally provided by lecuong.info blog for point B2, B3.Blog computer-experience.blogspot.com: I enhanced this script for point B1/ and add some points of B2, B3 so it modified and I solved my issue at home with this virus. Don't forget to continue to B5, B6 as well.
Use this script to your own risk.
For details:-
http://computer-experience.blogspot.com/2009/01/how-to-kill-virus-ms-doscom-globalexe.html
Friday, March 12, 2010
SharePoint Questions ?.........
• Can you explain WSS model?
• How can we use custom controls in SharePoint?
• How can you view a detail error in SharePoint?
• How can we display ASCX control in SharePoint pages?
• What are WebParts and in what ways does it vary in SharePoint environment?
• What are the different life cycle events that WebPart goes through?
• What’s the difference between WebParts in WSS 2.0 and 3.0?
• Can you explain the 6 steps we need to create a WebPart in SharePoint?
• How can we implement customization and personalization in WebParts ?
• How can we create a custom editor for WebPart?