Click here to Skip to main content
15,900,325 members
Home / Discussions / Database
   

Database

 
GeneralRe: Oracle vs SQL server Pin
Luc Pattyn25-Mar-09 14:08
sitebuilderLuc Pattyn25-Mar-09 14:08 
GeneralRe: Oracle vs SQL server Pin
Eddy Vluggen25-Mar-09 21:47
professionalEddy Vluggen25-Mar-09 21:47 
GeneralRe: Oracle vs SQL server Pin
E_Gold25-Mar-09 19:14
E_Gold25-Mar-09 19:14 
GeneralRe: Oracle vs SQL server Pin
Eddy Vluggen25-Mar-09 21:53
professionalEddy Vluggen25-Mar-09 21:53 
QuestionHow to preserve databinding in a ToolStripDropDown? Pin
SSDiver211225-Mar-09 9:44
SSDiver211225-Mar-09 9:44 
QuestionHow to Upgrade Access databse to MSSQL2005? Pin
Sr...Frank25-Mar-09 1:14
Sr...Frank25-Mar-09 1:14 
AnswerRe: How to Upgrade Access databse to MSSQL2005? Pin
Eddy Vluggen25-Mar-09 5:26
professionalEddy Vluggen25-Mar-09 5:26 
QuestionExtremely slow SP execution in Asp.net Pin
totig25-Mar-09 0:47
totig25-Mar-09 0:47 
Hi
I have an interesting problem. I have written an SP to return some stats. When I run this through SQL Management studio - the result returns in 2 seconds or less. Now when I call this through asp.net - it takes anywhere from 2 minutes to 10 minutes+ (asp.net times out). I have tested this on my machine, and one of our offline production web servers. Now, when I attach the debugger to my asp.net code, where it makes the call, results are just as quick as when i run it through the management studio.

Yesterday I thought I was onto something - the user I was connecting with, was being used by multiple sites and applications. I created a new user and tried using this. Now asp.net was returning the records as quickly as expected. However, this morning the performance has gone back to what it was, and it takes ages to run.

I have connected to SQL management studio using the user credentials that the asp.net site is using (SQL connection string). When I run this, results return in 2 seconds. I also looked at the activity monitor - when I run this through management studio, CPU time shows as around 1000. When I run it through asp.net - this rises to between 100 000 and 400 000 in the CPU time.

I am not using cursors, this is just a select, and usually returns 10 - 50 records at most. The query does access multiple databases, some of which are on a linked server.

Thanks,
Wayde
AnswerRe: Extremely slow SP execution in Asp.net Pin
totig25-Mar-09 1:14
totig25-Mar-09 1:14 
QuestionAudti triggers - How to get the user name into the audit table [modified] Pin
Simon P Stevens24-Mar-09 1:54
Simon P Stevens24-Mar-09 1:54 
AnswerRe: Audti triggers - How to get the user name into the audit table Pin
Pete O'Hanlon24-Mar-09 2:15
mvePete O'Hanlon24-Mar-09 2:15 
GeneralRe: Audti triggers - How to get the user name into the audit table Pin
Simon P Stevens24-Mar-09 2:35
Simon P Stevens24-Mar-09 2:35 
QuestionCalling oracle stored procedure for crystal report Pin
Girish48124-Mar-09 0:32
Girish48124-Mar-09 0:32 
QuestionHow to store an image in PostGresDB? Pin
sunilsb23-Mar-09 22:58
sunilsb23-Mar-09 22:58 
QuestionSome Oracle Question Pin
E_Gold23-Mar-09 8:26
E_Gold23-Mar-09 8:26 
AnswerRe: Some Oracle Question Pin
scottgp23-Mar-09 10:20
professionalscottgp23-Mar-09 10:20 
GeneralRe: Some Oracle Question Pin
E_Gold23-Mar-09 10:51
E_Gold23-Mar-09 10:51 
GeneralRe: Some Oracle Question Pin
scottgp23-Mar-09 15:21
professionalscottgp23-Mar-09 15:21 
Questionwhat is mean by transaction in database? Pin
Ali_10023-Mar-09 7:04
Ali_10023-Mar-09 7:04 
Answertransaction as defined in Wikipedia Pin
David Mujica23-Mar-09 7:54
David Mujica23-Mar-09 7:54 
GeneralRe: transaction as defined in Wikipedia Pin
Ali_10023-Mar-09 10:26
Ali_10023-Mar-09 10:26 
GeneralROLLBACK Pin
David Mujica23-Mar-09 11:00
David Mujica23-Mar-09 11:00 
QuestionItem Stock detail using sale and purchase table [modified] Pin
adeelidrees23-Mar-09 2:36
adeelidrees23-Mar-09 2:36 
QuestionSqlDataReader Number of Rows Pin
Jasmine Pomelo23-Mar-09 2:05
Jasmine Pomelo23-Mar-09 2:05 
AnswerRe: SqlDataReader Number of Rows Pin
Eddy Vluggen23-Mar-09 2:20
professionalEddy Vluggen23-Mar-09 2: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.