如何使用sql Database绑定文件夹或目录名称。 [英] How to bind Folder or Directory Name with sql Database.

查看:59
本文介绍了如何使用sql Database绑定文件夹或目录名称。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将文件夹或目录名称与sql数据库绑定。

这意味着,如果我更新数据库,目录名称将自动更新。

是否可能。

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.

推荐答案

我能想到的唯一方法是使用调用xp_cmdshell存储过程的触发器然后调用命令行应用程序,然后更改文件夹名称。这种方法不是很好,因为许多服务器上经常禁用xp_cmdshell。



或者,有一个监视数据库的Windows服务,可能每分钟使用一次计时器,然后对文件夹进行更改。



我认为没有办法原生地绑定它们。
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.


这篇关于如何使用sql Database绑定文件夹或目录名称。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