2011-01-18 16 views
1

ように私は私達のMSSQL2005データベースプロバイダによってMSSQL2005を使用してリモートサーバーIPに接続する方法は?

Server IP : 100.20.255.34 
Databaase name : insss 
User: nas0 
password : ymkv45SEv 

を提供し、次の詳細は、私は私のオフラインのサイトで私のweb.configファイルに次のたconnectionStringを持っている:私は

たい

<add name="ConnectionString" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\ASPNETDB.MDF;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/> 

上記の詳細を使用して上記のweb.config接続文字列を編集して、MSSQl2005ホスティングプロバイダに接続する方法....?

これを行うには接続文字列を編集する方法がわかりません!!

私は私のサイトwww.vbi.volvobusesindia.comを実行すると、次のエラーは、ページの最上部で発生...

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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)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: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

+3

を私はものはありません願っています実際のデータベースログイン資格情報、Clix –

+1

キャップロックを使用しないでください。 – RPM1984

答えて

2

これはうまく動作するはずです:

<add name="ConnectionString" connectionString="Data Source=100.20.255.34;Initial Catalog=insss;User ID=nas0;Password=ymkv45SEv;Integrated Security=False" providerName="System.Data.SqlClient"/> 
+0

私のサイトを実行すると、ページ上部に次のエラーが表示されます。 www.vbi.volvobusesindia.com – ClixNCash

+0

これは、何らかの理由でMSSQLサーバーがあなたのWebサーバーが存在するネットワークからアクセスできない - これはファイアウォールの問題(この場合、外部IPアドレスからMSSQLへの接続を許可する必要があります)か、カスタムポートを割り当ててMSSQLに接続するだけですそれを接続文字列にも指定します。 –