Viewing 15 posts - 19,681 through 19,695 (of 59,098 total)
The other have told you how to parse it. That's good because I just want to rant a bit and I know none of it is your fault. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 5:39 pm
If I understand what you're looking for, it's actually pretty easy. Use a "not" pattern to exclude BCD.
DECLARE @Text1 VARCHAR(8000);
SELECT @Text1 = 'ABNAGENDRACSURENDRADJITHENDRAXNARENDRABVEERNDARAXDRMNDRAXRVINDRABNAGENDRACSURENDRADJITHEN';
-- ...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 5:15 pm
mar.ko (9/4/2015)
And DateAdd is probably efficient....as whenever strings are involved, the conversion is usually costly.
Lowell's solution is very slick and efficient.
Sean's solution is...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 3:49 pm
Eric M Russell (9/4/2015)
Jeff Moden (9/4/2015)
Alvin Ramard (9/4/2015)
Jeff Moden (9/3/2015)
sriponraj (9/3/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 10:29 am
mar.ko (9/4/2015)
Sean Lange (9/4/2015)
mar.ko (9/4/2015)
I tried this:SELECT Convert(smalldatetime,Round(Convert(float,(dbo.fnDateOnly(getDate())))+16.0000000/24.0000000,6))
Result: 2015-09-04 16:00:00
It works (FnDateOnly strips the time).
Is there a more efficient way ?
What are you trying to do? And what is fnDateOnly?
RTFM:...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 9:23 am
Eric M Russell (9/4/2015)
Andrew_Steitz (9/4/2015)
Ed Wagner (9/3/2015)
Jeff Moden (9/3/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 9:13 am
kyagi.jo (9/4/2015)
That's fine, it makes sense, but my exact case, I view it as more like if the initial partition is A, then I want to partition switch, but load...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 8:53 am
Alvin Ramard (9/4/2015)
Jeff Moden (9/3/2015)
sriponraj (9/3/2015)
Check the connection for temp db by using sp_who2 active. Kill all the connection related to temp db and try to shrink..
So, if the run...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 8:39 am
shamshad.ali (9/3/2015)
--Jeff Moden
Change is inevitable... Change for the better is not.
September 4, 2015 at 1:10 am
@robert.chipperfield,
Praise and kudos to you and the team, again. The site has been absolutely awesome and better than it has been for longer than we thought. That hardware/cable...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 7:48 pm
jasona.work (8/28/2015)
mike 57299 (8/27/2015)
Thank you for the info.In your opinion, which is better - full every night or full once a week and differentials?
Mike
Short answer, it depends.
Long answer,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 7:45 pm
jasona.work (8/28/2015)
In my case, the actual data loss customers agree too (not my call) is...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 7:42 pm
Andy Warren (8/31/2015)
I wonder if the life of a DBA isn't different than most because of the complexity compared to other systems. I'm not an Exchange/Sharepoint/whatever/whatever guy, but it sure...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 7:37 pm
coolchaitu (9/1/2015)
Dear Jeff,In that case, how to find unused indexes.
You can still use the information in sys.dm_db_index_usge_stats to guide you. You just don't want to do it based...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 7:09 pm
sriponraj (9/3/2015)
Check the connection for temp db by using sp_who2 active. Kill all the connection related to temp db and try to shrink..
So, if the run you kill is the...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 3, 2015 at 5:13 pm
Viewing 15 posts - 19,681 through 19,695 (of 59,098 total)