Viewing 15 posts - 1 through 15 (of 27 total)
Koen Verbeeck (10/9/2013)
SELECT TOP 25
RowNumber= number+1
,DateField= CONVERT(DATE,DATEADD(dd,number,'2009-11-09'))
,DateGroup= (number/4)+1
FROM master.dbo.spt_values
WHERE type = 'P';
I used the system table spt_values to get a list of numbers, but there are other...
Bhavesh
.NET and SQL Server Blog
October 9, 2013 at 6:20 am
I had to remove unitprice from the orderby to get deduplicated results.
declare @TempTable table (itemnumber int, unitprice decimal(18, 2));
insert into @TempTable values
(777, 10.10),
(777, 11.11),
(777, 12.12),
(888, 13.13),
(888, 14.14),
(888, 15.15),
(999, 16.16),
(999,...
Bhavesh
.NET and SQL Server Blog
July 27, 2010 at 4:05 am
Thanks for your quick reply
Bhavesh
.NET and SQL Server Blog
May 14, 2010 at 9:26 am
Siddharth Mehta (10/21/2009)
Bhavesh
.NET and SQL Server Blog
October 21, 2009 at 5:11 am
Toreador (10/2/2009)
Hugo Kornelis (10/2/2009)
Bhavesh
.NET and SQL Server Blog
October 2, 2009 at 4:19 am
Warren Gilbert (10/1/2009)
The question specifically asks for extensions (subclauses) to the GROUP BY clause.
GROUPING_ID is a function, NOT a sub-clause...
Bhavesh
.NET and SQL Server Blog
October 1, 2009 at 6:47 am
Florian Reischl (9/24/2009)
Bhavesh-1094084 (9/24/2009)
Can you please let me know if you are deploying in Sql server 2008 or 2005.
Tested on 2008. Just tried on 2005 and get the same error...
Bhavesh
.NET and SQL Server Blog
September 24, 2009 at 10:20 am
Florian Reischl (9/23/2009)
Strange, just deployed the function I posted on my server (as save assembly). Worked fine.
Your initial problem:
Probably it depends on the deterministic of your statement, as...
Bhavesh
.NET and SQL Server Blog
September 24, 2009 at 4:54 am
geervani (9/24/2009)
something like this will work
update table1
set ...
Bhavesh
.NET and SQL Server Blog
September 24, 2009 at 4:17 am
RBarryYoung (9/23/2009)
Bhavesh-1094084 (9/23/2009)
Using Exists is must better approach...
Bhavesh
.NET and SQL Server Blog
September 23, 2009 at 2:05 pm
Thats not true. Even if I add function in the inner join it will still be called for each row when it joins.
Using Exists is must better approach against inner...
Bhavesh
.NET and SQL Server Blog
September 23, 2009 at 12:51 pm
I got following error when creating the assembly
CREATE ASSEMBLY failed because method 'CLRFN00SplitStringToInt' on type 'UserDefinedFunctions' in safe assembly 'SQLCLR.Utilities' is storing to a static field. Storing to a...
Bhavesh
.NET and SQL Server Blog
September 23, 2009 at 10:15 am
SanjayAttray (9/14/2009)
How come Dec 3, 2009 question appeared on sep 14th?
I am surprised too!
Bhavesh
.NET and SQL Server Blog
September 15, 2009 at 2:43 am
Thats what I exactly did...
I have only added 3rd party dll to GAC in worked.
Bhavesh
.NET and SQL Server Blog
September 12, 2009 at 2:55 am
We want to use SSIS data transformation framework but avoid using Microsoft Jet engine which SSIS uses to read Excel Source.
However, I've came with the solution to use Script component...
Bhavesh
.NET and SQL Server Blog
September 10, 2009 at 8:57 am
Viewing 15 posts - 1 through 15 (of 27 total)