Viewing 15 posts - 1 through 15 (of 26 total)
Thanks for spotting that. I'll try that out in my test DB and see if it is a more efficient method.
Appreciatively,
mtf
February 18, 2013 at 1:54 pm
Thank you for the endorsement on Magoo's convert trick. I am going to adjust it so the final character isn't repeated and if I can get that to work, I'll...
January 18, 2013 at 3:44 pm
Lowell,
That was just the ticket!
The select StripNonAlphaNumeric(name) produces exactly the ASCII without the UNICODE NULLs embedded. The update also seems to work in the testing I've done so far!!!
For...
January 18, 2013 at 3:18 pm
Magoo,
I think you're right about how there are embedded NULLS between each character. I ran the series of convert functions you provided and it showed AHSGuest††††††††††††††††††††††††††††††††††††††††††††††††††††††††††††.
I really appreciate you providing...
January 18, 2013 at 3:11 pm
Magoo,
For the 'AHSGUEST' value, here's what I see:
select id, name, DATALENGTH(name) as 'thedatalengthName'
FROM my_user_table
WHERE id='123'
123A30
mtf
January 17, 2013 at 1:12 pm
Lowell,
Sadly, this isn't matching any rows:
select id, name
FROM my_user_table
WHERE CHARINDEX(name,CHAR(0),1) > 0
No rows returned. Likewise, the replace operation doesn't touch any of the rows. Ideas?
Thank you very much for...
January 17, 2013 at 1:09 pm
Hey, that's a pretty cool piece of SQL! Thanks for offering it.
I think the +1 helps it traverse the string, but honestly, this is using some structures I've never even...
January 17, 2013 at 2:14 am
Thanks for the info. I think this is my last question....
Should I rebuild the indexes after every incremental shrink?
-- mtf
December 14, 2011 at 5:13 pm
Thanks for this script. What values would you to call the script if you wanted to shrink it in a 1GB increment?
-- mtf
December 14, 2011 at 11:53 am
This issue has been SOLVED.
I checked the SQL Server Logs and found the following error message:
an attempt was made to send an email when no email session has been established...
September 30, 2011 at 8:48 am
Lowell (9/29/2011)
you need exclusive access to the database in order to change the owner...
So the goal here is to actually change the owner rather than add the user to the...
September 29, 2011 at 3:30 pm
Chuck Hottle (9/29/2011)
You also have to enable the profile on the SQL Agent properties, Alert System screen and restart the service.
Wow. What kind of maniacs embedded that hidden pitfall into...
September 29, 2011 at 1:46 pm
Jason,
Thanks for the reply. I just now checked the operator (myself) and the enabled check is in place. No pager duty schedule settings have been made. I checked the 'notifications'...
September 29, 2011 at 1:42 pm
Lowell,
When I execute the syntax you suggested, it seems to never complete. Should it really take a long time for this stored proc to finish?
USE <database name>
GO
exec sp_changedbowner 'DbViewerTesting'
mtf
September 29, 2011 at 12:04 pm
Lowell,
I received permission from the organization here to allow the customer user to be dbowner. I thought I'd try the method you suggested in this snippet, but I receive an...
September 29, 2011 at 11:13 am
Viewing 15 posts - 1 through 15 (of 26 total)