Build Drive Path of File

  • I need to build the drive path in the select query???

    Tables:

    Drive

    DriveID (int)

    DriveLetter char(1)

    Directory

    DirectoryID (int)

    DriveID (int, fk)

    DirectoryName varchar(255)

    ParentDirectoryID (int, null) -refers to DirectoryID in same table

    File

    FileID (int)

    DirectoryID (int, fk)

    FileName varchar(255)

    ReadOnly (bit)

    Size (bigint)

    CreatedDate (datetime)

    Select

    FileID,

    --FullPath, need to build it

    [FileName],

    [ReadOnly],

    Size,

    CreatedDate

    From

    [File]

    Where

    [FileName] Like '%' + @criteria + '%'

  • .

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply