English 中文(简体)
2. 更改Salkalogin违约数据库
原标题:Changing the default database for a SQL Azure login

我愿修改一个记录仪的缺省数据库,以支持能够进入<>的软件,但不允许轻松改动连接线。 ∗∗∗∗∗∗∗

我已经审议了:

  • 储存程序。 我无法找到一种储存的程序(sp_defaultdb)。 如同我能说的那样,没有在“K”实施。

  • Alterlogin。 www.un.org/Depts/DGACM/index_spanish.htm 不允许<代码> DEFAULT_DATABASE Options.

  • SSMS。 SSMS似乎允许通过SQ接口进行大量用户控制。

想法?

问题回答

联系:

Server=tcp:[serverName].database.windows.net;Database=myDataBase;User ID=[LoginForDb]@[serverName];Password=myPassword;Trusted_Connection=False;Encrypt=True;

在你撰写数据库中链接财产时,你可以改变连接缺省数据库。

SSMS与数据库箱连接,该箱是选项和设计的;在固定的方言上是连续的。

在我的案件中,我设法在主数据库中直接设定一个标识:

CREATE LOGIN newlogin WITH password= password 
GO

CREATE USER newlogin FOR LOGIN newlogin WITH DEFAULT_SCHEMA=[dbo]
GO

我随后在数据库中创建了一个用户,希望能够查阅:

CREATE USER newlogin FOR LOGIN newlogin WITH DEFAULT_SCHEMA=[dbo]
GO

在最后增加该数据库的作用,以获得适当的许可:

Alter role db_owner add member newlogin

Hope this works for you too.

你们已经发现“消除仇恨” DATABASE 选项在L.K.没有。 因此,如果你不能改变你通常指定数据库名称的申请的链接,你就坐下来。

However... is it possible to create an ODBC connection, and configure your application to use ODBC? Using ODBC would allow you to specify a default database.

到目前为止,SSMS中最容易的方法是使用附加参数制成表格,并提供初步数据,例如。

“Initial

在与SSMS登录时,你可以很容易地改变缺省数据库。 然后在Login Dialog的Click the Options Button上点击了“联系财产”表。 在“Connect to database”箱中,该箱进入了贵国数据库的名称。

在能够改变“违约”之后,你必须使用。 数据库

  1. Use "SQL Server Native Client 10.0" or higher instead on using "SQL Server as Driver
  2. Use full user id like UserName@AzureConnnectString

For me it is [email protected]

More details here http://debugmode.net/2011/04/22/connecting-microsoft-access-to-sql-azure/

另一个选择是在主数据库上建立一个地图用户。 这将使SSMS能够与服务器连接,并使用主机作为缺损器,然后用户可以打开数据库。 我不是德国律师协会,所以我不了解这个问题的影响,而是我如何解决这一问题。 我的数据库正被用于一个POC项目,因此没有许多安全要求。





相关问题
页: 1

是否有任何人以良好方式支持LQ数据库?

SQL Azure table size

In mssql2005 when I want to get size of table in MBs, I use EXEC sp_spaceused table . Is there any way to get space used by particular table in SQL Azure using some query or API?

Migrate SQL Server database to SQL Azure

What s the best way to move a normal SQL server database to SQL Azure? Is it right that you can t restore from a backup file? The only way I ve found so far is to script the database (and its data) ...

SQL Azure Reporting

For everyone playing with SQL Azure, what are you using for reporting? Do the Visual Studio reports connect seamlessly? What about reporting services?

Running SQL Azure as a Cluster Node

Seeing as to how I can t find anything at all about it on the interwebs, I suspect that the answer is no, but I figured I d ask... Does anyone know (for certain) if you can run SQL Azure as a node in ...

Is the Entity Framework compatible with SQL Azure?

I cannot get the Entity Framework to work against SQL Azure. Is this just me or is it not intended to be compatible? (I have tried the original release of EF with VS2008 as well as the more recent ...

SQLBulkCopy connection errors when working with SQL Azure

We are currently trying out the SQLBulkCopy API on the new SQL Azure CTP. While we have been able to consistently migrate tables with about a million rows, we are facing connection errors when ...

热门标签