<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://www.developerdotstar.com/community" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>developer.* Blogs - Microsoft SQL Server - Comments</title>
 <link>http://www.developerdotstar.com/community/taxonomy/term/30</link>
 <description>Comments for &quot;Microsoft SQL Server&quot;</description>
 <language>en</language>
<item>
 <title>auto statistics = ON</title>
 <link>http://www.developerdotstar.com/community/node/503#comment-5286</link>
 <description>&lt;p&gt;Auto update/create statistics where ON and this fix worked for me.  Thanks for posting it.&lt;/p&gt;
</description>
 <pubDate>Thu, 15 Feb 2007 07:20:07 -0800</pubDate>
 <dc:creator>damdave1</dc:creator>
 <guid isPermaLink="false">comment 5286 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Also check out a related</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-3842</link>
 <description>&lt;blockquote&gt;&lt;p&gt;Also check out a related post, &quot;Hard Coded Limits Considered Harmful,&quot; on my blog.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Because there is an alternative to the hard coded values present in the functions? I don&#039;t see one...&lt;/p&gt;
</description>
 <pubDate>Wed, 24 Jan 2007 23:09:10 -0800</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 3842 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Source of row loss</title>
 <link>http://www.developerdotstar.com/community/node/436#comment-3806</link>
 <description>&lt;p&gt;If you open an ADO recordset on a view or select that includes the table, any deletion can result in a cascaded delete on joined tables, even if the view is &quot;not updateable&quot;. Try it in Enterprise Manager. MS access also does this with linked tables.&lt;/p&gt;
</description>
 <pubDate>Tue, 23 Jan 2007 12:23:48 -0800</pubDate>
 <dc:creator>aroggeband</dc:creator>
 <guid isPermaLink="false">comment 3806 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>thanks</title>
 <link>http://www.developerdotstar.com/community/node/436#comment-1550</link>
 <description>&lt;p&gt;just exactly what i&#039;m looking for.  very, very useful info.  not really easy to find it in the db docs&lt;/p&gt;
</description>
 <pubDate>Sat, 30 Sep 2006 08:26:21 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1550 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>SQL Jobs</title>
 <link>http://www.developerdotstar.com/community/node/305#comment-1458</link>
 <description>&lt;p&gt;Have any of you guys tried sqlSentry?  &lt;a href=&quot;http://www.sqlsentry.net&quot; rel=&quot;nofollow&quot;&gt;www.sqlsentry.net&lt;/a&gt; It sounds exactly like what you are talking about.  It gives a color coded caldendar view of all the jobs and DTS packages on the server for successes and failures.  It even sends emails on more conditions than I could even think up.  We tried it at my job and management even loves the look of it.  I hope they make the purchase.  This thing will save hours of troubleshooting.&lt;/p&gt;
</description>
 <pubDate>Tue, 29 Aug 2006 09:12:58 -0700</pubDate>
 <dc:creator>Steve</dc:creator>
 <guid isPermaLink="false">comment 1458 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Hard Coded Limits</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1399</link>
 <description>&lt;p&gt;To clarify Dan&#039;s comment, SQL Server ints can be up to 10 characters.&lt;/p&gt;
&lt;p&gt;Also check out a related post, &lt;a href=&quot;http://www.developerdotstar.com/community/node/551&quot;&gt;&quot;Hard Coded Limits Considered Harmful&lt;/a&gt;,&quot; on my blog.&lt;/p&gt;
&lt;p&gt;Edward&lt;/p&gt;
</description>
 <pubDate>Wed, 16 Aug 2006 21:13:19 -0700</pubDate>
 <dc:creator>Edward G Nilges</dc:creator>
 <guid isPermaLink="false">comment 1399 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Cool!</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1395</link>
 <description>&lt;p&gt;Nice function. Thanks.&lt;/p&gt;
</description>
 <pubDate>Wed, 16 Aug 2006 06:34:56 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1395 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Length not issue for us</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1345</link>
 <description>&lt;p&gt;Our member numbers are all 6 characters, so I don&#039;t need to worry about anything larger.  Infact our lowest numbers are still 3 digits so I could simply append 3 zeros to the leading edge.&lt;/p&gt;
&lt;p&gt;I never considered creating a function, this is just a quick fix from our new database system to feed the web SQL box until we get the new system completely up and running.&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Aug 2006 13:46:45 -0700</pubDate>
 <dc:creator>Mike</dc:creator>
 <guid isPermaLink="false">comment 1345 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Looks Like a Viable Solution</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1344</link>
 <description>&lt;p&gt;I can&#039;t say whether or not this is particularly inefficient, but it looks like it should  work fine as long as your company ID stays bellow 1,000,000. I believe a SQL Server int (&amp;gt; 0) can be up to 9 characters (?). Beyond that, though, I can&#039;t see anything wrong with it on the surface, especially if it were generalized into it&#039;s own function that took an int argument and returned a string. If you use this technique inline, it&#039;s less communicative than a function call would be.&lt;/p&gt;
