Viewing 15 posts - 1,891 through 1,905 (of 6,679 total)
Hi Williams,
Thanks for making your time for reply!!
why do you need a copy of the data in the secondary database?
My reply:-Actually my task was to update the data across...
April 12, 2020 at 2:46 pm
For completeness sake - here is the query using PIVOT:
--==== Using PIVOT and datediff / 30 to determine category
Select pvt.Cust_num
...
April 12, 2020 at 2:37 pm
In both solutions - I would move the calculation to a CROSS APPLY:
SELECT Cust_num
,Co_num
...
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...
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...
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...
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...
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...
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...
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
...
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...
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...
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...
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...
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...
April 6, 2020 at 8:09 pm
Viewing 15 posts - 1,891 through 1,905 (of 6,679 total)