Advertisement
Advertisement
| 07.16.2008 at 08:30AM PDT, ID: 23570067 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: |
' Microsoft SQL Server Integration Services user script component
' This is your new script component in Microsoft Visual Basic .NET
' ScriptMain is the entrypoint class for script components
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Pipeline.Wrapper
Imports Microsoft.SqlServer.Dts.Runtime.Wrapper
Imports System.Text
Public Class ScriptMain
Inherits UserComponent
Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
'Dim blobData() As Byte = Row.FolioLegalDescription.GetBlobData(0, CInt(Row.FolioLegalDescription.Length))
Dim inLegal As String = System.Text.Encoding.Unicode.GetString(Row.FolioLegalDescription.GetBlobData(0, CInt(Row.FolioLegalDescription.Length)))
Dim inLegal2, inLegal3, inLegal4, inLegal5, inLegal6 As String
inLegal = inLegal.Substring(1, inLegal.Length - 2)
inLegal = Replace(inLegal, Chr(10), "")
inLegal = Replace(inLegal, Chr(13), "")
inLegal = Replace(inLegal, Chr(9), "")
If inLegal.Length > 20000 Then
inLegal6 = inLegal.Substring(20000, inLegal.Length - 4000)
inLegal = inLegal.Substring(0, 20000)
End If
If inLegal.Length > 16000 Then
inLegal5 = inLegal.Substring(16000, inLegal.Length - 4000)
inLegal = inLegal.Substring(0, 16000)
End If
If inLegal.Length > 12000 Then
inLegal4 = inLegal.Substring(12000, inLegal.Length - 4000)
inLegal = inLegal.Substring(0, 12000)
End If
If inLegal.Length > 8000 Then
inLegal3 = inLegal.Substring(8000, inLegal.Length - 4000)
inLegal = inLegal.Substring(0, 8000)
End If
If inLegal.Length > 4000 Then
inLegal2 = inLegal.Substring(4000, inLegal.Length - 4000)
inLegal = inLegal.Substring(0, 4000)
End If
Row.Legal1 = inLegal
Row.Legal2 = inLegal2
Row.Legal3 = inLegal3
Row.Legal4 = inLegal4
Row.Legal5 = inLegal5
Row.Legal6 = inLegal6
End Sub
End Class
|