Click here to Skip to main content
16,005,169 members
Home / Discussions / Database
   

Database

 
QuestionProblem with Pass Through Query - Returns no records. Pin
M LN Rao7-Dec-06 0:17
M LN Rao7-Dec-06 0:17 
Questiontrigger for primary key Pin
rrrriiizz6-Dec-06 18:50
rrrriiizz6-Dec-06 18:50 
AnswerRe: trigger for primary key Pin
Pete O'Hanlon6-Dec-06 22:41
mvePete O'Hanlon6-Dec-06 22:41 
GeneralRe: trigger for primary key Pin
rrrriiizz8-Dec-06 22:24
rrrriiizz8-Dec-06 22:24 
AnswerRe: trigger for primary key Pin
Frank Kerrigan7-Dec-06 5:20
Frank Kerrigan7-Dec-06 5:20 
GeneralRe: trigger for primary key Pin
rrrriiizz8-Dec-06 18:21
rrrriiizz8-Dec-06 18:21 
QuestionRe: trigger for primary key Pin
rrrriiizz8-Dec-06 22:22
rrrriiizz8-Dec-06 22:22 
QuestionHuge Data, SQL SERVER 2000 + ASP.NET, HowTo Pin
Anmar_Code6-Dec-06 9:31
Anmar_Code6-Dec-06 9:31 
Hello All,

I'm buildling an egovernment web application using ASP.NET (VS 2003) that will be used by a medium sized organization with 1000 users as a start.

My Code was in a single VB module which has all the functions that run the system, and the pages only call those functions.

I have built a wrapper class to ease communication with the database (in order words, to completely eliminate any worries about database and focus on the business objects)

so i ended up with functions dealing with business objects, and i can now really go highspeed in buildling the app.

However My problem is:
it's Easy to do the coding now, very easy.
but each function that deals with business objects will require calling another function that also deals with business objects.
so it's like (for example)

function RegisterUser(a,b,c,d,e)

if Func1(a,b,e)=true then
func2(a,b)
func3(b,c)
func4(a,b,c,d,e)
end if

func5(a,b,"ok")

end function

each one of these functions queries the database for some information.

so let me make it easier for u, when a user logs in, The application actually made 30 queries to the database and with each query, it's opening a connection and closing it afterwards.
when the user creates a new document, it's like 120 queries.
when the user clicks the search button, it's about 400 queries.

that's cause i made coding easier by wrappers.

the application itself works JUST fine.

but i got two issues, 1. what if there are 1000 users, and 2. what's the good approach to a better programming.

so, i really need your help guys.

i need to figure out, is Open/Query/Close connections worse than
Open/alot of queries/close. i think yes, but i need a professional opinion.

also, is it a good approach to do wrappers like that.

is the current situation harmless and SQL SERVER 2000 can deal with these too much connections and has some way of Caching?

i can explain more with code.

Thanks in Advance.
Anmar



AnswerRe: Huge Data, SQL SERVER 2000 + ASP.NET, HowTo Pin
Colin Angus Mackay6-Dec-06 9:47
Colin Angus Mackay6-Dec-06 9:47 
GeneralRe: Huge Data, SQL SERVER 2000 + ASP.NET, HowTo Pin
Anmar_Code7-Dec-06 1:06
Anmar_Code7-Dec-06 1:06 
GeneralRe: Huge Data, SQL SERVER 2000 + ASP.NET, HowTo Pin
Frank Kerrigan7-Dec-06 5:22
Frank Kerrigan7-Dec-06 5:22 
QuestionTableAdapter Merge issue [modified] Pin
usernameexists6-Dec-06 5:17
usernameexists6-Dec-06 5:17 
QuestionUsing nested tables and making a list (of ...) Pin
odrap5-Dec-06 23:49
odrap5-Dec-06 23:49 
AnswerRe: Using nested tables and making a list (of ...) Pin
Pete O'Hanlon6-Dec-06 2:55
mvePete O'Hanlon6-Dec-06 2:55 
QuestionHow copy SQL Schema to ORACLE and other RDBMS using C# Pin
NK75-Dec-06 18:52
NK75-Dec-06 18:52 
AnswerRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Colin Angus Mackay5-Dec-06 23:42
Colin Angus Mackay5-Dec-06 23:42 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Paul Conrad6-Dec-06 9:56
professionalPaul Conrad6-Dec-06 9:56 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Colin Angus Mackay6-Dec-06 10:29
Colin Angus Mackay6-Dec-06 10:29 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Paul Conrad6-Dec-06 11:05
professionalPaul Conrad6-Dec-06 11:05 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Colin Angus Mackay6-Dec-06 12:04
Colin Angus Mackay6-Dec-06 12:04 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Paul Conrad6-Dec-06 14:34
professionalPaul Conrad6-Dec-06 14:34 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Colin Angus Mackay6-Dec-06 14:46
Colin Angus Mackay6-Dec-06 14:46 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
Paul Conrad6-Dec-06 16:21
professionalPaul Conrad6-Dec-06 16:21 
GeneralRe: How copy SQL Schema to ORACLE and other RDBMS using C# Pin
NK731-Jan-07 0:22
NK731-Jan-07 0:22 
Questiondd/mm/yyyy Pin
charleslau28555-Dec-06 15:04
charleslau28555-Dec-06 15:04 

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.