Viewing 15 posts - 3,421 through 3,435 (of 13,855 total)
Jeff, your advice was so excellent, I clearly didn't bother reading it properly 🙂
July 23, 2019 at 5:02 pm
What do you mean by this?
T has 57,000 distinct rows
I mean, why did you use the word 'distinct'?
July 23, 2019 at 2:19 pm
Following on from Jeff's excellent advice, I'd like to add a little more. I'd suggest removing all spaces from your column names ... makes your code much less cumbersome because...
July 23, 2019 at 2:06 pm
Declaring variables as Varchar without an explicit length is considered bad practice and can lead to unexpected results.
Use VARCHAR(n) (where n is the longest expected length) instead.
July 23, 2019 at 12:24 pm
And if you're at all OCD with your database object names (or maybe you like to check everything in to source control & therefore avoid random names), consider using extended...
July 23, 2019 at 1:14 am
You need to put your defaults in parentheses, eg:
DEFAULT ('Y')
July 23, 2019 at 1:12 am
In stored procedure Procedure SP_FlagTests_CY, there is a reference to a column BaseSolvencyBuffer_CYMinus1, and that column cannot be found in the context of the query.
If you show us the content...
July 22, 2019 at 8:02 pm
Good thought. You are correct about my current use of the REST API. Will have a go at this at some point.
July 17, 2019 at 2:54 pm
A new bump in the road with one person in the office. I'm working on a improving performance for a procedure and send it to code review with him....
July 17, 2019 at 1:29 pm
Additionally, using options such as SET ROW COUNT are session wide and prone to unintentional mistakes if it is left active. Additionally, if you are just playing in...
July 15, 2019 at 1:03 pm
It's a warning, not an error. The help text provides a reasonable explanation as to why the warning has been generated.
July 15, 2019 at 12:59 pm
The staging table / stored procedure route is the way I would go. T-SQL will likely blow away anything you can code in SSIS to do this.
July 12, 2019 at 8:52 pm
You might find that you can expand the data ranges very rapidly in T-SQL, by joining to an appropriate calendar table or numbers table (it's hard to be sure what...
July 12, 2019 at 8:18 pm
SET ROWCOUNT 10
SELECT ...
SET ROWCOUNT 0
July 12, 2019 at 8:13 pm
Viewing 15 posts - 3,421 through 3,435 (of 13,855 total)