Search This Blog
Friday, November 8, 2013
Microsoft SQL Server System Views
Microsoft SQL Server system views provides a collections of system views that expose metadata.
Etichete:
SQL Server
System Stored Procedures SQL Server
SQL Server > System Stored Procedures
Using system stored procedures you can perform many administrative and informational activities.
Catalog
Extended
Mail
Database Engine
Using system stored procedures you can perform many administrative and informational activities.
Catalog
Extended
Database Engine
Etichete:
SQL Server
sp_databases SQL Server
SQL Server > System Stored Procedures > sp_databases
sp_databases lists databases that reside in an instance of the SQL Server Database .
Example:
EXEC sp_databases;
master 4864 NULL
model 2624 NULL
msdb 13312 NULL
tempdb 2560 NULL
sp_databases lists databases that reside in an instance of the SQL Server Database .
Example:
USE master;
GOEXEC sp_databases;
DATABASE_NAME DATABASE_SIZE REMARKS
action_plan 4160 NULLmaster 4864 NULL
model 2624 NULL
msdb 13312 NULL
tempdb 2560 NULL
Etichete:
SQL Server
Thursday, November 7, 2013
Regular expression C#
C# > Text > Regular expression
A regular expression is a pattern. The engine try to find matches in input text using this pattern.
A pattern contains character literals, operators and constructs.
A regular expression is a pattern. The engine try to find matches in input text using this pattern.
A pattern contains character literals, operators and constructs.
Etichete:
c#
System.Text namespaces C#
Etichete:
c#
Regex IsMatch method
C# > Text > RegularExpressions > IsMatch
Regex IsMatch method indicates whether the regular expression specified finds a match in a specified input string.
Example:
foreach (string partNumber in partNumbers)
if (rgx.IsMatch(partNumber))
MessageBox.Show (partNumber);
Pattern
^ begin the match at the beginning of the line.
[a-zA-Z0-9] match a single alphabetic character (a through z or A through Z) or numeric character. - match a hyphen
* must be zero or more of these characters
$ end the match at the end of the line
Regex IsMatch method indicates whether the regular expression specified finds a match in a specified input string.
Example:
string[] partNumbers = { "1298-6736","343434" };
Regex rgx = new Regex(@"^[a-zA-Z0-9-]*-[a-zA-Z0-9]*$");foreach (string partNumber in partNumbers)
if (rgx.IsMatch(partNumber))
MessageBox.Show (partNumber);
Pattern
^ begin the match at the beginning of the line.
[a-zA-Z0-9] match a single alphabetic character (a through z or A through Z) or numeric character. - match a hyphen
* must be zero or more of these characters
$ end the match at the end of the line
Etichete:
c#
Convert color to html color C#
C# > Color
ColorTranslator.ToHtml translates the specified Color structure to an HTML string color.
Example:
ColorTranslator.ToHtml translates the specified Color structure to an HTML string color.
Example:
Color cl = Color.FromArgb(0, 99, 148);
string htmlColor = ColorTranslator.ToHtml(cl);
Etichete:
c#
Subscribe to:
Posts (Atom)