Click here to Skip to main content
15,907,326 members
Home / Discussions / Database
   

Database

 
GeneralRe: SQL Query Pin
Pete O'Hanlon7-Nov-07 11:34
mvePete O'Hanlon7-Nov-07 11:34 
GeneralRe: SQL Query Pin
Michael Potter7-Nov-07 11:42
Michael Potter7-Nov-07 11:42 
JokeRe: SQL Query Pin
Paul Conrad7-Nov-07 12:15
professionalPaul Conrad7-Nov-07 12:15 
GeneralRe: SQL Query Pin
#realJSOP8-Nov-07 1:29
professional#realJSOP8-Nov-07 1:29 
GeneralRe: SQL Query Pin
Michael Potter8-Nov-07 3:04
Michael Potter8-Nov-07 3:04 
GeneralRe: SQL Query Pin
#realJSOP8-Nov-07 1:33
professional#realJSOP8-Nov-07 1:33 
QuestionControlling T-SQL output from LINQ to SQL Pin
Mark J. Miller7-Nov-07 8:28
Mark J. Miller7-Nov-07 8:28 
AnswerRe: Controlling T-SQL output from LINQ to SQL Pin
Mark J. Miller7-Nov-07 9:14
Mark J. Miller7-Nov-07 9:14 
Ok, I've found one way to do this but it's hardly elegant and it doesn't allow you to take advantage of delayed execution:

DataContext.GetCommand returns System.Data.Common.DbCommand which allows you to access the Parameters collection where you can set the size. If you're using SQL Server you need to set Precision you'll have to cast the parameter to a SqlParameter.

After you've updated the parameter you can call ExecuteReader (don't forget to make sure the connection is open). Then use the DataContext.Translate<tresult(dbdatareader) method="" to="" convert="" the="" datareader="" ienumerable<t="">.

The problem is this doesn't allow for delayed execution because you can't update the actual command used by the query variable.
GeneralRe: Controlling T-SQL output from LINQ to SQL Pin
Mark J. Miller8-Nov-07 5:36
Mark J. Miller8-Nov-07 5:36 
QuestionExcel into SQLServer2000 Pin
Jedidah7-Nov-07 8:00
Jedidah7-Nov-07 8:00 
AnswerRe: Excel into SQLServer2000 Pin
pmarfleet7-Nov-07 8:24
pmarfleet7-Nov-07 8:24 
QuestionDateTime Query Pin
solutionsville7-Nov-07 6:35
solutionsville7-Nov-07 6:35 
AnswerRe: DateTime Query Pin
solutionsville7-Nov-07 7:50
solutionsville7-Nov-07 7:50 
QuestionDatabase BackUp Pin
kibromg7-Nov-07 1:34
kibromg7-Nov-07 1:34 
AnswerRe: Database BackUp Pin
TJoe7-Nov-07 7:58
TJoe7-Nov-07 7:58 
Questionretrieve image from access in to picture box Pin
sindhutiwari6-Nov-07 23:35
sindhutiwari6-Nov-07 23:35 
QuestionDatawarehousing course. Pin
Jwalant Natvarlal Soneji6-Nov-07 19:48
Jwalant Natvarlal Soneji6-Nov-07 19:48 
AnswerRe: Datawarehousing course. Pin
Colin Angus Mackay6-Nov-07 23:00
Colin Angus Mackay6-Nov-07 23:00 
QuestionDatabase error Pin
kingletas6-Nov-07 18:17
kingletas6-Nov-07 18:17 
AnswerRe: Database error Pin
r a j u u6-Nov-07 20:15
r a j u u6-Nov-07 20:15 
AnswerRe: Database error Pin
r a j u u6-Nov-07 20:17
r a j u u6-Nov-07 20:17 
Questionediting primary key Pin
Xmen Real 6-Nov-07 17:09
professional Xmen Real 6-Nov-07 17:09 
AnswerRe: editing primary key Pin
Rob Philpott6-Nov-07 23:23
Rob Philpott6-Nov-07 23:23 
AnswerRe: editing primary key Pin
Hesham Amin7-Nov-07 9:46
Hesham Amin7-Nov-07 9:46 
GeneralRe: editing primary key Pin
Xmen Real 7-Nov-07 14:43
professional Xmen Real 7-Nov-07 14:43 

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.