Question : asp.net ' I need to write a long sql statement and i'm being cut off after the first line with a double qoute

my code is in the code block it is code behind code?
the full sql is being is breaking up after the first line and the qoute is auto inserted by visual studio
meaning if i delete it, it is then auto insert. help I need to know how to write a continuation line.

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:
Protected Sub ddlMth_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs)

        Dim dtVolumeOrder As New DataTable()

        Dim strSelectCommand As String = "SELECT P.UserId, P.Company, P.WebSiteUrl, E.UserID, E.ID, E.UserId, E.Year, E.Make, E.Model, E.Type, E.MilesHours, E.VinSerial, E.Description, E.Location, E.Price, E.SignUpDate, e.EquipmentID "

        GetCustomerImage_1.ImageID AS ImageID1, GetCustomerImage_1.EquipmentID AS EquipmentID1, GetCustomerImage_1.Title AS Title1, GetCustomerImage_1.ImageData AS ImageData1, GetCustomerImage_1.MIMEType AS MIMEType1,
        GetCustomerImage_2.ImageID AS ImageID2, GetCustomerImage_2.EquipmentID AS EquipmentID2, GetCustomerImage_2.Title AS Title2, GetCustomerImage_2.ImageData AS ImageData2, GetCustomerImage_2.MIMEType AS MIMEType2,
        GetCustomerImage_3.ImageID AS ImageID3, GetCustomerImage_3.EquipmentID AS EquipmentID3, GetCustomerImage_3.Title AS Title3, GetCustomerImage_3.ImageData AS ImageData3, GetCustomerImage_3.MIMEType AS MIMEType3, 
        GetCustomerImage_4.ImageID AS ImageID4, GetCustomerImage_4.EquipmentID AS EquipmentID4, GetCustomerImage_4.Title AS Title4, GetCustomerImage_4.ImageData AS ImageData4, GetCustomerImage_4.MIMEType AS MIMEType4,
        GetCustomerImage_5.ImageID AS ImageID5, GetCustomerImage_5.EquipmentID AS EquipmentID5, GetCustomerImage_5.Title AS Title5, GetCustomerImage_5.ImageData AS ImageData5, GetCustomerImage_5.MIMEType AS MIMEType5, 
        GetCustomerImage_6.ImageID AS ImageID6, GetCustomerImage_6.EquipmentID AS EquipmentID6, GetCustomerImage_6.Title AS Title6, GetCustomerImage_6.ImageData AS ImageData6, GetCustomerImage_6.MIMEType AS MIMEType6

         FROM Equipment E Inner Join UserProfile P

        OUTER APPLY GetCustomerImage(1, E.EquipmentID) AS GetCustomerImage_1 
        OUTER APPLY GetCustomerImage(2, E.EquipmentID) AS GetCustomerImage_2 
        OUTER APPLY GetCustomerImage(3, E.EquipmentID) AS GetCustomerImage_3
        OUTER APPLY GetCustomerImage(4, E.EquipmentID) AS GetCustomerImage_4
        OUTER APPLY GetCustomerImage(5, E.EquipmentID) AS GetCustomerImage_5
        OUTER APPLY GetCustomerImage(6, E.EquipmentID) AS GetCustomerImage_6 

        WHERE E.IsLockedOut = 'False'

        ORDER BY E.SignUpDate DESC"

Answer : asp.net ' I need to write a long sql statement and i'm being cut off after the first line with a double qoute

CreateDirectory:
http://msdn.microsoft.com/en-us/library/aa363855(VS.85).aspx

There is a link to an example:
Retrieving and Changing File Attributes
http://msdn.microsoft.com/en-us/library/aa365522(v=VS.85).aspx

The program there creates a directory - check the line with CreateDirectory(argv[1], NULL).

SetFileAttribute
http://msdn.microsoft.com/en-us/library/aa365535(VS.85).aspx


Random Solutions  
 
programming4us programming4us