Viewing 15 posts - 196 through 210 (of 1,248 total)
SELECT DISTINCT [Name] FROM
Should not that be Select distinct @columnsList .... etc....?
I have a feeling you could make use of sp_executeSQL.
----------------------------------------------------
December 18, 2021 at 1:42 am
If you can post the whole message it would be of help. This could indicate your statistics are outdated. A bad estimation of rows could lead to a scan instead...
----------------------------------------------------
December 18, 2021 at 1:38 am
You are joining here the forcast on chain and location. Do you need to join on both conditions? In the visualisation tool there may be a setting to treat this...
----------------------------------------------------
December 18, 2021 at 1:16 am
It fails because the underlying table was created with ANSI_NULLS set to off.
----------------------------------------------------
December 18, 2021 at 1:03 am
Old post, but I ran into this issue recently.
I get an error when trying to create a 'filtered' non clustered index only. A non filtered variety works just fine. Seems...
----------------------------------------------------
December 17, 2021 at 5:12 am
This is an excellent diagram. I saved a copy as well.
----------------------------------------------------
December 8, 2021 at 11:08 pm
The problem starts with management. We live in a time when people have short attention spans and want to see results now. Imagine telling a top level manager that what...
----------------------------------------------------
December 8, 2021 at 6:55 am
A report user would still want to see not only what items sold, but what did not sell all in the same view. So doing a right join (sales events...
----------------------------------------------------
November 29, 2021 at 7:26 am
As far as Primary Key (without Clustered Index) is concerned you MAY have it on a GUID or an Identity column (mostly preferred). But if you ask Primary Key...
----------------------------------------------------
October 27, 2021 at 2:24 am
I would not advise a GUID as a primary key. They are 16bytes in size last time I checked, have no fixed order, and a int or big int could...
----------------------------------------------------
October 24, 2021 at 9:09 pm
One approach you can take is create your own surrogate key for all record and keep the customer key as its own column.
"Policy Number would make a decent clustered index...
----------------------------------------------------
October 24, 2021 at 9:02 pm
With OLAP your dimension tables are typically wide and short compared to your fact tables (tall and narrow). Typically we add everything to the dimension if the attribute is a...
----------------------------------------------------
October 24, 2021 at 8:55 pm
You can use a case statement along with the functions Grant alludes to determine the column datatypes. I hope you only have to do this once per column / per...
----------------------------------------------------
October 24, 2021 at 8:49 pm
Data type disparity on join conditions etc is not really an after thought I've seen over time, its more like a 'no thought.' You bring up an excellent point that...
----------------------------------------------------
October 24, 2021 at 3:10 am
Dont forget any secondary replicas if you are using High Availability.
----------------------------------------------------
October 23, 2021 at 5:39 am
Viewing 15 posts - 196 through 210 (of 1,248 total)