Click here to Skip to main content
15,899,754 members
Home / Discussions / Database
   

Database

 
GeneralRe: Trouble with query Pin
Edbert P19-Feb-04 13:28
Edbert P19-Feb-04 13:28 
GeneralHelp with big stored procedure Pin
Verdant12317-Feb-04 20:25
Verdant12317-Feb-04 20:25 
GeneralRe: Help with big stored procedure Pin
Not Active18-Feb-04 1:06
mentorNot Active18-Feb-04 1:06 
GeneralRe: Help with big stored procedure Pin
Verdant12318-Feb-04 1:58
Verdant12318-Feb-04 1:58 
Generalgetting columns data rowwise Pin
percyvimal17-Feb-04 16:59
percyvimal17-Feb-04 16:59 
GeneralRe: getting columns data rowwise Pin
Mazdak17-Feb-04 18:23
Mazdak17-Feb-04 18:23 
GeneralCreating SQL tables from XML schema Pin
blurp17-Feb-04 13:04
blurp17-Feb-04 13:04 
GeneralShowing Multiple tables in Datagrid Pin
Qamarwis17-Feb-04 9:56
Qamarwis17-Feb-04 9:56 
Hi!
I m working on an IS system being developed in asp.net using C#.
Now my problem is that i have 2 tables namely
USER1 [having fields like UserID, FName, LName, .....] and EMPLOYEE[having fields like Employee_ID, Job_Title1, Industry_Sector1, Industry_Sector2.....]
Employee_ID is the Foriegn Key for UserID in User1 Table.
now i take the join as:
string query="Select FName, LaName, Job_Title1, Industry_Sector1 from User1 u, Employee e where u.UserID=e. Employee_ID and e.Industry_Sector1='"+Human Resourses+"'";

then after establishing the connection i have my code as:

SqlCommand mycommand =new SqlCommand(query, MyConnection);
datagridEmployee.DataSource=Command.ExecuteReader();
datagridEmployee.DataBind();
....
now i get the following error.
A Field or prperty with the name "Employee_ID" was not found on the selected source.

Does any on have the solution,. I mean can a datahrid support more than onetables data at a time? or whts the problem??
waiting 4 reply
GeneralRe: uMultiple tables in Datagrid Pin
Mazdak17-Feb-04 10:01
Mazdak17-Feb-04 10:01 
QuestionWhat is ??? The Problem Pin
jinbabaj17-Feb-04 3:56
jinbabaj17-Feb-04 3:56 
AnswerRe: What is ??? The Problem Pin
Edbert P17-Feb-04 17:19
Edbert P17-Feb-04 17:19 
GeneralRetrieving a list of tables (ADO) Pin
pl0p16-Feb-04 17:28
pl0p16-Feb-04 17:28 
GeneralRe: Retrieving a list of tables (ADO) Pin
Mazdak16-Feb-04 17:47
Mazdak16-Feb-04 17:47 
GeneralRe: Retrieving a list of tables (ADO) Pin
-Dr_X-20-Feb-04 11:16
-Dr_X-20-Feb-04 11:16 
GeneralAccess Pin
Anonymous16-Feb-04 16:05
Anonymous16-Feb-04 16:05 
GeneralRe: Access Pin
-Dr_X-20-Feb-04 11:23
-Dr_X-20-Feb-04 11:23 
GeneralSelect MID?? instead of TOP Pin
krisp16-Feb-04 11:26
krisp16-Feb-04 11:26 
GeneralRe: Select MID?? instead of TOP Pin
John Kuhn16-Feb-04 11:46
John Kuhn16-Feb-04 11:46 
GeneralRe: Select MID?? instead of TOP Pin
krisp16-Feb-04 11:52
krisp16-Feb-04 11:52 
GeneralRe: Select MID?? instead of TOP Pin
John Kuhn16-Feb-04 15:13
John Kuhn16-Feb-04 15:13 
GeneralSQL Server 2000 Connection From ASP Pin
SamAmman15-Feb-04 22:32
SamAmman15-Feb-04 22:32 
GeneralRe: SQL Server 2000 Connection From ASP Pin
Marcie Jones16-Feb-04 2:59
Marcie Jones16-Feb-04 2:59 
GeneralRe: SQL Server 2000 Connection From ASP Pin
Mike Dimmick17-Feb-04 6:41
Mike Dimmick17-Feb-04 6:41 
GeneralBoy I have a goober of a problem. Pin
Anonymous15-Feb-04 21:23
Anonymous15-Feb-04 21:23 
GeneralProblem with simple SQL query :D Pin
gamerPotatoe15-Feb-04 21:10
gamerPotatoe15-Feb-04 21:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.