Viewing 15 posts - 6,901 through 6,915 (of 8,760 total)
An alternative solution, not as efficient as QU but should be easier to understand
😎
USE tempdb;
GO
SET NOCOUNT ON;
declare @tbl table
(LineNum int,
Code varchar(2),
Amt money,
MaxAmt money
)
insert into @tbl (LineNum, Code, Amt, MaxAmt)
values
(1,'AA',10.00,50.00),
(2,'AA',20.00,50.00),
(3,'AA',10.00,50.00),
(4,'AA',40.00,50.00),
(5,'AA',10.00,50.00);
SELECT
...
October 1, 2014 at 11:04 pm
Thank you for the question Steve.
Slightly off topic, prefer using RAISERROR to PRINT for progress reporting on long running scripts as it is almost instant and the printf functionality is...
October 1, 2014 at 10:37 pm
Ed Wagner (10/1/2014)
Eirikur Eiriksson (10/1/2014)
Evil Kraig F (10/1/2014)
... Anything else I've missed in the last week and a half or so?
Nothing much, QoDs been controversial, SQL Server will become...
October 1, 2014 at 2:11 pm
Evil Kraig F (10/1/2014)
... Anything else I've missed in the last week and a half or so?
Nothing much, QoDs been controversial, SQL Server will become Hadoop only, aliens are...
October 1, 2014 at 1:55 pm
Quick thought, on 2012 this will work
😎
SELECT * FROM sys.all_sql_modules WHERE object_id = OBJECT_ID('dbo.MYVIEW')
SELECT * from sys.dm_exec_describe_first_result_set(N'select * from dbo.MYVIEW',NULL,NULL) as x
October 1, 2014 at 1:48 pm
SQLRNNR (10/1/2014)
FTR - Jack was renewed today as well.If I forgot, Congrats Jack.
Congratulations Jack!
😎
October 1, 2014 at 12:39 pm
Jack Corbett (10/1/2014)
If you aren't on Twitter you may have missed that Jason Brimhall (SQLRNNR) got awarded MVP today.
Brilliant and well deserved!!! Congratulations Jason!!!
😎
October 1, 2014 at 12:27 pm
GilaMonster (10/1/2014)
The promised pictureThis shows about the rear 1/4 of my desk, slap in the centre (left-right).
Guess the only think to do is to mix a salty soup cup and...
October 1, 2014 at 12:25 pm
Quick question, are there frequent changes in the schema/tables? If not, you are better off using the import export wizard to create the packages and edit as needed. To dynamically...
October 1, 2014 at 10:11 am
Toreador (10/1/2014)
Eirikur Eiriksson (10/1/2014)Wrong assumption, nothing wrong with the question.
If you think that then I suggest you re-read the question!
I'm intrigued by this comment, could you elaborate further?
😎
October 1, 2014 at 6:37 am
happycat59 (9/30/2014)
October 1, 2014 at 1:22 am
Thanks for the question Steve.
Misread the 1, 2, 3, 3, 4 as 1, 2, 3, 4 and of course ticked row_number:pinch: Off for making more industrial strength espresso
😎
September 30, 2014 at 10:22 pm
TomThomson (9/30/2014)
Stewart "Arturius" Campbell (9/30/2014)
Ed Wagner (9/30/2014)
I don't mean to spark a mathematical debate here, but what is truly random anyway? 😉
Randomness leads to unpredicatable outcomes, very much as depicted...
September 30, 2014 at 10:10 am
hakan.winther (9/30/2014)
Eirikur Eiriksson (9/30/2014)
Given options of 0,2 and 20 with the set's cardinality of 20 makes this kind of obvious; the granularity of syscolumns is...
September 30, 2014 at 4:51 am
Thank you for the question Amit.
Given options of 0,2 and 20 with the set's cardinality of 20 makes this kind of obvious; the granularity of syscolumns is {object,column}, one can...
September 30, 2014 at 2:05 am
Viewing 15 posts - 6,901 through 6,915 (of 8,760 total)