Question : Line Breakup in VB.Net For writing a lengthy SQL Script ..~



I need to break the line on writing a very lenghty SQL Script in VB.Net Code

Like VB 6.0, we have VBCLrf .. etc ..

i need to have something similar to handle Multi Line SQL Script

Answer : Line Breakup in VB.Net For writing a lengthy SQL Script ..~

Try this:
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
        strCommand = "Insert into tmpReport (tmpReport.[FirstName], tmpReport.[MiddleName], tmpReport.[LastName], tmpReport.[SSN], " _
             & "tmpReport.[Address], tmpReport.[City], tmpReport.[State], tmpReport.[Zip], tmpReport.[DOB], tmpReport.[IsMale], " _
             & "tmpReport.[HomePhone], tmpReport.[CellPhone], tmpReport.[WorkPhone], tmpReport.[ShippingAddress], " _
             & "tmpReport.[IsEmailShipment], tmpReport.[EmailAddress], tmpReport.[DCity], tmpReport.[DState], " _
             & "tmpReport.[DZip], tmpReport.[BestTimeToCall], tmpReport.[IsLeaveMsg], tmpReport.[IsPolicyHolder], " _
             & "tmpReport.[TypeofInsurance], tmpReport.[PolicyHolderName], tmpReport.[RelationshiptoPolicyHolder], " _
             & "tmpReport.[PolicyDOB], tmpReport.[PolicySSN], tmpReport.[Physician1],tmpReport.[Physician1PhnNumber]," _
             & "tmpReport.[Physician1FaxNumber],tmpReport.[Physician2],tmpReport.[Physician2PhnNumber], " _
             & "tmpReport.[Physician2FaxNumber],tmpReport.[Physician3],tmpReport.[Physician3PhnNumber], " _
             & "tmpReport.[Physician3FaxNumber], tmpReport.[CaseManager], tmpReport.[Organization], " _
             & "tmpReport.[CMPhoneNumber], tmpReport.[ReferredBy], tmpReport.[RelationShip], tmpReport.[RelationPhoneNumber]) values ()"
Random Solutions  
 
programming4us programming4us