Viewing 15 posts - 1,816 through 1,830 (of 6,676 total)
Just as a side bar, I generally don't mix meta data (headers/footers/line counts, whatever) in fixed field format files simply because most people on the receiving end have problems...
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
May 25, 2020 at 4:35 pm
well.... kind of no headers as such.. but for many such files you do have a "header" record with a particular fixed format, then "data" records with their own...
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
May 25, 2020 at 4:31 pm
To send an HTML email - you have to provide the html code in the body of the message. Whether you build out that code manually - or within your...
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
May 25, 2020 at 4:19 pm
I did not follow everything you did...it seems that your real problem is how to use SSIS to export to a fixed width file.
First, a fixed width file generally does...
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
May 25, 2020 at 2:24 pm
I think the reason your version is blocking itself is the self-join - and the derived table. Locks have to be taken out on each 'copy' of the table 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
May 22, 2020 at 4:55 pm
What does this mean? Did you get an error - if so, what was the error?
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
May 20, 2020 at 6:20 pm
Here is one way - but I am sure there is a better/faster method:
Declare @testTable Table (testString varchar(30));
Insert Into @testTable
Values ('123.1.4'), ('123.12.5'), ('123.12.3.5');
Select...
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
May 19, 2020 at 9:59 pm
Shoot - I usually see the STUFF option but missed it on this one...and putting in the 'T' was on my mind but it is getting late 😉
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
May 19, 2020 at 9:48 pm
You can do this without the function:
Declare @startDate date = '2020-05-08'
, @endDate date = '2020-06-22';
Set @startDate =...
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
May 19, 2020 at 9:18 pm
Declare @dateString varchar(30) = '2020-04-29-14.41.26.686978';
Select *
, DateOnly = left(d.dateString, 10)
, TimeOnly = substring(d.dateString, 12,...
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
May 19, 2020 at 8:42 pm
There is one additional parameter (at least) that is required here. You need to specify the database where you want to execute the code.
, @execute_query_database =...
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
May 19, 2020 at 7:41 pm
To be honest, I think that all'y'all 😀 are making this a whole lot more complex than needed. The PK on the table is an identity column. That means...
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
May 18, 2020 at 7:47 pm
Have you tested using the procedure with the oldest available date? If so - how long did it take to delete the data?
It is also possible to add an index...
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
May 18, 2020 at 7:28 pm
Maybe, but it shouldn't be for long unless you have a huge number of emails per day. Of course, you would have had the same blocking (short and sweet)...
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
May 18, 2020 at 4:06 pm
I did not include the progress table...you can add that in if needed:
Use msdb;
Go
Set...
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
May 17, 2020 at 3:54 pm
Viewing 15 posts - 1,816 through 1,830 (of 6,676 total)