hosein31o
جمعه 29 آذر 1387, 22:57 عصر
با سلام من هنگام کار با sql server 2005 تو c# برای ایجاد connection string مشکل دارم یا بهتره بگم connection string را دارم ولی موقعی که برنامه می خواد اجرا بشه این پیغام خطا رو میده :
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
در ضمن sql server 2005 هم Run هست برای همینه که نمیدونم اشکال از کجاست . اینم connection string که استفاده می کنم :
SqlConnection objsqlconnnection = new SqlConnection("server=localhost;database=anbar_db;user id=sa");
ممنون میشم منو راهنمایی کنین قبلا با sql server 2000 این مشکلو نداشتم !!!
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server
در ضمن sql server 2005 هم Run هست برای همینه که نمیدونم اشکال از کجاست . اینم connection string که استفاده می کنم :
SqlConnection objsqlconnnection = new SqlConnection("server=localhost;database=anbar_db;user id=sa");
ممنون میشم منو راهنمایی کنین قبلا با sql server 2000 این مشکلو نداشتم !!!