|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
|
SQL Server 2005 introduces a new T-SQL function called NEWSEQUENTIALID() that is similar to NEWID() function to generate GUIDs. NEWSEQUENTIALID() function creates a GUID that is greater than any GUID previously generated by this function on a specified computer (i.e it generates sequentially)
SELECT NEWSEQUENTIALID()
UNION ALL
SELECT NEWSEQUENTIALID()
UNION ALL
SELECT NEWSEQUENTIALID()
results in this output:
4d6e4dbb-8706-d911-afcb-000f1f1b2c2a
4e6e4dbb-8706-d911-afcb-000f1f1b2c2a
4f6e4dbb-8706-d911-afcb-000f1f1b2c2a |
|
| Many a time I have received this question as how to pass
multiple arguments to System.Diagnostics.Process.Start. So I thought
let me blog this small thing
Well the answer is quite simple if you have ever worked with command
prompt.
you can specify arguments separated by spaces (eg:
MyProcess.StartInfo.Arguments = "Arg1 Arg2 Arg3" )
Complete Example:
dim myProc as new System.Diagnostics.Process();
myProc .StartInfo.FileName = "Application.exe"
myProc .StartInfo.WorkingDirectory = "c:\temp"
myProc .StartInfo.Arguments = "Arg1 Arg2 Arg3 "
myProc .Start()
Application.Exe can read command line arguments in following way
Dim arrArgs() As String = System.Environment.GetCommandLineArgs()
arrArgs(0) = "Arg1"
arrArgs(1) = "Arg2"
arrArgs(2) = "Arg3"
Reader: if you have any comments feel free to post using below
"comment" button. |
|
Bill Gates is specially visiting Bangalore on December
9, 2005 to kick off the India Launch of Microsoft's New products
- SQL Server 2005,
- Visual Studio
2005 and
- BizTalk Server 2006
Visiting only Banglore .... That's quite unfair of Bill. Even MUMBAI
is also an major IT HUB. he should plan to visit this city too...
what do you say guys?
[ after a day or two I will fwd this link to Microsoft, so guys if you
wish to voice your opinion do leave your comment here.]
|
|
|
|
|
|
|
|
|
|
|