sange_sabur
یک شنبه 07 مهر 1392, 20:46 عصر
درود
من یه برنامه دارم الان متوجه شدم داخل کانفیگ و کلاس که تعریف شده براش دیتابیس اینجوری تعریف شده
کد کانفیگ
<add key="constring" value="data source = (local); Initial catalog=seaye; Integrated Security=SSPI"/>
کد کلاس
const string strcon = "data source = ali-PC; Initial catalog=saye; Integrated Security=SSPI";
این داره از روی سیستم کامپیوتر میخونه دیتابیسو بنظرم!!
چون این خطا رو میده هنگام ثبت داده
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)
ولی من براش داخل vs دیتابیس ساختم چطوری میتونم جایگزین کنم؟
لطفا اساتید کمک کنند
من یه برنامه دارم الان متوجه شدم داخل کانفیگ و کلاس که تعریف شده براش دیتابیس اینجوری تعریف شده
کد کانفیگ
<add key="constring" value="data source = (local); Initial catalog=seaye; Integrated Security=SSPI"/>
کد کلاس
const string strcon = "data source = ali-PC; Initial catalog=saye; Integrated Security=SSPI";
این داره از روی سیستم کامپیوتر میخونه دیتابیسو بنظرم!!
چون این خطا رو میده هنگام ثبت داده
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)
ولی من براش داخل vs دیتابیس ساختم چطوری میتونم جایگزین کنم؟
لطفا اساتید کمک کنند