var db = Database.Open("SmallBakery");
var selectQueryString = "SELECT * FROM Product ORDER BY Name";
}
Small Bakery Products
| Id | Product | Description | Price |
|---|---|---|---|
| @row.Id | @row.Name | @row.Description | @row.Price |
Here is my code i tried many time but con't connect i shows (
An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code
Additional information: 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
)some one told me do some changes in web.config file but i don't know which type of changes are that?

Francis SusaimichaelPosted Jan 11, 2016, 4:30 AM
providerName="System.Data.SqlClient" />
if (mySetting == null || string.IsNullOrEmpty(mySetting.ConnectionString))
throw new Exception("Fatal error: missing connecting string in web.config file");
conString = mySetting.ConnectionString;
Manas MohapatraPosted Jan 11, 2016, 4:29 AM