I need to read a Windows file that may be locked, but I don\'t want to create any kind lock that will prevent other processes from writing to the file.
In addition,
You can probably create a copy and read that, even if the file is locked.
Or maybe a StreamReader on a FileStream depending on how SQL opened the file?
new FileStream("c:\myfile.ext", FileMode.Open, FileAccess.Read, FileShare.ReadWrite);