Viewing 15 posts - 1,321 through 1,335 (of 6,676 total)
You don't have to use replace - the string will be converted (implicitly) to an integer for comparison so any leading/trailing blanks will not affect that conversion.
You can...
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
February 9, 2021 at 8:45 pm
You don't have to use replace - the string will be converted (implicitly) to an integer for comparison so any leading/trailing blanks will not affect that conversion.
You can also use...
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
February 9, 2021 at 8:24 pm
Monday to Sunday would be good for me to consider a week. It would be great to see the first week of 2021 as week 1 with just one...
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
February 9, 2021 at 5:49 pm
You can simplify those queries without using a sub-query.
SELECT DISTINCT
column1
INTO temp_Weekly_Event_Report
FROM [SQLDatabase].[dbo].[Table]
WHERE...
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
February 8, 2021 at 8:25 pm
You are correct. I was trying to make the point that an iso_week runs Monday to Sunday. If the OP wants something else, say Sunday to Saturday, then some...
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
February 5, 2021 at 6:01 pm
Something like this?
Declare @minDate datetime
, @maxDate datetime;
Set @minDate = (Select min(t.doj) From dbo.Test t); ...
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
February 5, 2021 at 5:43 pm
Thanks, Passed this information on to the team.
We just made a connection to the database, with some struggles. But succeeded. Next problem. Although the table names were the same...
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
February 5, 2021 at 4:29 pm
You'll have to include more details. What is "n and null"?
The ON clause is processed similar to how a WHERE clause, but it is done first. The joins and...
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
February 4, 2021 at 9:06 pm
I guess I am not following - you still haven't explained why you need to EXECUTE AS. What is it that requires the procedure to be executed in...
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
February 4, 2021 at 6:40 pm
I guess I am not following - you still haven't explained why you need to EXECUTE AS. What is it that requires the procedure to be executed in a different...
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
February 4, 2021 at 4:52 pm
SQL Search provides a list of the procedures that match your string - you then have the ability to select the procedure in the list, click on a link that...
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
February 3, 2021 at 7:07 pm
FWIW - Filestream allows for direct access to the files through a file share...so not sure why that wouldn't work. But - it would be a significant amount of work.
You...
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
February 2, 2021 at 11:07 pm
Further to that - if you are using something else...then move the file system stuff to its own procedure and use EXECUTE AS on that procedure. You can create 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
February 2, 2021 at 9:16 pm
Not that you have the time - but this sounds like something Filestream was designed to accomplish and probably would be the better option long term.
With that said - there...
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
February 2, 2021 at 9:14 pm
Okay - let's take a step back...can you outline what you need to do with this procedure? Maybe there is a better way to approach the problem. This sounds like...
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
February 2, 2021 at 6:44 pm
Viewing 15 posts - 1,321 through 1,335 (of 6,676 total)