arefba
پنج شنبه 18 شهریور 1389, 02:43 صبح
بسمه تعالی
با سلام من می خواستم از طریق شبکه به یه بانک اس کیو ال در کامپیوتر دیگه وصل شم
مشخصات سیستمی که بانک روشه (مقصد ) به اینصورته
اسم : m-6 آی پی شبکه : 192.168.100.6 اسم بانکم : Library
فایر وال سیستم ها رو خاموش کردم و...
این کد زیر رو خیلی اینور اونور کردم ولی کانکت نشد
SqlConnection conn = new SqlConnection(@"Data Source=192.168.100.6\M-6;Initial Catalog=Library;Integrated Security=True");
conn.Open();
conn.Close();
در آخر هم خطای زیر رو میداد
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)
با سلام من می خواستم از طریق شبکه به یه بانک اس کیو ال در کامپیوتر دیگه وصل شم
مشخصات سیستمی که بانک روشه (مقصد ) به اینصورته
اسم : m-6 آی پی شبکه : 192.168.100.6 اسم بانکم : Library
فایر وال سیستم ها رو خاموش کردم و...
این کد زیر رو خیلی اینور اونور کردم ولی کانکت نشد
SqlConnection conn = new SqlConnection(@"Data Source=192.168.100.6\M-6;Initial Catalog=Library;Integrated Security=True");
conn.Open();
conn.Close();
در آخر هم خطای زیر رو میداد
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)