Hello all...
can anyone tell me how I delete database file from C:\Program Files (x86)\Microsoft SQL Server\MSSQL.1\MSSQL\Data\[database name] . this path .
I attached database from sql server . its can deleted by UI. but not programmatically.
I use
RemoveDirectory(file path);
this function ... but this is not working .
what should i do .