简体   繁体   English

在SQL Azure中创建新用户

[英]Creating new users in SQL Azure

I have been assigned the task of converting an SQL Server Database to an SQL Azure Database. 我被分配了将SQL Server数据库转换为SQL Azure数据库的任务。 During the process I encountered these problems: 在此过程中,我遇到了以下问题:

  1. Cannot use the Object Browser in Management Studio 2008 v10. 无法在Management Studio 2008 v10中使用对象浏览器 Is there a fix to this? 有解决办法吗?

  2. I cannot create new Users under the Security Section since I cant use the Object Browser. 由于无法使用对象浏览器,因此无法在“安全性”部分下创建新用户
    Basically I want to create an Admin user and NonAdmin user each with their own privileges to UPDATE, DELETE, INSERT commands on different tables in the database. 基本上,我想创建一个Admin用户和NonAdmin用户,分别对数据库中不同表上的UPDATE,DELETE,INSERT命令具有自己的特权。

  3. Basically my web application has a sign up form how can I associate new registered user to the SQL Azure Roles during the sign up process to limit them from perfroming ertain commands on the database tables? 基本上,我的Web应用程序具有注册表单,如何在注册过程中将新的注册用户与SQL Azure角色相关联 ,以限制他们在数据库表上执行某些命令?

Just answer your questions. 只需回答您的问题即可。

1, No SSMS 2008 doesn't support Azure. 1,没有SSMS 2008不支持Azure。 You MUST use SSMS 08 R2. 您必须使用SSMS 08 R2。

2, If you are using SSMS 08 R2 the object explorer will be appeared. 2,如果您使用的是SSMS 08 R2,则将显示对象资源管理器。 But the features when connecting to SQL Azure will be very limited. 但是,连接到SQL Azure时的功能将非常有限。 The designer and dialog are disabled which means all tasks should be done by using the SQL script. 设计器和对话框被禁用,这意味着所有任务都应使用SQL脚本完成。

3, Not pretty sure what you mean, but you can try what you are doing on SQL Server since SQL Azure is very very similar with SQL Server. 3,不太清楚您的意思,但是您可以尝试在SQL Server上执行的操作,因为SQL Azure与SQL Server非常相似。

Data-tier Application and SQL Azure MW are good tool for migrating your existing database to SQL Azure. 数据层应用程序和SQL Azure MW是将现有数据库迁移到SQL Azure的好工具。 But you can still use the build-in feature in SSMS 08 R2 to migrate the database schema as well. 但是,您仍然可以使用SSMS 08 R2中的内置功能来迁移数据库架构。 Just use the Generate Script menu item from your local database, and make sure you selected SQL Azure in the "Script for the database engine type". 只需使用本地数据库中的“生成脚本”菜单项,并确保在“数据库引擎类型的脚本”中选择了SQL Azure。

Check out the official page on how to move data etc..'Migrating Databases to SQL Azure' 查阅有关如何移动数据等的官方页面。“将数据库迁移到SQL Azure”

http://msdn.microsoft.com/en-us/library/windowsazure/ee730904.aspx http://msdn.microsoft.com/zh-CN/library/windowsazure/ee730904.aspx

Also check out the 'SQL Azure Migration Wizard v3.8.3' http://sqlazuremw.codeplex.com/ 另请查看“ SQL Azure迁移向导v3.8.3” http://sqlazuremw.codeplex.com/

Migrating Databases to SQL Azure by Using Data-tier Application Export and Import is probably your best option, the migration wizard is a great tool, I have used both. 使用数据层应用程序导出和导入将数据库迁移到SQL Azure可能是您的最佳选择,迁移向导是一个很好的工具,我已经使用了这两种方法。

re: 1 you need service packs, I'm not sure 2008 V10 is supported, get the latest version or upgrade to 2008R2 Mgmt Studio (latest) 2: use the tools above 3: not sure here what you are trying to do to correctly answer. 回复:1您需要Service Pack,我不确定是否支持2008 V10,获取最新版本或升级到2008R2 Mgmt Studio(最新)2:使用上述工具3:不确定此处您要正确执行的操作回答。

hope that helps... 希望有帮助...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM