سلام ببخشد من Sql Server رو نصب کردم و می خوام با سی شارپ به هش وصل بشم و از databaseام جدول بگیرم erro میده:
System.Data.SqlClient.SqlException: '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)'
Win32Exception: The system cannot find the file specified
و نمی تونم بهش اصال پیدا کنم و کد هم :
string query = "Select * From amma";
SqlConnection connection = new SqlConnection(connectionString);
SqlDataAdapter adapter = new SqlDataAdapter(query, connection);
DataTable data = new DataTable();
adapter.Fill(data);
return data;
و این هم string که برای مشخصاته "Data Source = (local); Initial Catalog = amma; Integrated Security = SSPI"
این پست در تاریخ {{ dateString(new Date(post.deleteDate)) }} توسط {{ post.deletedByUser }} حذف شده است.
دلیل حذف: {{ post.deleteReason ?? 'نامشخص' }}
زمان پاسخ گویی روز های شنبه الی چهارشنبه ساعت 9 الی 18
فقط به موضوعات مربوط به محصولات آموزشی و فروش پاسخ داده می شود