Click here to Skip to main content
15,891,646 members
Home / Discussions / Database
   

Database

 
GeneralCopying SQL Files Pin
Peter B26-Mar-08 5:56
Peter B26-Mar-08 5:56 
AnswerRe: Copying SQL Files Pin
A Wong26-Mar-08 6:43
A Wong26-Mar-08 6:43 
GeneralRe: Copying SQL Files Pin
ExRaptor26-Mar-08 13:22
ExRaptor26-Mar-08 13:22 
GeneralRe: Copying SQL Files Pin
r_mohd26-Mar-08 18:54
r_mohd26-Mar-08 18:54 
GeneralRe: Copying SQL Files Pin
Peter B27-Mar-08 1:30
Peter B27-Mar-08 1:30 
GeneralSSIS Pacakge Pin
kibromg26-Mar-08 5:29
kibromg26-Mar-08 5:29 
GeneralCross post - please ignore Pin
pmarfleet26-Mar-08 10:26
pmarfleet26-Mar-08 10:26 
QuestionCast&lt;&gt;? Table<tabelname> to DataTable ...</tabelname> Pin
Jammer25-Mar-08 23:24
Jammer25-Mar-08 23:24 
Hi All,

I've just started looking at LINQ and it seems cool 'n all but for getting data into a DataSet / DataTable I seem to have defaulted back to plain old .NET DataAdaptors and issuing normal "SELECT * FROM ..." commands.

I was doing this:

DataContext dc = new DataContext(conn);
Table<TableName> tablename = dc.GetTable<TableName>();


I read some online samples (that were referencing System.Query which I can't find!) and they were creating plain .NET tables (i need this for databinding to in a UI) by using .ToDataTable(); which seems to be a really handy command that doesn't appear in my intellisense.

What's the easiest route from a LINQ Table<TableName> to a plain old .NET DataTable?

Jammer

Going where everyone here has gone before! Smile | :)
My Blog

GeneralRe: Cast&lt;&gt;? Table to DataTable ... Pin
Pete O'Hanlon25-Mar-08 23:53
mvePete O'Hanlon25-Mar-08 23:53 
GeneralRe: Cast&lt;&gt;? Table to DataTable ... Pin
Jammer26-Mar-08 0:33
Jammer26-Mar-08 0:33 
GeneralRe: Cast&lt;&gt;? Table to DataTable ... Pin
Pete O'Hanlon26-Mar-08 0:37
mvePete O'Hanlon26-Mar-08 0:37 
GeneralView vs Table-valued functions. Performance Analysis Pin
Syed Mehroz Alam25-Mar-08 22:02
Syed Mehroz Alam25-Mar-08 22:02 
QuestionHow can i run a Delete Statement from the following Query Pin
Vimalsoft(Pty) Ltd25-Mar-08 21:58
professionalVimalsoft(Pty) Ltd25-Mar-08 21:58 
AnswerRe: How can i run a Delete Statement from the following Query Pin
Dobromir Dimitrov25-Mar-08 22:08
Dobromir Dimitrov25-Mar-08 22:08 
GeneralRe: How can i run a Delete Statement from the following Query Pin
Vimalsoft(Pty) Ltd25-Mar-08 22:15
professionalVimalsoft(Pty) Ltd25-Mar-08 22:15 
QuestionHow can I use a column alias in a where clause? Pin
Dobromir Dimitrov25-Mar-08 21:53
Dobromir Dimitrov25-Mar-08 21:53 
GeneralRe: How can I use a column alias in a where clause? Pin
Syed Mehroz Alam25-Mar-08 22:08
Syed Mehroz Alam25-Mar-08 22:08 
GeneralRe: How can I use a column alias in a where clause? Pin
Dobromir Dimitrov25-Mar-08 22:13
Dobromir Dimitrov25-Mar-08 22:13 
Questionhow can I get top(N) rows for each group Pin
Dobromir Dimitrov25-Mar-08 21:31
Dobromir Dimitrov25-Mar-08 21:31 
GeneralRe: how can I get top(N) rows for each group Pin
i.j.russell29-Mar-08 9:17
i.j.russell29-Mar-08 9:17 
GeneralGive example : How I can Use index in sql table Pin
Ashish Kumar Vyas25-Mar-08 21:06
Ashish Kumar Vyas25-Mar-08 21:06 
GeneralRe: Give example : How I can Use index in sql table Pin
Ashfield25-Mar-08 22:14
Ashfield25-Mar-08 22:14 
GeneralRe: Give example : How I can Use index in sql table Pin
Ashish Kumar Vyas26-Mar-08 19:06
Ashish Kumar Vyas26-Mar-08 19:06 
GeneralRe: Give example : How I can Use index in sql table Pin
Ashfield26-Mar-08 21:53
Ashfield26-Mar-08 21:53 
GeneralRe: Give example : How I can Use index in sql table Pin
Justin Porteous27-Mar-08 9:03
Justin Porteous27-Mar-08 9:03 

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.