Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I'm new in the WPF. I'm doing one project for my final year project. I feel quite strange when handling database connection in WPF.

I got all the codes for the insertion into the database & it works but when I open the "house.mdf" which is the database that I created for my project. It still remain empty? Why like this?

I will have to need to open using SQL Server 2008 R2 to the house.mdf file then I can view the values that I already insert into the table of database.

Hope to receive reply.Thank you~~
Posted
Comments
Sergey Alexandrovich Kryukov 4-Nov-13 22:32pm    
How can WPF possibly affect the choice of database? It depends on your purpose. The question does not really make much sense...
—SA
A-MaxLee 4-Nov-13 23:34pm    
I'm quite new to WPF. As I usually works with web pages and first dealing with system.
Sorry for not clearly stated out the question properly.

My problem is like this.
When I done with the insertion & save to the database and then it fine. But when I head to the Server Explorer> Data Connection> house.mdf(Which is my project database)> Tables> family(My table) & double click on it & click on the "Show Table Data" and it still remain empty. That's the stranger part for me.

But if I'm using SQL Server 2008 R2 then I can view the latest updated database. May I ask that does this related with the solution configuration as I set it to "Release"? Hope to receive your reply :)
Sergey Alexandrovich Kryukov 5-Nov-13 0:32am    
No, how can it be related to configuration? I don't know why you have empty table, don't have enough information...
—SA
BulletVictim 5-Nov-13 0:42am    
How are you linking the database to the project or how are you connecting to the database?
A-MaxLee 5-Nov-13 10:01am    
Now I'm connecting with the database by using SQL Server 2008 R2 only & I always locate the database created in the "Release" folder inside the bin folder of my project.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900