Click here to Skip to main content
15,885,278 members
Home / Discussions / C#
   

C#

 
GeneralRe: Read/write directly to a specific sector in a hard disk Pin
ptvce3-Oct-13 3:34
ptvce3-Oct-13 3:34 
GeneralRe: Read/write directly to a specific sector in a hard disk Pin
Richard MacCutchan3-Oct-13 3:37
mveRichard MacCutchan3-Oct-13 3:37 
Questionpleaase can any one help me how to resolve this Auto generated code... for first Record It Takes 1 But for second record it takes 13,14 number Pin
Likhith.S3-Oct-13 2:38
professionalLikhith.S3-Oct-13 2:38 
AnswerRe: pleaase can any one help me how to resolve this Auto generated code... for first Record It Takes 1 But for second record it takes 13,14 number Pin
Eddy Vluggen3-Oct-13 7:46
professionalEddy Vluggen3-Oct-13 7:46 
AnswerRe: pleaase can any one help me how to resolve this Auto generated code... for first Record It Takes 1 But for second record it takes 13,14 number Pin
Abhinav S3-Oct-13 17:19
Abhinav S3-Oct-13 17:19 
QuestionHow to build up a teamviewer like windows application Pin
Arun kumar Gautam3-Oct-13 0:02
Arun kumar Gautam3-Oct-13 0:02 
AnswerRe: How to build up a teamviewer like windows application Pin
Pete O'Hanlon3-Oct-13 0:14
mvePete O'Hanlon3-Oct-13 0:14 
QuestionSQL UDF or C# function Pin
eddieangel2-Oct-13 8:10
eddieangel2-Oct-13 8:10 
I have a database that houses (amongst other things) data on defects and repairs, car repairs as an example. The way this db breaks down is this:

Table Defect holds the information about the defect (Damaged bumper, broken windshield, w/e)
Table Material holds information about materials used to repair (ex: new bumper)
Table Equipment holds information about equipment used to repair (ex: buffer)
Table Trade holds information about who is responsible for the repair and their wage (ex: mechanic)
There are three many to many tables that join defect with trade/eq/mat and have a quantity.

Long story short, I have a Scalar value UDF that returns the value of all of these costs together divided by a value in the defect table.

I decided to try to simplify it into a query (The simplification discussion is a TSQL issue outside the scope of this post) and in doing so had to ask myself, does this belong as a SQL query or should I write it as an additional property of the model in c#?

I could just as easily write a partial class that handles all of this craziness on the web server side. Is this all pedantic? Is it really a question of db server performance vs web server performance? I have read that scalar value functions in TSQL can be low performing due to threading issues, which is what sparked this thing in the first place.

Thoughts? Opinions?

Cheers, --EA
AnswerRe: SQL UDF or C# function Pin
jschell2-Oct-13 8:38
jschell2-Oct-13 8:38 
GeneralRe: SQL UDF or C# function Pin
eddieangel2-Oct-13 8:58
eddieangel2-Oct-13 8:58 
AnswerRe: SQL UDF or C# function Pin
Mycroft Holmes2-Oct-13 13:03
professionalMycroft Holmes2-Oct-13 13:03 
GeneralRe: SQL UDF or C# function Pin
eddieangel3-Oct-13 6:06
eddieangel3-Oct-13 6:06 
AnswerRe: SQL UDF or C# function Pin
Kornfeld Eliyahu Peter2-Oct-13 20:58
professionalKornfeld Eliyahu Peter2-Oct-13 20:58 
Questionclass and object Pin
Member 103106132-Oct-13 0:02
Member 103106132-Oct-13 0:02 
AnswerRe: class and object Pin
Chris Quinn2-Oct-13 0:07
Chris Quinn2-Oct-13 0:07 
AnswerRe: class and object PinPopular
Pete O'Hanlon2-Oct-13 0:09
mvePete O'Hanlon2-Oct-13 0:09 
AnswerRe: class and object Pin
Abhinav S2-Oct-13 0:20
Abhinav S2-Oct-13 0:20 
AnswerRe: class and object Pin
BillWoodruff2-Oct-13 6:16
professionalBillWoodruff2-Oct-13 6:16 
Questiondatatable . help needed Pin
superselector1-Oct-13 18:56
superselector1-Oct-13 18:56 
AnswerRe: datatable . help needed Pin
Abhinav S1-Oct-13 21:09
Abhinav S1-Oct-13 21:09 
AnswerRe: datatable . help needed Pin
Andy_L_J1-Oct-13 22:20
Andy_L_J1-Oct-13 22:20 
QuestionExternal component has thrown an exception Pin
Member 102708251-Oct-13 18:13
Member 102708251-Oct-13 18:13 
AnswerRe: External component has thrown an exception Pin
Abhinav S1-Oct-13 20:44
Abhinav S1-Oct-13 20:44 
GeneralRe: External component has thrown an exception Pin
Member 102708252-Oct-13 0:38
Member 102708252-Oct-13 0:38 
GeneralRe: External component has thrown an exception Pin
Dave Kreskowiak2-Oct-13 4:37
mveDave Kreskowiak2-Oct-13 4:37 

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.