Viewing 15 posts - 3,166 through 3,180 (of 6,036 total)
Don't use RETURN for returning values.
It returns error code and it's better to leave it this way.
ALTER PROCEDURE dbo.cdds_Download_Count_Select
@DataId uniqueidentifier,
@RowCount int OUTPUT
AS
SET NOCOUNT...
January 23, 2008 at 6:58 am
Jeff,
should I post couple replies?
Just to show how good you are to OP.
:hehe:
January 22, 2008 at 9:07 pm
CREATE PROC dbo.MyProc
@param1 ...,
@Rcnt int output
AS
SELECT .....
SET @Rcnt = @@ROWCOUNT
GO
Read parameter @Rcnt after SP execution and get your query rows counted. 🙂
January 22, 2008 at 3:59 pm
Defragmentation won't help much.
You can even polish your highway - scooter would not go any faster.
I can see only 2 suggestions:
1) improve Documentum software;
2) replace Documentum software with something matching...
January 22, 2008 at 2:59 pm
Probably what you need is bcp utility.
Read the topic about bcp in BOL, it's quite good, if any questions remain don't hesitate to ask.
January 21, 2008 at 3:54 pm
Arun T Jayapal (1/18/2008)
January 20, 2008 at 1:10 pm
Drop all indexes on this table.
SQL Server uses indexes to find the page with requested data.
You whole table fits in one page. Any index on this table is just a...
January 18, 2008 at 5:39 pm
lindasmail76 (1/17/2008)
Sorry, but I don't understand your response. I have the identity column sort_order as a datatype int.
Identity column follows the order defined by
order by b.somecolumn
January 17, 2008 at 7:36 pm
lindasmail76 (1/17/2008)
January 17, 2008 at 5:43 pm
No, it's 4 seconds every time, very rarely 5 seconds but I consider it's rounding.
If job steps take 2 seconds in total, job take 6 second, if 10 then 14...
January 17, 2008 at 3:24 pm
Create a table with your intervals:
StartTime, EndTime
1/1/2008 00:00, 1/1/2208 01:00
1/1/2008 01:00, 1/1/2208 02:00
....
Don't worry, it's just about 85k rows per 10 years, not a big deal for SQL Server.
Disk size...
January 16, 2008 at 6:29 pm
It's not a clever way.
It's just following one of normalization rules.
Read it on your spare time.
January 16, 2008 at 2:31 pm
String 'sampletest^' has 11 symbols.
And you parameter is VARCHAR(10).
11th symbol is just truncated.
January 16, 2008 at 4:13 am
santosh (1/15/2008)
Hi,Thks for taking the time to look through this but I'm not in favour of using #temp tables due to performance reasons.
Really?
Can you share your negative experience?
Because I use...
January 15, 2008 at 9:44 pm
Viewing 15 posts - 3,166 through 3,180 (of 6,036 total)