Viewing 15 posts - 1,231 through 1,245 (of 2,648 total)
I didn't add the compression statement, that is generated by the BIML code.
Ok, sorry, I've never used BIML. Also I've only used memory optimised table once, and I found...
December 25, 2019 at 2:29 am
You cannot have DATA_COMPRESSION on memory optimised table, so there is no point in specifying it.
So remove that option and just leave: WITH (MEMORY_OPTIMIZED=ON)
December 24, 2019 at 7:42 pm
You just need BEGIN/END around the statement.
Also, it will be more efficient to use EXISTS than SELECT COUNT(*).
IF EXISTS(SELECT * FROM [A]) BEGIN
...
December 24, 2019 at 5:34 pm
You just need BEGIN/END around the statement.
Also, it will be more efficient to use EXISTS than SELECT COUNT(*).
IF EXISTS(SELECT * FROM [A]) BEGIN
TRUNCATE...
December 24, 2019 at 2:22 pm
Have you tried running taskmgr or perfmon to see which processes are using a lot of memory?
December 24, 2019 at 10:49 am
Although I believe in Christmas spirit, I don't think giving them the answer is really going to help them in the long run. :/
I don't think you can come...
December 24, 2019 at 12:16 am
SELECT p.ID PRODUCT_ID,
p.PRODUCT_NAME,
o.ID ORD_ID,
...
December 23, 2019 at 9:59 pm
It could be that you are not limiting the maximum amount of memory available to SQL Server?
If you right-click on the server in the SSMS object explorer, then on the...
December 23, 2019 at 4:54 pm
I can't see how you know exactly where to split the number, for example, how would you know if tbl2 number 1234050360 is 1234-050360 or 123405-0360?
If you are sure you...
December 23, 2019 at 3:03 pm
Do you have an index on CQRReportInstance(ReportInstanceId) ?
If you use INSENSITIVE when you create the cursor it will make a copy of the data used by the cursor in tempdb...
December 23, 2019 at 2:35 pm
This *was* good advice back in 2005, but now on SQL Server 2012 and above, table variables can be indexed, are dynamically indexed by default and fully accessible by...
December 21, 2019 at 10:55 pm
Of course, that recommendation also comes with the warning that if the hashbytes are different, then the rows are guaranteed to be different. However (and you know...
December 20, 2019 at 3:49 pm
First, if you add a few new-lines the query becomes readable:
SELECT t.PartNumber,
t.CompanyName,
...
December 20, 2019 at 2:41 am
Of course, that recommendation also comes with the warning that if the hashbytes are different, then the rows are guaranteed to be different. However (and you know this but...
December 20, 2019 at 12:29 am
SELECT CONCAT('
SELECT ''', QUOTENAME(t.TABLE_SCHEMA), '.', QUOTENAME(t.TABLE_NAME), ''' [TABLE_NAME], COUNT(*) COUNT
FROM (SELECT ',x.c, '
FROM... December 19, 2019 at 11:13 pm
Viewing 15 posts - 1,231 through 1,245 (of 2,648 total)