Viewing 15 posts - 901 through 915 (of 2,645 total)
Not sure if I fully understand your problem but would a query to load from the landing table into the appropriate table like this do?
INSERT INTO MainTable
(
...
March 5, 2021 at 2:28 pm
I'm having the following problem with the solution. The following call returns 'bc' as the only value, not 'Abc' as I would suppose:
DECLARE @Test table (Field...
March 4, 2021 at 5:42 pm
To save space, ENCRYPT the body (and other very long columns). This process is rather slow, but it typically does save a lot of space.
And, using triggers, you can...
March 4, 2021 at 3:31 pm
I see, I think an inner join would do the same job.
I can't see how your stored procedure is reusing a temporary table from another call. It looks...
March 3, 2021 at 8:45 pm
It's more likely a bug in the app. When it gets the result set from the temp table, what does the app do with it?
LightVader said in the first...
March 3, 2021 at 8:10 pm
I just started looking at your proc and the first bit of code:
--Create a temp table with the nodes & figures to execute
SELECT n.itemNum,
...
March 3, 2021 at 6:44 pm
I just started looking at your proc and the first bit of code:
--Create a temp table with the nodes & figures to execute
SELECT n.itemNum,
...
March 3, 2021 at 5:46 pm
Yep, as I said, C# has a ternary operator (? : ) that is logically similar to IIF, and VB has IIF, but that doesn't really have much to...
March 3, 2021 at 3:30 pm
If .Net developers can't figure out how to use a CASE statement, then train them better or get developers who can.
I don't think I'd blame this on...
March 3, 2021 at 3:04 pm
I'm having an issue with a database that I recently moved from SQL 2014 to SQL 2019 (Standard in both cases). The users get data from the database using...
March 2, 2021 at 11:16 pm
Is it possible to exit the proc without falling thru to the DROP TABLE? What about the start of the proc? If the temp table already exists, does the...
March 2, 2021 at 11:13 pm
What about this?:
Update A Set A.[Fname] = B.[Fname]
from [Reporting].[dbo].[D02_CallLog] A
inner join [Reporting].[dbo].[D02_CallLog] B
on A.[CallID] = B.[CallID]
...
March 2, 2021 at 7:50 pm
UPDATE a
SET a.Fname=b.Fname
FROM [dbo].[D2_CallLog] a
CROSS APPLY(SELECT TOP(1) *
...
March 2, 2021 at 7:37 pm
As a guy who constantly advocates for ANSI/ISO standards, I would like to point out that the CONCAT is not SQL but local dialect. The correct syntax is in...
March 2, 2021 at 2:50 pm
IIF is so unlike other other functions and expressions in SQL that it shouldn't be there. That is, nowhere else in SQL does it enclose conditions and the...
March 2, 2021 at 10:01 am
Viewing 15 posts - 901 through 915 (of 2,645 total)