将其他数据库添加到我的应用程序 [英] Add additional database to my application

查看:61
本文介绍了将其他数据库添加到我的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想连接到sql服务器数据库,但是我当前的开发计算机与sql服务器数据库计算机不在同一域中.我可以在不添加到同一域的情况下连接该数据库吗?

I want to connect to a sql server database, but my current developing machine is not in the same domian with the sql server database machine. Can I connect that database without add into the same domain?

推荐答案

如果数据库服务器需要启用SQL Server身份验证(混合模式身份验证),则需要启用它尚未启用.

You need to enable SQL Server authentication (mixed mode authentication) for the database server if it has not been enabled.

一旦启用了混合模式身份验证并重新启动了数据库服务器,则需要添加SQL Server登录名和密码.一旦创建了登录名,则需要对其进行分配.的dbo特权 您要使用的数据库.您将在发布向导中使用SQL Server身份验证+登录名+密码,而不是Windows身份验证.

Once you have enabled mixed mode authentication and restarted the database server, you need to add a SQL Server Login + Password. Once the Login has been created, it needs to be assigned dbo privileges for the database you want to use. You will use SQL Server Authentication + Login + Password in the publish wizard instead of Windows Authentication.

在Internet上搜索创建sql服务器用户";或创建sql服务器登录名"有关更详细的文档和说明.

Search the internet for "create sql server user" or "create sql server login" for more detailed documentation and instructions.


这篇关于将其他数据库添加到我的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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