Viewing 15 posts - 1 through 15 (of 32 total)
Larry Kruse (6/23/2010)
SELECT
(ABS( USER_ID ) % 10) AS PartNo, COUNT(*) As UserCount
FROM Users
GROUP BY ABS( User_ID )%10
ORDER BY ABS( User_ID )%10
The results are:
PartNoUserCount
0206665
1206586
2206548
3206496
4206463
5206367
6206660
7206383
8206507
9206529
CREATE PARTITION...
June 28, 2010 at 11:38 pm
dndaughtery (6/23/2010)
I
set @SQL = 'Insert @ResultsTable
select c.SPMID
, sm.SPM
, r.RegionName
, do.podname as DOO
, sc.Category
..... ....... ............
Select * from @ResultsTable
Instead of trying to insert into the table variable inside the dynamic...
June 28, 2010 at 10:38 pm
This is a scope problem.The table variable declared is outside the scope of the dynamic SQL.
Either declare the table variable inside the dynamic SQL or if functionality requires it outside,
use...
June 24, 2010 at 1:03 am
craig 84462 (3/21/2010)
While@@FETCH_STATUS=0
if @Statisticvalue <=100
Begin
Try giving a begin after the while.
March 22, 2010 at 12:19 am
Since the volume of data is enormous..try partitioning the table as date based and further the records can be purged based on partitions.The other option is to delete the records...
February 10, 2010 at 3:47 am
Hi
I am trying to understand your scenario...
Why do you require the newid() to be printed in the trigger?
January 18, 2010 at 1:13 am
Hi
Try making use of the output clause.
Eg:
create table tab (i uniqueidentifier,j int)
declare @tab table (i uniqueidentifier,j int)
insert into tab
output inserted.i ,inserted.j into @tab
values(NEWID(),1)
select...
January 17, 2010 at 11:39 pm
Ray K (12/3/2009)
December 3, 2009 at 9:40 pm
Thanks for the prompt response :-).
But I require occurrences of the columns in all tables in all sps for proposing indexes.
So require to consider the alias names used in the...
May 12, 2009 at 12:46 am
Higher Level may not be a solution as per the functionallity .
February 25, 2009 at 6:02 am
whats your solution?Can you post.I have similar such problem.Will check whether your solution can be used.
December 12, 2008 at 1:48 am
There are two types of errors that will not be handled by TRY…CATCH if the error occurs in the same execution level as the TRY…CATCH construct:
Compile errors, such as syntax...
November 20, 2008 at 2:41 am
Ya i understand u require the values of the columns.The below script will do the same
Modify this script to suit your need and to meet the performance.The previous post will...
November 20, 2008 at 1:22 am
Viewing 15 posts - 1 through 15 (of 32 total)