Viewing 15 posts - 301 through 315 (of 441 total)
you want a sequential unique ID, use Row_Number():
Select Row_Number() over(order by tbl.AutoIncID asc) as ID,
tbl.value
FROM tbl
How's that?
April 7, 2009 at 1:08 pm
Ohh I see, so I guess I'll build every function as an inline function now, seems to help a lot on performance, and I can finally see it in the...
April 7, 2009 at 9:47 am
Actually no, they are a lot different.
I added them in the case statements, but as you can see
level 4 match on productID or ProductCatalog
Level 3 match on CategoryID or...
April 7, 2009 at 9:18 am
Ok, I changed the code to fit the requirements as per the matrix levels:
IF EXISTS ( SELECT
...
April 7, 2009 at 8:59 am
Yeah, just check the execution plan on every query you make, and it will say you have "no join predicates" between 2 tables. That's a cross join, and the execution...
April 7, 2009 at 7:59 am
Thanks GSquared for taking all that time for building something that you cannot even test.
It compiles perfectly, but some minor changes (like duplicate column names), but that's not an issue.
What...
April 6, 2009 at 1:13 pm
GilaMonster (4/6/2009)
GilaMonster (4/6/2009)
J-F Bergeron (4/6/2009)
Now, they are asking me to insert that "Price calcullation" within a query that will be used in the products screen. So when they will query...
April 6, 2009 at 11:03 am
Mark (4/6/2009)
You also seem to be using a couple of scalar function, can you post the code for thse as well.Enterprise.dbo.fnGICMatrixFindActiveByVendor
GICSPF.dbo.fnGICSPFMatrixFindActiveByVendor
Sure Mark, here's the function, but this one should not...
April 6, 2009 at 10:49 am
I was somehow foreseeing this answer, and I do not blame you, it's just it implies so many tables, views and procedures that it will be really hard to post...
April 6, 2009 at 9:59 am
Thang.Nguyen10 (4/3/2009)
As you suggested, I start running your script in Dev environment (where I am the only user) at 10:11am and now is 11:09am, the script is...
April 3, 2009 at 9:37 am
Florian Reischl (4/2/2009)
As first: Maybe I'm currently don't get it, so sorry if I'm just now start writing nonsense :-), but...
You are absolutely right, QUOTENAME is a nice feature...
April 3, 2009 at 8:23 am
Florian Reischl (4/2/2009)
Vijaya Kadiyala (4/2/2009)
it looks like you are passing dynamic WHERE condition and you are going to HIT boundary on the length. So why...
April 2, 2009 at 1:29 pm
100 rows is probably what you see in the preview screen, it will import all of them, it can be used to import a lot more than 1000 rows.
March 26, 2009 at 11:07 am
DECLARE @batch INT
DECLARE @all INT
DECLARE @current INT
SELECT @batch...
March 26, 2009 at 8:13 am
dndaughtery (3/26/2009)
March 26, 2009 at 8:08 am
Viewing 15 posts - 301 through 315 (of 441 total)