连接字符串问题。不写入远程服务器上的数据库 [英] connection string issue. not writing to database on remote server

查看:86
本文介绍了连接字符串问题。不写入远程服务器上的数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,


我们已将数据库从sqlserver2003转移到sqlserver2005。

1.存储在web.config中的连接字符串

展开 | 选择 | Wrap | 行号

解决方案

确保您的2005 SQL Server已配置为允许远程连接。


我不知道为什么你会得到页面无法显示或无法找到服务器或DNS错误错误...检查您的Web服务器的事件日志,看看是否有更多详细信息记录在那里无法显示页面。


-Frinny


现在数据库在新服务器上并从VS2005连接。但是当我在表单中填写详细信息并提交时,它不会写入该服务器上的数据库。目前我并不关心我的本地数据库实例。我想知道Web.config中的连接字符串是否正确或者在aspx页面中获取字符串是否正确


在使用SQL Server进行操作并通过应用程序表单后,我看到输入的数据是写入数据库的本地实例但不写入远程数据库。 WHY

HI,

We have shifted our database from sqlserver2003 to sqlserver2005.
1. connection strings stored in web.config

Expand|Select|Wrap|Line Numbers

解决方案

Make sure that your 2005 SQL Server has been configured to allow for remote connections.

I''m not sure why you''d be getting "page cannot be displayed" or "cannot find server or dns error" errors...Check your Web Server''s event logs to see if any more details have been recorded there on why the page could not be displayed.

-Frinny


Now the database is on the new server and from VS2005 its connected. but when I fill in details in a form and submit it does not write to the database on that server. currently I am not bothered about my local instance of the database. I wonder if the connection strings in Web.config is right or fetching the string in aspx page is ok


After juggling with SQL Server and going thru the application form i see that the data entered was written to local instance of the database but not to the remote database. WHY


这篇关于连接字符串问题。不写入远程服务器上的数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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