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 + '%'