Viewing 15 posts - 3,391 through 3,405 (of 49,571 total)
drew.allen (3/29/2016)
Secondly, it will probably be more efficient to group the orders before performing the join, especially if there is an index on the orders table that starts with custid.
If...
March 29, 2016 at 9:00 am
Fixed query
SELECT prod_name,
vend_name,
prod_price,
quanity
FROM orderitems
...
March 29, 2016 at 8:22 am
Try
SELECT Systems.SiteNumber AS 'SiteNumber',
PolicyAudit.PolicyID AS 'PolicyID',
CASE WHEN Coverstartdate IS NULL THEN ''
...
March 29, 2016 at 7:44 am
No idea, because the error thrown doesn't match the code.
Could be missing begin/end, could be some of those 'other minor changes' you made. Without seeing the code that throws the...
March 29, 2016 at 7:40 am
yb751 (3/29/2016)
I could have sworn I remember reading that declaring larger column sizes than required could cause some inefficiencies. i.e. incorrect estimates, over allocating memory...
I wouldn't be surprised if...
March 29, 2016 at 7:36 am
Key columns only. If an insert/update would make an index key over 900 bytes, the insert update will throw an error and fail.
March 29, 2016 at 7:18 am
An index key is limited to 900 bytes. If I'm indexing, then I know that it's safe to put a varchar(10) into an index key, but if that's varchar(8000), then...
March 29, 2016 at 6:47 am
Space used + 2 bytes.
As for make everything varchar(8000), why? Is a person's first name going to be thousands of characters long? A city name? A company name? An address...
March 29, 2016 at 5:17 am
There's no problems with free space in the DB.
The extra space is there because a reindex creates the new index and then drops the old one. Hence you need free...
March 29, 2016 at 4:42 am
You'll need something like extended events or SQLAudit for that.
March 29, 2016 at 3:25 am
SQL Guy 1 (3/28/2016)
I always thought that parallelism is about I/O, with dedicating a CPU to each I/O stream.
Not at all. Mostly because the query processor doesn't know what...
March 29, 2016 at 3:18 am
SQLRNNR (3/24/2016)
Anxiety on the other hand is a different story. Anxiety is fear driven and is harder to overcome.
I can vouch for that.
Being anxious requires putting on a...
March 24, 2016 at 5:15 pm
I like to use the FOR XML PATH method. It's detailed here: https://www.simple-talk.com/sql/t-sql-programming/concatenating-row-values-in-transact-sql/
March 24, 2016 at 4:01 pm
bartedgerton (3/24/2016)
March 24, 2016 at 3:36 pm
Viewing 15 posts - 3,391 through 3,405 (of 49,571 total)