Viewing 15 posts - 3,211 through 3,225 (of 7,614 total)
August 23, 2018 at 7:47 am
August 22, 2018 at 12:26 pm
A standard "AFTER" trigger will work. Keep in mind that the trigger does not have to be "all or nothing": it can let good INSERTs/UPDATEs apply and only reverse the...
August 22, 2018 at 10:56 am
August 22, 2018 at 9:38 am
Whether you use a single Tag table or not, a trigger would still be much easier than a constraint. Why do you not want to even consider a trigger?
August 21, 2018 at 2:26 pm
A COMMIT will not drop the temp table. You need to drop it yourself.
A ROLLBACK will drop a temp table if it was created within the transaction, but...
August 21, 2018 at 2:01 pm
Do you really want every match from Table_B to Table_A or only the most relevant match? If you want to list every role, then this join will always be very...
August 21, 2018 at 11:59 am
Since you mentioned performance specifically, this might perform better:
Select Count(Distinct HB.AbillNo) AS AbillNo
FROM HB WITH (NOLOCK)
Where HB.st = @StatusCode And
Exists(
August 21, 2018 at 11:14 am
Did you partition the columnstore clustered index on posted delivery date also? That would make sense if it was best to cluster the row store on that column. It's important...
August 16, 2018 at 1:26 pm
"AVERAGE" isn't a SQL Server function, afaik. It seems easy enough to get the result in SQL Server, but I'm not sure that would help you.
Do you want...
August 16, 2018 at 10:08 am
Maybe add a "NOT" flag to the conditions table. If the flag is not on, you do a normal "LIKE" to join. If it's on, you do a "NOT LIKE"...
August 15, 2018 at 1:57 pm
August 15, 2018 at 1:01 pm
August 14, 2018 at 11:34 am
Not 100% sure, but I believe it is:
create table ... (column1 ..., column2 ...,
primary key nonclustered ( column1, column2 ) ) with ( memory_optimized =...
August 14, 2018 at 10:57 am
You're likely going to need dynamic SQL to fully implement essentially free-form conditions, but to do what you've specified so far, you can do it with just standard LIKEs:
August 14, 2018 at 10:11 am
Viewing 15 posts - 3,211 through 3,225 (of 7,614 total)