Viewing 15 posts - 1,471 through 1,485 (of 13,855 total)
Same version of SQL Server on both machines?
April 8, 2022 at 7:34 am
Untested, but I think this is tidier. Converting date to VARCHAR is going to hit performance. Also, I suggest that you never use VARCHAR without specifying its length. Under some...
April 7, 2022 at 7:39 pm
Your description is hard to understand.
Please provide DDL, sample data as INSERT scripts and desired results based on that sample data, and it will be easier for someone to provide...
April 7, 2022 at 4:45 pm
Referencing assemblies using NUGET does not work in SSIS script tasks. Instead, you need to register the assembly in the global assembly cache.
Please read the following page and see whether...
April 7, 2022 at 3:39 pm
sp_send_dbmail (link) will send an e-mail for you. But you still have not asked a question. Sample questions:
April 7, 2022 at 3:01 pm
WinSCP can be called from an SSIS C# task (link).
We can't debug a large chunk of C# code for you. Especially if you do not tell us what errors...
April 7, 2022 at 1:37 pm
That is a requirement. But what is your question?
April 7, 2022 at 1:32 pm
Try this:
CASE WHEN LEFT(t.DC,2) IN ('01', '02', '08', '21', '22', '30', '32', '40', '55', '62')
THEN LEFT(t.DC,2)
ELSE '01'
END AS DC April 7, 2022 at 6:44 am
--deleted
April 4, 2022 at 1:51 pm
That's a bit trickier, but try this version and see whether it helps:
WITH ordered
AS
(SELECT
hs.Id
, hs.SalesID
...
April 4, 2022 at 1:49 pm
Your trigger will fail if more than one row is inserted or updated in a batch, so I suggest that you fix that.
What do you want TitleNormal to be updated...
April 1, 2022 at 8:22 am
Here's an example
DECLARE @Query VARCHAR(1000) = 'SELECT TOP (10) object_id, name FROM sys.columns';
DROP TABLE IF EXISTS #SomeTab;
CREATE TABLE #SomeTab
(
object_id INT
,name...
March 31, 2022 at 4:08 pm
Does this help? It uses the ROW_NUMBER function to perform the ordering and partitioning that you need.
DROP TABLE IF EXISTS #HectorSales;
CREATE TABLE #HectorSales
(
Id...
March 31, 2022 at 12:59 pm
SELECT ... FROM t WHERE (EMPLOYEE_ID != 123 AND WORKSITE_ID != 22)
The logical equivalent of
NOT (A AND B)
is
NOT A OR NOT B
so changing the AND in your query to...
March 31, 2022 at 10:39 am
It doesn't work the way you are hoping (ie, with some sort of table-name cursor).
If you write a query in that window, it will export the results of running that...
March 31, 2022 at 10:22 am
Viewing 15 posts - 1,471 through 1,485 (of 13,855 total)