<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-26042553</id><updated>2024-10-24T08:52:04.028-05:00</updated><category term="Undocumented Procedures"/><title type='text'>SQL Lane</title><subtitle type='html'>Take walk down SQL Lane as he discusses his trials and successes as Sr. SQL Server DBA.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqllane.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sqllane.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SQL Doc</name><uri>http://www.blogger.com/profile/02985644740410069774</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7DrxlftEX_wt3ZyXwr0Lpioa68YDaund9jokmdjscYQDRfS19-2n90mgEzaOOSwuI5YxZJzzoPEyD6kG39wThVJI_5tiBea26oS7VySR4h1rDfm1jOLVbl6yjtKQiA/s220/GEDC0296.JPG'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>4</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-26042553.post-7799688418444877961</id><published>2010-07-10T09:25:00.004-05:00</published><updated>2010-07-11T10:36:08.468-05:00</updated><title type='text'></title><content type='html'>What is a &quot;Uniquifier&quot;? If you have a clustered index defined on a non-unique colum(s) SQL Server will adds a 4 byte field to the row to make the clustered index ordered and unique. The value is null if the clustered index row is unique.</content><link rel='replies' type='application/atom+xml' href='http://sqllane.blogspot.com/feeds/7799688418444877961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqllane.blogspot.com/2010/07/what-is-uniquifier-if-you-have.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/7799688418444877961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/7799688418444877961'/><link rel='alternate' type='text/html' href='http://sqllane.blogspot.com/2010/07/what-is-uniquifier-if-you-have.html' title=''/><author><name>SQL Doc</name><uri>http://www.blogger.com/profile/02985644740410069774</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7DrxlftEX_wt3ZyXwr0Lpioa68YDaund9jokmdjscYQDRfS19-2n90mgEzaOOSwuI5YxZJzzoPEyD6kG39wThVJI_5tiBea26oS7VySR4h1rDfm1jOLVbl6yjtKQiA/s220/GEDC0296.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26042553.post-2418966267308374060</id><published>2010-07-08T22:11:00.007-05:00</published><updated>2010-07-09T08:26:08.416-05:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Undocumented Procedures"/><title type='text'></title><content type='html'>&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span&gt;&lt;span&gt;sp_MSforeachdb  &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;@command1 {nvarchar(2000)}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;, @replacechar {nchar(1)}&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;, @command2 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:Verdana, Arial, Helvetica, sans-serif;&quot;&gt;{nvarchar(2000)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;, @command3 &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:Verdana, Arial, Helvetica, sans-serif;&quot;&gt;{nvarchar(2000)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;, @precommand &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-family:Verdana, Arial, Helvetica, sans-serif;&quot;&gt;{nvarchar(2000)}&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;   style=&quot;  ;font-family:Verdana, Arial, Helvetica, sans-serif;font-size:small;&quot;&gt;&lt;span&gt;&lt;span&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space:pre&quot;&gt; &lt;/span&gt;, @postcommand &lt;/span&gt;&lt;/span&gt;{nvarchar(2000)}&lt;pre&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-family:verdana;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;Where:&lt;/span&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot; ;font-size:medium;&quot;&gt;@command1 - is the first command to be executed by &quot;sp_MSforeachdb&quot; and is defined as nvarchar(2000)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;@replacechar - is a character in the command string that will be replaced with the table name being processed (default replacechar is a &quot;?&quot;)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;@command2 and @command3 are two additional commands that can be run against each database&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;@precommand - is a nvarchar(2000) parameter that specifies a command to be run prior to processing any database&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;@postcommand - is also an nvarchar(2000) field used to identify a command to be run after all commands have been processed against all databases.&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;span class=&quot;Apple-style-span&quot;  style=&quot;font-size:medium;&quot;&gt;I have found that in real life the nvarchar(2000) really means 1928.&lt;/span&gt;&lt;/div&gt;&lt;/span&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqllane.blogspot.com/feeds/2418966267308374060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqllane.blogspot.com/2010/07/spmsforeachdb-command1-replacechar.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/2418966267308374060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/2418966267308374060'/><link rel='alternate' type='text/html' href='http://sqllane.blogspot.com/2010/07/spmsforeachdb-command1-replacechar.html' title=''/><author><name>SQL Doc</name><uri>http://www.blogger.com/profile/02985644740410069774</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7DrxlftEX_wt3ZyXwr0Lpioa68YDaund9jokmdjscYQDRfS19-2n90mgEzaOOSwuI5YxZJzzoPEyD6kG39wThVJI_5tiBea26oS7VySR4h1rDfm1jOLVbl6yjtKQiA/s220/GEDC0296.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26042553.post-9101106426346690236</id><published>2010-07-07T14:35:00.003-05:00</published><updated>2010-07-07T14:45:35.701-05:00</updated><title type='text'></title><content type='html'>Do not use sp_adduser or sp_dropuser use Create User and Drop User because they are being deprecated.  Also when you use sp_adduser a schema is created with the user name when used in SQL Server 2005/2008 that is owned by the user. This schema can not be removed without first transferring ownership to dbo with &lt;div&gt;ALTER AUTHORIZATION ON SCHEMA::[username] TO [dbo] first&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqllane.blogspot.com/feeds/9101106426346690236/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqllane.blogspot.com/2010/07/do-not-use-spadduser-or-spdropuser-use.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/9101106426346690236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/9101106426346690236'/><link rel='alternate' type='text/html' href='http://sqllane.blogspot.com/2010/07/do-not-use-spadduser-or-spdropuser-use.html' title=''/><author><name>SQL Doc</name><uri>http://www.blogger.com/profile/02985644740410069774</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7DrxlftEX_wt3ZyXwr0Lpioa68YDaund9jokmdjscYQDRfS19-2n90mgEzaOOSwuI5YxZJzzoPEyD6kG39wThVJI_5tiBea26oS7VySR4h1rDfm1jOLVbl6yjtKQiA/s220/GEDC0296.JPG'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26042553.post-8014102505209097666</id><published>2010-07-07T11:32:00.002-05:00</published><updated>2010-07-07T11:38:39.222-05:00</updated><title type='text'></title><content type='html'>Just had my first article in the SQL Server World Published: &lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial, Helvetica, sans-serif; font-size: 13px; color: rgb(42, 42, 42); &quot;&gt;&lt;h1 class=&quot;MinMargin&quot; style=&quot;color: rgb(0, 51, 102); font-weight: bold; margin-top: 0em; margin-right: 0px; margin-bottom: 0.2em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; &quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: medium;&quot;&gt;&lt;a href=&quot;http://www.sqlservercentral.com/articles/SSIS/70475/&quot;&gt;SSIS Package to Script All SQL Server Jobs to Individual Files&lt;/a&gt; on SQLServerCentral.com&lt;/span&gt;&lt;/h1&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqllane.blogspot.com/feeds/8014102505209097666/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqllane.blogspot.com/2010/07/just-had-my-first-article-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/8014102505209097666'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26042553/posts/default/8014102505209097666'/><link rel='alternate' type='text/html' href='http://sqllane.blogspot.com/2010/07/just-had-my-first-article-in-sql-server.html' title=''/><author><name>SQL Doc</name><uri>http://www.blogger.com/profile/02985644740410069774</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='//blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR7DrxlftEX_wt3ZyXwr0Lpioa68YDaund9jokmdjscYQDRfS19-2n90mgEzaOOSwuI5YxZJzzoPEyD6kG39wThVJI_5tiBea26oS7VySR4h1rDfm1jOLVbl6yjtKQiA/s220/GEDC0296.JPG'/></author><thr:total>0</thr:total></entry></feed>