Click here to Skip to main content
15,887,350 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Query Pin
Blue_Boy3-Apr-08 12:14
Blue_Boy3-Apr-08 12:14 
AnswerRe: SQL Query Pin
mushfiqcs2-Apr-08 1:10
mushfiqcs2-Apr-08 1:10 
GeneralRe: SQL Query Pin
mushfiqcs2-Apr-08 1:10
mushfiqcs2-Apr-08 1:10 
QuestionRAM usage Pin
Dobromir Dimitrov31-Mar-08 21:55
Dobromir Dimitrov31-Mar-08 21:55 
GeneralRe: RAM usage Pin
GuyThiebaut31-Mar-08 23:56
professionalGuyThiebaut31-Mar-08 23:56 
GeneralRe: RAM usage Pin
Ali Rashid1-Apr-08 23:28
Ali Rashid1-Apr-08 23:28 
GeneralRe: RAM usage Pin
SimulationofSai2-Apr-08 1:23
SimulationofSai2-Apr-08 1:23 
GeneralMS Acess SQL Query using VS Query Builder and Variable Field Names Pin
Christian Yeates31-Mar-08 21:33
Christian Yeates31-Mar-08 21:33 
I am using the Query Builder in Visual Studio to fill my Dataset but one of the field/column names is unknown until runtime; therefore I wish to specify this on the fly.

My current query is as follows:

SELECT Cards.Id, Cards.Card, Cards.FirstName, Cards.LastName, Cards.AccessLevel, Cards.StartDate, Cards.EndDate, Cards.fTitle, ?,<br />
Photo.Id AS Expr1, Photo.Photo,<br />
AccLevel.AccessLevel AS Expr2, AccLevel.Name AS AccessName<br />
<br />
FROM (Cards<br />
LEFT JOIN Photo ON<br />
Cards.Card = Photo.Id)<br />
LEFT JOIN AccLevel ON<br />
Cards.AccessLevel = AccLevel.AccessLevel


The question mark represents a variable field name. Below is the code which fills the dataset by calling the query above - although for now, I have passed it a fixed string which represents one of the fields in the ‘Cards’ table and should replace the question mark in the query:

cards_Photo_AccessLevelTableAdapter.Fill(MyDataSet.Cards_Photo_AccessLevel, "Cards.fDepartment");

Although my code builds ok, an exception is caused when the Dataset is filled as above.

Any help would be much appreciated!!

Regards,

Christian
Questionhow to save only time in database field Pin
findtango31-Mar-08 19:10
findtango31-Mar-08 19:10 
GeneralRe: how to save only time in database field Pin
pmarfleet31-Mar-08 19:45
pmarfleet31-Mar-08 19:45 
GeneralRe: how to save only time in database field Pin
Ali Rashid31-Mar-08 23:52
Ali Rashid31-Mar-08 23:52 
QuestionCombobox's selected column must fill the Gridview Pin
Tristania Dementium31-Mar-08 2:38
Tristania Dementium31-Mar-08 2:38 
Generalselect and group by problem Pin
Xmen Real 31-Mar-08 1:13
professional Xmen Real 31-Mar-08 1:13 
GeneralRe: select and group by problem Pin
Rob Philpott31-Mar-08 1:20
Rob Philpott31-Mar-08 1:20 
GeneralRe: select and group by problem Pin
Xmen Real 31-Mar-08 1:22
professional Xmen Real 31-Mar-08 1:22 
GeneralRe: select and group by problem Pin
Rob Philpott31-Mar-08 1:26
Rob Philpott31-Mar-08 1:26 
GeneralRe: select and group by problem Pin
Xmen Real 31-Mar-08 1:30
professional Xmen Real 31-Mar-08 1:30 
Questioncurrent date query Pin
Pankaj Garg30-Mar-08 19:41
Pankaj Garg30-Mar-08 19:41 
GeneralRe: current date query Pin
Andy_L_J30-Mar-08 20:14
Andy_L_J30-Mar-08 20:14 
QuestionRe: current date query Pin
Pankaj Garg30-Mar-08 20:36
Pankaj Garg30-Mar-08 20:36 
GeneralRe: current date query Pin
Andy_L_J30-Mar-08 21:43
Andy_L_J30-Mar-08 21:43 
GeneralRe: current date query Pin
Ashfield30-Mar-08 21:17
Ashfield30-Mar-08 21:17 
GeneralRe: current date query Pin
Pankaj Garg30-Mar-08 21:27
Pankaj Garg30-Mar-08 21:27 
GeneralRe: current date query Pin
Ashfield30-Mar-08 23:20
Ashfield30-Mar-08 23:20 
GeneralRe: current date query Pin
Sankar Komma 2-Apr-08 11:10
Sankar Komma 2-Apr-08 11: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.