Click here to Skip to main content
15,902,635 members
Home / Discussions / Database
   

Database

 
GeneralOptimizing a query by removing a user defined function Pin
Fallen-Angel12-May-05 11:36
Fallen-Angel12-May-05 11:36 
GeneralFind FK Pin
WDI12-May-05 5:52
WDI12-May-05 5:52 
GeneralTemp tables in a stored procedure Pin
Fallen-Angel12-May-05 5:10
Fallen-Angel12-May-05 5:10 
GeneralRe: Temp tables in a stored procedure Pin
Michael Potter12-May-05 6:15
Michael Potter12-May-05 6:15 
GeneralRe: Temp tables in a stored procedure Pin
Fallen-Angel12-May-05 6:24
Fallen-Angel12-May-05 6:24 
GeneralRe: Temp tables in a stored procedure Pin
Michael Potter12-May-05 6:31
Michael Potter12-May-05 6:31 
GeneralRe: Temp tables in a stored procedure Pin
Rob Graham12-May-05 11:46
Rob Graham12-May-05 11:46 
GeneralStored Procedures/Performance/Cursors Pin
Fallen-Angel12-May-05 5:06
Fallen-Angel12-May-05 5:06 
Hi all,

I'm hoping that somebody can help me with the performance of my a slow stored procedure that I have. This is a part of my scenario:

I have many Projects each project can have many samples and each sample can have many paramters. W

When I run my stored procedure to return all projects I have a funtion that I call on each row that gets all the samples(cursor) for a project. Then for each sample I get all the paramters(cursor).

Project -> samples -> paramters

for each sample I run through a cursor and concatnate a string of paramters that I find in a function I call.

With in the paramters function I run through the cursor and concatnate a string of paramters in the format of paramtername, paramtername, paramtername.

Now I have reason to belive this query is slow becuase of all the cursors we use. One of my collegues belives that the cursors are not the problem, infact he belives they are not slow at all that is all hype that cursors are poor in perforance is this right? Does anybody have any suggestions?
GeneralRe: Stored Procedures/Performance/Cursors Pin
Colin Angus Mackay12-May-05 5:30
Colin Angus Mackay12-May-05 5:30 
GeneralRe: Stored Procedures/Performance/Cursors Pin
Fallen-Angel12-May-05 5:41
Fallen-Angel12-May-05 5:41 
GeneralRe: Stored Procedures/Performance/Cursors Pin
Michael Potter12-May-05 6:27
Michael Potter12-May-05 6:27 
GeneralRe: Stored Procedures/Performance/Cursors Pin
Fallen-Angel12-May-05 6:38
Fallen-Angel12-May-05 6:38 
GeneralRe: Stored Procedures/Performance/Cursors Pin
Anonymous13-May-05 5:15
Anonymous13-May-05 5:15 
GeneralInserting a dataset into SQL Pin
totig12-May-05 2:22
totig12-May-05 2:22 
QuestionHow to make ERD diagram Pin
imshally8112-May-05 1:17
imshally8112-May-05 1:17 
AnswerRe: How to make ERD diagram Pin
Colin Angus Mackay12-May-05 2:31
Colin Angus Mackay12-May-05 2:31 
GeneralStored Procedure - Return type nText Pin
.NetRams12-May-05 1:04
.NetRams12-May-05 1:04 
GeneralDate in Farsi Pin
GouriGari RameshReddy12-May-05 0:48
GouriGari RameshReddy12-May-05 0:48 
GeneralMySQL and non-latin character Pin
Apusnaias11-May-05 4:27
Apusnaias11-May-05 4:27 
GeneralSql Server - MS Access Pin
Timothy_198211-May-05 3:59
Timothy_198211-May-05 3:59 
GeneralRe: Sql Server - MS Access Pin
jasncab11-May-05 6:09
jasncab11-May-05 6:09 
GeneralData Type problem in SQL server 2000 Pin
imshally8111-May-05 2:27
imshally8111-May-05 2:27 
GeneralRe: Data Type problem in SQL server 2000 Pin
Colin Angus Mackay11-May-05 2:46
Colin Angus Mackay11-May-05 2:46 
GeneralRe: Data Type problem in SQL server 2000 Pin
imshally8111-May-05 20:43
imshally8111-May-05 20:43 
GeneralRe: Data Type problem in SQL server 2000 Pin
Colin Angus Mackay11-May-05 21:10
Colin Angus Mackay11-May-05 21:10 

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.