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

Database

 
GeneralRe: Duplicate in join Pin
gnjunge2-Dec-08 2:57
gnjunge2-Dec-08 2:57 
GeneralRe: Duplicate in join Pin
Wendelius2-Dec-08 3:11
mentorWendelius2-Dec-08 3:11 
AnswerRe: Duplicate in join [modified] Pin
Blue_Boy2-Dec-08 9:11
Blue_Boy2-Dec-08 9:11 
GeneralRe: Duplicate in join Pin
gnjunge2-Dec-08 20:21
gnjunge2-Dec-08 20:21 
GeneralRe: Duplicate in join Pin
Blue_Boy3-Dec-08 0:24
Blue_Boy3-Dec-08 0:24 
QuestionPassing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 1:05
Hamed Musavi2-Dec-08 1:05 
AnswerRe: Passing multiple records to one stored proc Pin
Ben Fair2-Dec-08 4:12
Ben Fair2-Dec-08 4:12 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 4:57
Hamed Musavi2-Dec-08 4:57 
Thanks for the help.
Ben Fair wrote:
It doesn't make sense to me to have to 'unpack' the information for the child rows because you'll take a decent performance hit for that string manipulation.


Exactly. That's why I don't like that.

It seems there is not any third way. I don't like doing it in application but packing and unpacking is even worse, IMO. I was wishing there to be some other way that I don't know.

By the way, how do you implement it in app? I know it this way:

SqlConnection cnn = new SqlConnection("") ;
cnn.Open();
SqlTransaction trans = cnn.BeginTransaction();
SqlCommand cmd = new SqlCommand();
cmd.Connection = cnn;
cmd.Transaction = trans;
try  
{
  // work with data
  trans.Commit();
}
catch (SqlException)  
{
  trans.Rollback();
}


I don't like this because it mostly results in a big function dealing with multiple procedures and all their parameters. It's difficult to keep it clean or automate it's code generation, or maybe I'm missing something here.Confused | :confused:

"In the end it's a little boy expressing himself."    Yanni


GeneralRe: Passing multiple records to one stored proc Pin
Wendelius2-Dec-08 10:25
mentorWendelius2-Dec-08 10:25 
AnswerRe: Passing multiple records to one stored proc Pin
Wendelius2-Dec-08 10:22
mentorWendelius2-Dec-08 10:22 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi2-Dec-08 19:02
Hamed Musavi2-Dec-08 19:02 
GeneralRe: Passing multiple records to one stored proc Pin
Wendelius3-Dec-08 7:09
mentorWendelius3-Dec-08 7:09 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi3-Dec-08 9:10
Hamed Musavi3-Dec-08 9:10 
GeneralRe: Passing multiple records to one stored proc Pin
Wendelius3-Dec-08 9:39
mentorWendelius3-Dec-08 9:39 
GeneralRe: Passing multiple records to one stored proc Pin
Hamed Musavi3-Dec-08 9:48
Hamed Musavi3-Dec-08 9:48 
GeneralRe: Passing multiple records to one stored proc Pin
Wendelius3-Dec-08 10:06
mentorWendelius3-Dec-08 10:06 
GeneralRe: Passing multiple records to one stored proc Pin
Ben Fair3-Dec-08 3:59
Ben Fair3-Dec-08 3:59 
GeneralRe: Passing multiple records to one stored proc Pin
Wendelius3-Dec-08 7:20
mentorWendelius3-Dec-08 7:20 
QuestionIMAGE IN SQL REPORTING SERVICES Pin
member272-Dec-08 1:02
member272-Dec-08 1:02 
AnswerRe: IMAGE IN SQL REPORTING SERVICES Pin
ChandraRam2-Dec-08 2:14
ChandraRam2-Dec-08 2:14 
GeneralRe: IMAGE IN SQL REPORTING SERVICES Pin
member272-Dec-08 4:45
member272-Dec-08 4:45 
GeneralRe: IMAGE IN SQL REPORTING SERVICES Pin
Ben Fair3-Dec-08 4:02
Ben Fair3-Dec-08 4:02 
QuestionOleDb? Pin
dec821-Dec-08 20:03
dec821-Dec-08 20:03 
AnswerRe: OleDb? Pin
Ashfield1-Dec-08 21:20
Ashfield1-Dec-08 21:20 
JokeRe: OleDb? Pin
Wendelius1-Dec-08 23:20
mentorWendelius1-Dec-08 23:20 

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.