&lt;p&gt;Assuming you removed the limit on the 6 characters and generalized it into a function, it would be interesting to compare the two solutions for performance. Thanks for contributing this alternate solution.&lt;/p&gt;
&lt;p&gt;Dan&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Aug 2006 13:43:11 -0700</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">comment 1344 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Anything wrong with my method</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1343</link>
 <description>&lt;p&gt;I needed an int converted into a varchar of 6 characters with leading zeros.  Add 6 zeros to the left of the converted int, then just take the 6 characters on the right.&lt;/p&gt;
&lt;p&gt;RIGHT(&#039;000000&#039; + CAST(dbo.Company.ID AS VARCHAR), 6) AS ID&lt;/p&gt;
&lt;p&gt;Is this terribly ineffecient?&lt;/p&gt;
</description>
 <pubDate>Fri, 04 Aug 2006 13:05:36 -0700</pubDate>
 <dc:creator>Mike</dc:creator>
 <guid isPermaLink="false">comment 1343 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>LPAD and RPAD</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1242</link>
 <description>&lt;p&gt;the RPAD and LPAD functions in SQL Server are very clever and appear to work perfectly. This is for non-commercial work, but I have given you credit in the code. Thanks!&lt;/p&gt;
&lt;p&gt;scott&lt;br /&gt;
Prairie Heart Institute&lt;/p&gt;
</description>
 <pubDate>Mon, 03 Jul 2006 11:58:22 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1242 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Yet another feature?</title>
 <link>http://www.developerdotstar.com/community/node/503#comment-1203</link>
 <description>&lt;p&gt;The &#039;Auto create statistics&#039; and &#039;Auto update statistics&#039; look very harmless seen from a distance. Naturally, why would you want to assist the RDBMS in doing its work? One important reason though is performance : If your database server is not or less used after business hours, it is better to schedule the creation and update of the statistics manually.&lt;br /&gt;
This way, performance is not hurt when these statistics are being created.&lt;/p&gt;
&lt;p&gt;For the record : I don&#039;t think you have to turn off the auto creation and update of the statistics, but internally the auto-creation feature will run against the same problem. This implies ofcourse that the optimizer will no longer create statistics for new columns for which no statistical data is available.&lt;/p&gt;
</description>
 <pubDate>Tue, 20 Jun 2006 04:31:15 -0700</pubDate>
 <dc:creator>Mario Van Damme</dc:creator>
 <guid isPermaLink="false">comment 1203 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>thanks</title>
 <link>http://www.developerdotstar.com/community/node/319#comment-1196</link>
 <description>&lt;p&gt;Excellent function.  Worked like a charm.&lt;/p&gt;
</description>
 <pubDate>Fri, 16 Jun 2006 10:58:17 -0700</pubDate>
 <dc:creator>Patrick</dc:creator>
 <guid isPermaLink="false">comment 1196 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>Distribution List</title>
 <link>http://www.developerdotstar.com/community/node/305#comment-1174</link>
 <description>&lt;p&gt;Hi. Hopefully I can help: what I meant was that we created a distribution list on the Exchange server itself. This is simply an email account that you create on your Exchange server, like for example &lt;a href=&quot;mailto:sql_errors@yourcompany.com&quot;&gt;sql_errors@yourcompany.com&lt;/a&gt;. Then configure this address in Exchange to route any messages to however many email addresses you choose.&lt;/p&gt;
&lt;p&gt;Managing this centrally in Exchange is preferrable to trying to keep up with all the different jobs and configuration points that have these kinds of notification email addresses. Even if you only have one person who is going to receive the notifications, I would still suggest creating an &quot;alias&quot; email address so that when employees come and go all you have to do is update the Exchange settings.&lt;/p&gt;
&lt;p&gt;Hope that helps,&lt;br /&gt;
Dan&lt;/p&gt;
</description>
 <pubDate>Wed, 07 Jun 2006 10:15:07 -0700</pubDate>
 <dc:creator>Daniel Read</dc:creator>
 <guid isPermaLink="false">comment 1174 at http://www.developerdotstar.com/community</guid>
</item>
<item>
 <title>SQL Server Job Success, Failure, and Everything In-Between</title>
 <link>http://www.developerdotstar.com/community/node/305#comment-1173</link>
 <description>&lt;p&gt;Do you mind a basic question from a DBA new to Sql Server? I tried to get a job schedule&#039;s notifications set to an Outlook distribution list but wasn&#039;t able to get it to work. I noticed you said &quot;I try to increase redundancy by using distribution lists for the emails rather than a single email address&quot;. Can you tell me what the secret is for creating a distribution list that the job scheduler will recognize  as an operator?&lt;/p&gt;
</description>
 <pubDate>Wed, 07 Jun 2006 09:05:53 -0700</pubDate>
 <dc:creator>Guest</dc:creator>
 <guid isPermaLink="false">comment 1173 at http://www.developerdotstar.com/community</guid>
</item>
</channel>
</rss>
