How do I create all the ASP.Net tables, sprocs etc in a database that already has data (non conflicting) in it.
如何在已经包含数据(非冲突)的数据库中创建所有ASP.Net表,sprocs等。
3 个解决方案
#1
If you have access to the database, run the following commands in command line:
如果您有权访问数据库,请在命令行中运行以下命令:
cd "C:\Windows\Microsoft.NET\Framework\v2.0.50727"
aspnet_regsql
That will start a guide that will help you add all the tables and sprocs to any table you can access from that computer.
这将启动一个指南,帮助您将所有表和sprocs添加到您可以从该计算机访问的任何表。
#2
From an article on 4GuysFromRolla, go to the %WINDOWS%\Microsoft.NET\Framework\v2.0.50727\
directory and run
从4GuysFromRolla上的文章中,转到%WINDOWS%\ Microsoft.NET \ Framework \ v2.0.50727 \目录并运行
-- To use Windows Authentication (i.e., a "trusted connection"), use:
- 要使用Windows身份验证(即“可信连接”),请使用:
aspnet_regsql.exe -S <server> -E -d <database> -A all
aspnet_regsql.exe -S
-- To use SQL Server credentials (a UserID and Password), use:
- 要使用SQL Server凭据(用户标识和密码),请使用:
aspnet_regsql.exe -S <server> -U <login id> -P <password> -d <database> -A all
aspnet_regsql.exe -S
There is also a wizard to help you through the steps.
还有一个向导可以帮助您完成这些步骤。
#3
This should help you:
这应该可以帮到你:
#1
If you have access to the database, run the following commands in command line:
如果您有权访问数据库,请在命令行中运行以下命令:
cd "C:\Windows\Microsoft.NET\Framework\v2.0.50727"
aspnet_regsql
That will start a guide that will help you add all the tables and sprocs to any table you can access from that computer.
这将启动一个指南,帮助您将所有表和sprocs添加到您可以从该计算机访问的任何表。
#2
From an article on 4GuysFromRolla, go to the %WINDOWS%\Microsoft.NET\Framework\v2.0.50727\
directory and run
从4GuysFromRolla上的文章中,转到%WINDOWS%\ Microsoft.NET \ Framework \ v2.0.50727 \目录并运行
-- To use Windows Authentication (i.e., a "trusted connection"), use:
- 要使用Windows身份验证(即“可信连接”),请使用:
aspnet_regsql.exe -S <server> -E -d <database> -A all
aspnet_regsql.exe -S
-- To use SQL Server credentials (a UserID and Password), use:
- 要使用SQL Server凭据(用户标识和密码),请使用:
aspnet_regsql.exe -S <server> -U <login id> -P <password> -d <database> -A all
aspnet_regsql.exe -S
There is also a wizard to help you through the steps.
还有一个向导可以帮助您完成这些步骤。
#3
This should help you:
这应该可以帮到你: