aspnet_regsql 根本不工作

发布于 2024-08-24 14:03:06 字数 264 浏览 3 评论 0原文

我想在自己的数据库上创建 ASP.NET 用户数据库模板,因为我想将用户系统与数据库的其余部分完全分离。正如我所读到的,我需要使用 aspnet_regsql 工具。我放置了所有选项(因为我的数据库在 SQLEXPRESS 上运行,并且位于项目文件夹中的 mdf 文件中)。程序启动并看似运行没有任何错误,但是,当我之后打开数据库时,没有添加表或存储过程。

另一件事:我又做了一项测试。我故意给 -d 选项提供了错误的 mdf 文件地址,令人惊讶的是,程序正确“完成”,但没有任何文件被创建或修改。

I would like to create the ASP.NET User database template on a database of my own, because I'd like to fully untegrate the user system with the rest of my DB. As I've read, i needed to use the aspnet_regsql tool. I put all the options (because my database is running on SQLEXPRESS and is in an mdf file in my project's folder). the program starts and seemingly runs without any errors, however, when I open the database after that, not tables or stored procedures have been added.

One more thing: I did one more test. I intentionally gave the -d option a wrong mdf file address, and surprisingly, the program "finished" correctly, yet no file was crated or modified whatsoever.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

烟酒忠诚 2024-08-31 14:03:06

问题就解决了。请参阅我自己对第一条的评论

The question was resolved. Please, see my own comment on the first one

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文