Viewing 15 posts - 2,116 through 2,130 (of 13,849 total)
I don't know the answer, but may have an alternative solution.
Use a Conditional Split to redirect rows which you do not want, by sending them to an unused output.
Your Script...
March 31, 2021 at 9:37 am
Thank you.
But i would like to use the function "len".
if the len(id) = 14 then it should be in ID1 otherwise it should be in ID2.
Can we achieve it...
March 30, 2021 at 4:17 pm
SELECT e.Firstname
,e.Lastname
,ID1 = MAX(e.ID)
,ID2 = MIN(e.ID)
FROM dbo.Emptable e
GROUP BY...
March 30, 2021 at 4:00 pm
I would like to display the result in single row like below based on len(id) column.
What does 'based on' mean here?
Where are your sample DDL and INSERT statements?
March 30, 2021 at 3:37 pm
SOX requirement, by any chance?
What is your data source?
March 30, 2021 at 10:52 am
Are they logged in using Windows auth? SSIS does not like SQL Server auth very much.
March 29, 2021 at 7:26 pm
Are you talking about INSERTS only, or also UPDATES and (maybe) DELETES?
SSIS can probably do it (depending on your answer to the above and the existence of columns such as...
March 26, 2021 at 3:54 pm
Can you provide some code that demonstrates the problem, which we can run for ourselves?
March 26, 2021 at 7:07 am
Maybe you could add
UNION ALL
SELECT 0
,NULL;
to the end of your query. Then a (0,NULL) row will always appear in your results.
March 25, 2021 at 5:12 pm
I'd add a 'make sure you take a copy of the DTSX file before editing' warning to this. Do it wrong and it will no longer open in SSDT. Of...
March 25, 2021 at 8:50 am
If you told us the text of the error message it might help.
March 19, 2021 at 2:03 pm
I think it's just a matter of adding this to the end of your query
ORDER BY SubQuery.department,SubQuery.myrank
I had assumed that the DENSE_RANK() was there for a reason! If your...
March 18, 2021 at 1:52 pm
Something like this?
WITH ranked
AS (SELECT te.department
,te.salary
,rnk =...
March 18, 2021 at 1:31 pm
OK, that looks like two instances on the same server. One called CONFLUENCE and one called EPO.
EPO looks active, CONFLUENCE not.
I recommend that you don't shut down the server until...
March 9, 2021 at 7:28 pm
Do you know how SQL Server is structured?
There is a thing called an 'instance' and the services associated with it (SQL Server, SQL Agent and others) run the instance.
Databases are...
March 9, 2021 at 6:57 pm
Viewing 15 posts - 2,116 through 2,130 (of 13,849 total)