I just need an easy way to delete a single line in a .txt. Heres my problem: I have twp procedures that run simultaneously but one locks a certain database table even though I have shared lock or no-lock status. So since the second proc needs this table it will not run until the first one completes. I've tried wrapping them with DO TRANSACTIONS: with no luck. So my solution is to write the values I need to a text file and then line by line read the text document and delete the lines as the procedures process them. If anyone has a better solution to my first problem then I wont need an answer to my second, any thoughts/advice would be appreciate, thanks!