User Tools

Site Tools


code_snippets

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
code_snippets [2009/01/14 01:02] stephencode_snippets [2009/01/15 00:01] (current) – removed stephen
Line 1: Line 1:
-===== General ===== 
- 
-==== Newlines ==== 
- 
-C# = Environment.Newline\\ 
-VB = vbNewline 
- 
-===== C# ===== 
- 
-==== I/O ==== 
- 
-=== Read Entire File into a String === 
- 
-...in one easy step. 
- 
-<code c#> 
-String wholeFile = File.ReadAllText(@"C:\Temp.txt"); 
-</code> 
- 
-=== Filename to StreamReader === 
- 
-...in one easy step. 
- 
-<code c#> 
-StreamReader sr = File.OpenText(@"C:\Temp.txt"); 
-</code> 
- 
-===== VB ===== 
- 
- 
- 
-==== Comments ==== 
- 
-=== Change Note === 
- 
-<code vb> 
-''' <ChangeNote> 
-'''   <ChangeNo>CR302610</ChangeNo> 
-'''   <Author>Stephen Heise</Author> 
-'''   <ChangeDate>2008-09-03</ChangeDate> 
-'''   <Description> 
-'''     TBA 
-'''   </Description> 
-''' </ChangeNote> 
-</code> 
-     
-=== Method Header === 
- 
-<code vb> 
-''' <summary> 
-'''  
-''' </summary> 
-''' <param name="page"></param> 
-''' <returns></returns> 
-''' </CreationNote> 
-'''   <ChangeNo>CR302610</ChangeNo> 
-'''   <Author>Stephen Heise</Author> 
-'''   <ChangeDate>2008-09-04</ChangeDate> 
-'''   <Notes>Created to replace existing GetDirectReports method.</Notes> 
-''' </CreationNote> 
-</code> 
- 
-===== SQL ===== 
- 
-==== Fix Orphaned User ==== 
- 
-<code SQL> 
-sp_change_users_login 'auto_fix', 'UserName' 
-</code> 
- 
-For example: 
- 
-<code SQL> 
-sp_change_users_login 'auto_fix', 'WebAppsSQLWebUser' 
-</code> 
- 
  
code_snippets.1231894963.txt.gz · Last modified: 2017/01/01 19:48 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki