G
Guest
i created a windows service. it uses a db which attaches a mdf file. i
created a installer for this service. it is installed successfully also. but
the problem is while i uninstall the application,it shows an error "mdf file
is being used by another process.".the lock is held by sqlserver. so
i want to check like this
pseudocode:
if(File.IsLock("abc.mdf"))
{
File.UnLock(abc.mdf);
}
How can i do this in c#
created a installer for this service. it is installed successfully also. but
the problem is while i uninstall the application,it shows an error "mdf file
is being used by another process.".the lock is held by sqlserver. so
i want to check like this
pseudocode:
if(File.IsLock("abc.mdf"))
{
File.UnLock(abc.mdf);
}
How can i do this in c#