rz_assar
15-09-2008, 12:02
سلام رفقا بابا من هرچي توي connection string ام مينوسم كامپيوتر يه بدو بيراهي بمون ميگه چيكار كنم ؟
LocalConnection = new SqlConnection("data source=localhost;database=Alarms;Integrated Security=True");
ولي وقتي همين ياغيو data source=localhost با data source=.\\ sqlexpress عوض ميكنم جواب ميده من
sqlexpress نخام كيو بايد ببينم ؟
پيغام خطا :
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)
كمك كنيد !
LocalConnection = new SqlConnection("data source=localhost;database=Alarms;Integrated Security=True");
ولي وقتي همين ياغيو data source=localhost با data source=.\\ sqlexpress عوض ميكنم جواب ميده من
sqlexpress نخام كيو بايد ببينم ؟
پيغام خطا :
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)
كمك كنيد !