Viewing 15 posts - 1,216 through 1,230 (of 2,645 total)
with cte as
(
select *
from (values ('1230000045'),
...
January 3, 2020 at 12:00 pm
They all produce the same results. There are usually many ways to get the same results from different queries, for example, all of these will also produce the same results:
January 1, 2020 at 3:56 pm
You also have two commas in a row:
T1.ItemCode,
,Coalesce
December 31, 2019 at 12:08 pm
Notepad++ is quite good for this.
You can open multiple files and perform a replace on all files in one go.
December 30, 2019 at 12:57 pm
A table doesn't store data in order. You can only guarantee getting data back in a particular order if you use an ORDER BY clause.
Is there another column that you...
December 29, 2019 at 11:19 pm
<table_source> ::=
{
table_or_view_name [ [ AS ] table_alias ] [ <tablesample_clause> ]
[ WITH (...
December 29, 2019 at 2:03 am
You should use a windowed SUM:
select pt.CategoryName,
pt.AgentDepartmentName,
pt.TicketsOpened,
...
December 28, 2019 at 12:04 am
DECLARE abc CURSOR FOR
SELECT ROUTINE_NAME
FROM INFORMATION_SCHEMA.routines
WHERE ROUTINE_TYPE = 'PROCEDURE'
and right(ROUTINE_NAME,4)='Bulk'
and ROUTINE_NAME !='usp_Integration_CONTRAT_EMISSION_Bulk'
order by case ROUTINE_NAME...
December 27, 2019 at 2:49 pm
When you say Page File usage is up to 200% of the memory, what you are talking about is the size of the page-file not the page file actually being...
December 27, 2019 at 11:34 am
Insert into #TempInvoice (Tkey,Status,Amount)
SELECT TOP(1) Tkey,'First',Amount FROM #TempInvoice
December 25, 2019 at 8:22 am
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
Viewing 15 posts - 1,216 through 1,230 (of 2,645 total)