Viewing 15 posts - 1,891 through 1,905 (of 6,676 total)
In both solutions - I would move the calculation to a CROSS APPLY:
SELECT Cust_num
,Co_num
...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 11, 2020 at 4:47 pm
What is the purpose of having a second database that is exactly the same as the primary database? Why do you need to copy the data to the other database?
A...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 11, 2020 at 4:02 pm
How can I use the VARCHAR command only to display the first 20 characters for a comment field that is set for varchar(200)?
I am trying to display the first...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 10, 2020 at 9:04 pm
Take a look at the TOKEN function (https://docs.microsoft.com/en-us/sql/integration-services/expressions/token-ssis-expression?view=sql-server-ver15) - it will be much easier using that instead of substring.
Build a variable (name it FileCode) as: TOKEN(@[User::FileName], "_", 3)
Then your expression...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 10, 2020 at 8:55 pm
Just a quick note - you may need to embed double-quotes into that string for it to work correctly. There is a space in the path and it will probably...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 9, 2020 at 6:43 pm
You stated that SQL Server has 32GB of memory - did you mean the server has 32GB of memory? If so - what is the max memory assigned to SQL...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 9, 2020 at 4:47 pm
@jeff-moden, Yes, I agree with you that the steps I'm trying to get through Power Query can also be done with T-SQL. The main purpose of this article...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 9, 2020 at 4:43 pm
You can do this with an OUTER APPLY instead of a CASE expression:
SELECT *
FROM TableB b
OUTER APPLY (SELECT TOP 1
...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 9, 2020 at 4:31 pm
I was not able to see the picture before - and since this is a cursor it is definitely a coding problem. If you can provide the code - then...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 8, 2020 at 10:14 pm
This is almost certainly a coding problem - but to be sure we would need to see the code and the execution plan. The actual execution plan saved as a...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 7, 2020 at 9:26 pm
is it just me or does the OP here just think that we "should" answer all his/her questions without he/she showing that he made an effort of googling...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 7, 2020 at 8:14 pm
If this file is truly a fixed width file - then every record should be the same length. However, it looks like this might be a ragged-right type of file...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 6, 2020 at 10:19 pm
Thanks Jeffrey! Node4 will not have any other user databases other than reporting DB which would be configured with AG. In case if there is any server issue or...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 6, 2020 at 8:09 pm
We might even be able to save those 4 extra characters - depending on the source data. If we know for sure that we have a minimum length of at...
Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 4, 2020 at 7:47 pm
Just one point - not sure it makes a difference in performance but you can avoid this:
@BitBucket = RIGHT('00000000000000'+CONVERT(VARCHAR(14),Col01),14)By using this:
@BitBucket = RIGHT(CONCAT('00000000000000', Col01),...Jeffrey Williams
“We are all faced with a series of great opportunities brilliantly disguised as impossible situations.”
― Charles R. Swindoll
How to post questions to get better answers faster
Managing Transaction Logs
April 4, 2020 at 5:21 pm
Viewing 15 posts - 1,891 through 1,905 (of 6,676 total)