Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I hope the teachers and you help do.toi are school management software. in this software you have two database is danhmuc.mdf and hocsinh.mdf.which
1: database danhmuc.mdf contains basic information.
2: database hocsinh.mdf contains components handle the learning of students.
I can not get access to retrieve data from database danhmuc through within the database hocsinh.
I write in a language model asp.net MVC3 standard Entity Framework Code First and SQL server.
I hope the teachers and sisters for help.
**File web.config
<connectionstrings>
<add name="ApplicationServices">
connectionString="data source=.\SQLEXPRESS;Integrated Security=SSPI;AttachDBFilename=|DataDirectory|aspnetdb.mdf;U ser Instance=true"
providerName="System.Data.SqlClient" />
<add name="TTTL_HocsinhContext">
connectionString="Data Source=TTTL-PM;Initial Catalog=TTTL_Hocsinh;User ID=sa;Password=...;MultipleActiveResultSets=True;"
providerName="System.Data.SqlClient"/>
<add name="TTTL_DanhmucContext">
connectionString="Data Source=TTTL-PM;Initial Catalog=TTTL_Danhmuc;User ID=sa;Password=...;MultipleActiveResultSets=True;"
providerName="System.Data.SqlClient"/>
Posted
Comments
Jameel VM 26-Mar-13 1:26am    
Acutally what's the problem?did you try anything?

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