بسم الله الرحمن الرحيم
اخواني الاعزاء / السلام عليكم ورحمة الله وبركاته
انا مبتدئ ب asp.net وعملت هذا المشروع البسيط
private void Page_Load(object sender, System.EventArgs e)
{
// Put user code to initialize the page here
SqlConnection con = new SqlConnection
("server=(ahmed);database=Northwind;Trusted_Connection=yes");
SqlDataAdapter dadap=new SqlDataAdapter("select * from Customers",con );
DataSet ds = new DataSet();
dadap.SelectCommand.CommandText=
("select * from Customers");
dadap.Fill(ds,"Customers");
DataGrid1.DataSource=ds.Tables["Customers"].DefaultView;
DataGrid1.DataBind();
}ولكن ظهرت عندي هذه المشكلة
SQL Server does not exist or access denied.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: SQL Server does not exist or access denied.
Source Error:
Line 34: ("select * from Customers");
Line 35:
Line 36: dadap.Fill(ds,"Customers");
Line 37: DataGrid1.DataSource=ds.Tables["Customers"].DefaultView;
Line 38: DataGrid1.DataBind();
Source File: c:\inetpub\wwwroot\webapplication4\webform1.aspx.cs Line: 36ارجو المساعدة