在web上呈现项目后的连接字符串 [英] Connection String after delpoying project on web

查看:70
本文介绍了在web上呈现项目后的连接字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在开发网站时,Visual Studio中的Hi
我们使用本地机器的连接字符串

但是当我们部署sql server bak文件时,连接字符串中使用的连接字符串是什么数据库与sql server认证

解决方案

我们不能说。

仅仅因为我们不知道你的SQL Server实例名称是什么,或登录用户名或密码 - 所有这些都是可配置的。



远低于您的数据库名称!



首先查看您的网站主机文档:如果您使用的是普通网络托管服务,他们会告诉您服务器实例名称,并为您分配用户ID和密码,或者让你自己配置它们。


Hi in visual studio when developing website we uses Connection String of local machine
But when we deploy the sql server bak file then what will the connection string used in the connection with the database with sql server authentication

解决方案

We can't say.
Simply because we have no idea what your SQL Server instance name will be, or the login user name, or password - all of these things are configurable.

Much less what your database name(s) might be!

Start by looking at your web host documentation: if you are using a "normal" web hosting service, they will tell you the Server instance name, and either assign you user ID and passwords, or let you configure them yourself.


这篇关于在web上呈现项目后的连接字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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