分享

写回答

发帖

[提问] 请求斑竹帮忙。。MSSQL问题

GoDaddy GoDaddy 1958 人阅读 | 11 人回复

发表于 2009-8-21 12:09:59 | 显示全部楼层 |阅读模式

实在崩溃了,一直连接不上数据库,斑竹能留下QQ吗?

我把FTP信息,网站信息什么的给斑竹,麻烦帮我弄下吧,谢谢了。。。崩溃了都。

回答|共 11 个

add.c

发表于 2009-8-21 12:43:58 | 显示全部楼层

什么错误提示?

Cheneiz

发表于 2009-8-21 14:05:12 | 显示全部楼层

我把MSSQL的地址,名字,密码都告诉了做网站的,但是他们连接不上。
斑竹能帮下忙吗,留下QQ啊。。。


错误提示:

Server Error in '/' Application.
--------------------------------------------------------------------------------

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.  

Stack Trace:


[SqlException (0x80131904): A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)]
   System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +4844759
   System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +194
   System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, SqlConnection owningObject) +4858065
   System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +90
   System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +376
   System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +221
   System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +189
   System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +185
   System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +31
   System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +433
   System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
   System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +499
   System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +65
   System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +117
   System.Data.SqlClient.SqlConnection.Open() +122
   System.Data.Linq.SqlClient.SqlConnectionManager.UseConnection(IConnectionUser user) +44
   System.Data.Linq.SqlClient.SqlProvider.get_IsSqlCe() +45
   System.Data.Linq.SqlClient.SqlProvider.InitializeProviderMode() +20
   System.Data.Linq.SqlClient.SqlProvider.System.Data.Linq.Provider.IProvider.Execute(Expression query) +57
   System.Data.Linq.DataContext.ExecuteMethodCall(Object instance, MethodInfo methodInfo, Object[] parameters) +69
   absDataContext.GetSysState() +83
   SysMark.GetSysState() +41
   login.ImageButton1_Click(Object sender, ImageClickEventArgs e) +265
   System.Web.UI.ImageClickEventHandler.Invoke(Object sender, ImageClickEventArgs e) +0
   System.Web.UI.WebControls.ImageButton.OnClick(ImageClickEventArgs e) +108
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +118
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +10
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +13
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +36
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1565




--------------------------------------------------------------------------------
Version Information: Microsoft .NET Framework Version:2.0.50727.3053; ASP.NET Version:2.0.50727.3053
RAKSmart

Cheneiz

发表于 2009-8-21 14:24:49 | 显示全部楼层

斑竹我加你QQ了啊。。怎么没通过啊?

add.c

发表于 2009-8-21 14:28:09 | 显示全部楼层

可能是数据库信息你填写错了
你可以参考:http://bbs.idcspy.com/thread-19573-1-1.html 查到数据库信息
我QQ未上

add.c

发表于 2009-8-21 14:29:06 | 显示全部楼层

看错误提示
应该是你创建数据库的时候没有选择允许远程链接吧?

Cheneiz

发表于 2009-8-21 14:33:48 | 显示全部楼层

还原不了数据库现在。

Cheneiz

发表于 2009-8-21 14:34:15 | 显示全部楼层

斑竹能上下QQ吗?

现在还原不了数据库。

add.c

发表于 2009-8-21 14:46:23 | 显示全部楼层

回复 7# 的帖子

还原不了数据库又有什么提示呢?
我对数据库也不懂
你把提示发出来我按照以前的方法帮你看看

Cheneiz

发表于 2009-8-21 14:52:09 | 显示全部楼层

进到SQLServer里面,点小铅笔图标,进去,然后进Resfore,我里面有两个数据库备份:

gallup.bak
gallup_200908201831.BAK  

我想还原:gallup.bak

但是还原数据库,结果提示:

Validation Error: For security reasons, you can only restore a SQL Server database backup file that previously came from a backup on our system. Click Cancel to continue.
Click on this link for more help.



我把英文翻译后,提示:


验证错误:出于安全原因,你只能恢复SQL Server数据库备份文件,在此之前是来自于我们的系统备份。单击取消以继续。

[ 本帖最后由 Cheneiz 于 2009-8-21 02:59 PM 编辑 ]
您需要登录后才可以回帖 登录 | 注册

本版积分规则