Viewing 15 posts - 1 through 15 (of 18 total)
To use a system function that already does what you have coded.
April 30, 2015 at 3:29 pm
try master.sys.fn_varbintohexstr( cast(int-value as varbinary(max)) )
April 29, 2015 at 4:03 pm
Bloody iPhones. Exec toys and everyone panders to them.
This is now like a newspaper where the article is split up so that there is a bit on every page. (Too...
July 2, 2013 at 3:24 pm
Patrick Ge (6/19/2013)
June 20, 2013 at 5:29 pm
If you end up with some excessive table growth.
eg. Replication may be updating statistic regularly, rapid table drop & creates they can be excluded by adding
if (condition)
begin
...
June 19, 2013 at 3:35 pm
Why even spend those few minutes?
Simply add the '-SkipErrors' parameter to the distribution agent startup call.
Then it doesn't matter which article it is causing the problem.
http://technet.microsoft.com/en-us/library/ms151331%28v=sql.105%29.aspx
The errors will be logged,...
May 30, 2013 at 4:26 pm
Grant Fritchey (5/31/2012)
Alex-668179 (5/31/2012)
Fine, but should it then also always be the (preferably meaningless?) primary key? Or an index that is...
May 31, 2012 at 4:49 pm
table locks are the killer here...
Lock escallation happens @5000 rows, keep batch sizes below this
select 1
while @@rowcount > 0
delete top 4999 from ...
(or something similar)
Also you're...
March 24, 2011 at 3:53 pm
This doesn't cover the cross-instance collation issues.
Using the default configuration for Linked-Servers will give you no end of headaches.
By default, the collation is eqated to the collation of the remote...
March 15, 2011 at 2:40 pm
Compression does not work well on any data stream < 150 bytes (+/-)
For most techniques the first 100 bytes, or so, are used to store header information to reverse the...
January 13, 2011 at 2:23 pm
GabyYYZ (3/16/2010)
1. Do NOT turn autoshrink on.(or is someone willing to defend keeping Autoshrink on?) 🙂
I'll defend it! 😛
ALL my developers have to put up with it.
Frankly I want to...
March 16, 2010 at 3:05 pm
Steve Jones - Editor (2/11/2010)
This is definitely a place where the OS and SQL should align the partitions and align the cluster/page size when you create a DB as well.
Yes,...
February 11, 2010 at 1:47 pm
This works if you are the ONLY one using the database.
Running in a production system you can't just go about changing the recovery model.
as for a 'batch' delete
select 1
while @@rowcount...
September 15, 2009 at 3:46 pm
Of course this all falls in a screaming heap when larger 'row selections' are used, and 'Lock escalation' kicks in.
A selection of 5000+ rows - will escalate to a single...
July 7, 2009 at 3:35 pm
TheSQLGuru (4/28/2009)
Again this code will break with new, more precise, datetime datatypes in SQL Server 2008.
Well if you change the code - ie the data type - of course you...
April 28, 2009 at 10:09 pm
Viewing 15 posts - 1 through 15 (of 18 total)