Home Forums SQL Server 7,2000 T-SQL Extract filename from fully qualified path RE: Extract filename from fully qualified path

  • Query is almost correct.
    I corrected and now it works for me

    RIGHT([physical_device_name],CHARINDEX('\',REVERSE([physical_device_name]))-1) AS NameOfFile