I am having problems with in the CRUD operation from the tutorial I found here ...
http://www.c-sharpcorner.com/UploadFile/9f4ff8/wpf-perform-all-database-operations/
When I use any of the functions and re-run the applications the data is not showing the reflection in either SQL Server or at the front end. I am using to use this at work, which they have VS 2010 Ultimate Edition and SQL Enterprise Edition 2012.
Could it be something I need to do in the following and so what needs to be done? Could it be something I need to do in the following and so what needs to be done?
SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDatabase.mdf;Integrated Security=True;User
Instance=True");
public MainWindow()
SqlConnection conn = new SqlConnection(@"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\MyDatabase.mdf;Integrated Security=True;
User Instance=True");
public MainWindow()
Loading
Posted Sep 25, 2013, 7:24 AM
Try with the following connectionstirng,
Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;
If you want to know more connection string, refer the below urls.
http://www.connectionstrings.com/sql-server-2012/
http://www.connectionstrings.com
Hope this helps you. !
Sanjeeb LenkaPosted Jun 24, 2013, 1:04 AM
http://www.dotnetspark.com/kb/1870-crud-operation-datagrid-wpf-tutorial.aspx
http://www.c-sharpcorner.com/uploadfile/dpatra/crud-operation-in-datagrid-in-wpf/