Viewing 15 posts - 3,226 through 3,240 (of 3,606 total)
Thanks Chris,
I've been tuning a stored procedure that itterates down a tree structure to accumulate a list of ids within that structure and then returns the details associated with those...
April 5, 2004 at 2:05 am
I have been doing some experimenting with routines to traverse down a tree structure with temporary tables vs table variables.
God knows how but the rowcount thing resolved itself
April 2, 2004 at 4:07 am
Good primer!
If I have a stored procedure that does multiple tasks, is there a way of getting the overall cost of the entire procedure or do I have to manually...
April 2, 2004 at 2:54 am
CREATE TABLE #MyTable(<column name> <column Type> , etc)
INSERT #MyTable(<fields>
exec master.dbo.xp_msver
April 1, 2004 at 12:57 am
I would second the motion to investigate the peaks.
I work on a large web CMS that has a complicated caching mechanism. If I get the CMS caching right the database...
March 30, 2004 at 5:58 am
Yes, all stored procedures that I write have SET NOCOUNT ON immediately after the header block.
I haven't tried declaring variables as table types before so I'll give it a whirl.
March 26, 2004 at 8:33 am
Frank,
I had a very brief look at it.
My thoughts are that one of the reasons for using C++ is its ability to use pointers. The point about managed code is...
March 26, 2004 at 1:52 am
The actual procedure is shown below.
The idea is that it returns a "page" of records. A page defaulting to 10 records.
CREATE PROCEDURE dbo.usp_GetChildLinksNav
@lViewTreeId Int,
@lPageLength Int =10 ,
@lPageNo Int = 1...
March 26, 2004 at 1:30 am
OK, I've found it.
If you run SQL Profiler and look at the Stored Procedures events, if you run a stored procedure beginning with the letters sp_ then you will get...
March 25, 2004 at 1:20 am
So basically the real life query is some horrendous multi-table join with a vast number of records.
I would agree that a temporary table is the way to go but I...
March 23, 2004 at 2:07 am
I've tried running a SQL Trace on the MASTER and local database but cannot see any attempt to access the MASTER database.
I know that this is not conclusive because it...
March 23, 2004 at 1:39 am
The script doesn't switch to using TEMPDB. It simply references temporary tables.
CREATE TABLE #Tbl_Tree1(...etc)
INSERT #Tbl(... etc)
It is a shame that there isn't a global setting for SET NOCOUNT.
March 22, 2004 at 9:00 am
It is one long stored procedure. I am intending to break it out into smaller procedures later, but at this stage I am simply getting the procedure working.
What I am...
March 22, 2004 at 5:26 am
Sorry, half the post got lost for some reason.
It should have said that I have a stored procedure where SET NOCOUNT ON doesn't seem to work.
The procedure itterates down through...
March 22, 2004 at 1:28 am
I could be picky here and say that in addition to the "bouncing through the master database" thing having a different prefix for none Microsoft procedures aids identification.
Bert De Haes,...
March 22, 2004 at 1:23 am
Viewing 15 posts - 3,226 through 3,240 (of 3,606 total)