Click here to Skip to main content
15,912,897 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to bind Folder or Directory Name with sql Database.
It means, if I update our database, directory name will automatically update.
can it possible.
Posted
Comments
Herman<T>.Instance 26-Nov-13 7:34am    
what you want to update? Folder of the database files, any other file? Please explain.
Eng. Ashish Srivastava 26-Nov-13 7:49am    
I want to update sql database using asp.net, then folder name automatically change if we update our database, which is created on server.
it means I want to bind folder name with sql databse.

1 solution

The only way I can think of is to use a trigger that calls the xp_cmdshell stored procedure to then call a command line app that will then change the folder name. This approach is not a good one because that xp_cmdshell is often disabled on many servers.

Or, have a windows service that monitors the database, maybe once every minute using a timer, and then makes the change to the folder.

I don't think there is any way to natively bind them.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900