Click here to Skip to main content
15,920,956 members
Home / Discussions / Database
   

Database

 
AnswerRe: Reg:Not Run SQL Server 2005 Tool in My System Pin
Colin Angus Mackay8-Dec-06 23:33
Colin Angus Mackay8-Dec-06 23:33 
Questiondatagrid and database Pin
samita_friendly8-Dec-06 10:57
samita_friendly8-Dec-06 10:57 
AnswerRe: datagrid and database Pin
Muammar©8-Dec-06 22:58
Muammar©8-Dec-06 22:58 
GeneralRe: datagrid and database Pin
samita_friendly9-Dec-06 5:29
samita_friendly9-Dec-06 5:29 
GeneralRe: datagrid and database Pin
Muammar©9-Dec-06 20:35
Muammar©9-Dec-06 20:35 
GeneralRe: datagrid and database Pin
samita_friendly10-Dec-06 11:35
samita_friendly10-Dec-06 11:35 
QuestionConnection Pooling nightmare - Timeout Expired Pin
Guy Harwood8-Dec-06 10:45
Guy Harwood8-Dec-06 10:45 
AnswerRe: Connection Pooling nightmare - Timeout Expired Pin
Colin Angus Mackay8-Dec-06 13:11
Colin Angus Mackay8-Dec-06 13:11 
Guy Harwood wrote:
I set up some tracing and noticed that some pages made no less than 60 calls per page load to the GetConnection() method


Is the code closing the connection before getting another?


Guy Harwood wrote:
are most of you spitting coffee on your monitor over the 60 page calls like i nearly did?


You might want to see if you can rationalise some of these calls. For example, if you alwasy call the same three stored procedures in sucession then you might be able to create a wrapper stored procedure that calls the other three so you can only doing one call to the database. You can then iterate over the result sets and pull out multiple sets of data from one database call. (If you are using DataReaders the NextResult() method is the one that moves to the next result set)

The thing that causes the most slow down in an application is roundtrips to the database. If you can reduce the number of roundtrips it would improve performance, and reduce the number of connections you are making.

I'll also admit that I've never had to alter the timeout of the connection from the 15 second default.

By the way, what edition of SQL Server are you using?


Upcoming Scottish Developers events:
* We are starting a series of events in Glasgow in 2007. Are you interested in a particular subject, or as a speaker?
* Developer Day Scotland: are you interested in speaking or attending?


My: Website | Blog | Photos

GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
Guy Harwood8-Dec-06 13:25
Guy Harwood8-Dec-06 13:25 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
S Douglas10-Dec-06 23:44
professionalS Douglas10-Dec-06 23:44 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
Guy Harwood12-Dec-06 2:02
Guy Harwood12-Dec-06 2:02 
GeneralRe: Connection Pooling nightmare - Timeout Expired Pin
S Douglas12-Dec-06 2:12
professionalS Douglas12-Dec-06 2:12 
Questionerror 8624 ? Pin
alexrad8-Dec-06 8:48
alexrad8-Dec-06 8:48 
AnswerRe: error 8624 ? Pin
Colin Angus Mackay8-Dec-06 13:02
Colin Angus Mackay8-Dec-06 13:02 
AnswerRe: error 8624 ? Pin
albCode10-Dec-06 10:09
albCode10-Dec-06 10:09 
Questionms sql 2005 connection string and db file upload Pin
ullk8-Dec-06 8:45
ullk8-Dec-06 8:45 
AnswerRe: ms sql 2005 connection string and db file upload Pin
Colin Angus Mackay8-Dec-06 13:01
Colin Angus Mackay8-Dec-06 13:01 
QuestionUpdating many rows with ADO.net Pin
Drathmar8-Dec-06 5:46
Drathmar8-Dec-06 5:46 
QuestionHow to get 3rd Highest salary Pin
karam chandrabose8-Dec-06 5:33
karam chandrabose8-Dec-06 5:33 
AnswerRe: How to get 3rd Highest salary Pin
Parwej Ahamad8-Dec-06 5:50
professionalParwej Ahamad8-Dec-06 5:50 
AnswerRe: How to get 3rd Highest salary Pin
ednrgc8-Dec-06 8:49
ednrgc8-Dec-06 8:49 
GeneralRe: How to get 3rd Highest salary Pin
Pete O'Hanlon8-Dec-06 9:37
mvePete O'Hanlon8-Dec-06 9:37 
GeneralRe: How to get 3rd Highest salary Pin
Guy Harwood12-Dec-06 2:03
Guy Harwood12-Dec-06 2:03 
QuestionPopulating datas from Sql db to CSV file Pin
vijay_838-Dec-06 4:19
vijay_838-Dec-06 4:19 
AnswerRe: Populating datas from Sql db to CSV file Pin
Colin Angus Mackay8-Dec-06 4:31
Colin Angus Mackay8-Dec-06 4:31 

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.