<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>some thoughts... - MS SQL Server</title>
    <link>http://www.fits-consulting.de/blog/</link>
    <description>IT makes the world go round - and sometimes stops it...</description>
    <language>en-us</language>
    <copyright>Markus Fischer</copyright>
    <lastBuildDate>Thu, 03 Jan 2008 14:00:20 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 1.9.6264.0</generator>
    <managingEditor>blog@fits-consulting.de</managingEditor>
    <webMaster>blog@fits-consulting.de</webMaster>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=e2cc1a2e-ccfe-4874-9c31-00868880ad9b</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,e2cc1a2e-ccfe-4874-9c31-00868880ad9b.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,e2cc1a2e-ccfe-4874-9c31-00868880ad9b.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e2cc1a2e-ccfe-4874-9c31-00868880ad9b</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p align="left">
Sorry, German only...
</p>
        <p align="center">
          <a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328">
            <span style="COLOR: windowtext; TEXT-DECORATION: none">
              <img id="Grafik 6" height="196" alt="launch2008_001.jpg" src="content/binary/launch2008_001.jpg" width="521" border="0" />
            </span>
          </a>
        </p>
        <p>
Die ideale Gelegenheit, sich mit den neuesten Microsoft-Technologien vertraut zu machen,
bieten die Launch-Konferenz 2008 und die Deutsche SharePoint Konferenz. Beide Konferenzen
finden vom 19. bis 21. Februar 2008 gleichzeitig in Frankfurt am Main statt und bieten
Ihnen die Möglichkeit, den produktiven Einsatz innovativer Techniken kennen zu lernen.
Ein Highlight nicht nur für die Branche, sondern auch für Sie.
</p>
        <p>
Verpassen Sie nicht den Launch der <b>neuesten Microsoft-Technologien:</b></p>
        <ul>
          <li>
            <b>Windows Server<sup>®</sup> 2008,</b>
          </li>
          <li>
            <b>SQL Server™ 2008 und</b>
          </li>
          <li>
            <b>Visual Studio<sup>®</sup> 2008</b>
          </li>
        </ul>
und erfahren Sie, wie Sie diese Technologien konkret nutzen können, um die IT-Umgebung
in Ihrem Unternehmen sicherer und effizienter zu gestalten. Es erwarten Sie über 80
hochkarätige Programmpunkte, Gespräche mit kompetenten Experten und die Vorstellung
von Praxislösungen durch unsere Partner. Bringen Sie Ihr Knowhow über innovative und
effiziente Technologien auf den neuesten Stand. 
<p></p><p>
Gleichzeitig findet die <b>Deutsche SharePoint Konferenz 2008</b> statt. Sie knüpft
an die Erfolge der Vorjahre an und legt nun starken Fokus auf die praktische Nutzung
von SharePoint. Experten, Kunden und Partner zeigen Ihnen in mehr als 60 Fachvorträgen,
wie SharePoint erfolgreich eingesetzt wird − in unterschiedlichen Branchen, Fachbereichen
und technologischen Umgebungen.
</p><p>
Ready for Take-off? Nehmen Sie an der wichtigsten Microsoft-Großveranstaltung teil!
Melden Sie sich am besten <a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328">gleich
hier</a> für die Launch-Konferenz 2008 und die Deutsche SharePoint Konferenz 2008
an.
</p><p align="center"><a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328"><span style="FONT-SIZE: 10pt; COLOR: windowtext; TEXT-DECORATION: none"><img id="Grafik 7" height="68" alt="launch2008_002.jpg" src="content/binary/launch2008_002.jpg" width="315" border="0" /></span></a></p><img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=e2cc1a2e-ccfe-4874-9c31-00868880ad9b" /><br /><hr /><p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p></body>
      <title>ready.for.take.of - German launch event SQL 2008</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,e2cc1a2e-ccfe-4874-9c31-00868880ad9b.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,e2cc1a2e-ccfe-4874-9c31-00868880ad9b.aspx</link>
      <pubDate>Thu, 03 Jan 2008 14:00:20 GMT</pubDate>
      <description>&lt;p align=left&gt;
Sorry, German only...
&lt;/p&gt;
&lt;p align=center&gt;
&lt;a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328"&gt;&lt;span style="COLOR: windowtext; TEXT-DECORATION: none"&gt;&lt;img id="Grafik 6" height=196 alt=launch2008_001.jpg src="content/binary/launch2008_001.jpg" width=521 border=0&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Die ideale Gelegenheit, sich mit den neuesten Microsoft-Technologien vertraut zu machen,
bieten die Launch-Konferenz 2008 und die Deutsche SharePoint Konferenz. Beide Konferenzen
finden vom 19. bis 21. Februar 2008 gleichzeitig in Frankfurt am Main statt und bieten
Ihnen die Möglichkeit, den produktiven Einsatz innovativer Techniken kennen zu lernen.
Ein Highlight nicht nur für die Branche, sondern auch für Sie.
&lt;/p&gt;
&lt;p&gt;
Verpassen Sie nicht den Launch der &lt;b&gt;neuesten Microsoft-Technologien:&lt;/b&gt; 
&lt;ul&gt;
&lt;li&gt;
&lt;b&gt;Windows Server&lt;sup&gt;®&lt;/sup&gt; 2008,&lt;/b&gt; 
&lt;li&gt;
&lt;b&gt;SQL Server™ 2008 und&lt;/b&gt; 
&lt;li&gt;
&lt;b&gt;Visual Studio&lt;sup&gt;®&lt;/sup&gt; 2008&lt;/b&gt;
&lt;/li&gt;
&lt;/ul&gt;
und erfahren Sie, wie Sie diese Technologien konkret nutzen können, um die IT-Umgebung
in Ihrem Unternehmen sicherer und effizienter zu gestalten. Es erwarten Sie über 80
hochkarätige Programmpunkte, Gespräche mit kompetenten Experten und die Vorstellung
von Praxislösungen durch unsere Partner. Bringen Sie Ihr Knowhow über innovative und
effiziente Technologien auf den neuesten Stand. 
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Gleichzeitig findet die &lt;b&gt;Deutsche SharePoint Konferenz 2008&lt;/b&gt; statt. Sie knüpft
an die Erfolge der Vorjahre an und legt nun starken Fokus auf die praktische Nutzung
von SharePoint. Experten, Kunden und Partner zeigen Ihnen in mehr als 60 Fachvorträgen,
wie SharePoint erfolgreich eingesetzt wird − in unterschiedlichen Branchen, Fachbereichen
und technologischen Umgebungen.
&lt;/p&gt;
&lt;p&gt;
Ready for Take-off? Nehmen Sie an der wichtigsten Microsoft-Großveranstaltung teil!
Melden Sie sich am besten &lt;a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328"&gt;gleich
hier&lt;/a&gt; für die Launch-Konferenz 2008 und die Deutsche SharePoint Konferenz 2008
an.
&lt;/p&gt;
&lt;p align=center&gt;
&lt;a href="http://www.microsoft.com/CRMRedirector/default.aspx?TC=100037328"&gt;&lt;span style="FONT-SIZE: 10pt; COLOR: windowtext; TEXT-DECORATION: none"&gt;&lt;img id="Grafik 7" height=68 alt=launch2008_002.jpg src="content/binary/launch2008_002.jpg" width=315 border=0&gt;&lt;/span&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=e2cc1a2e-ccfe-4874-9c31-00868880ad9b" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,e2cc1a2e-ccfe-4874-9c31-00868880ad9b.aspx</comments>
      <category>Events;MS SQL Server</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=a42ce78c-689d-4e2e-9a74-b3c9369d626f</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,a42ce78c-689d-4e2e-9a74-b3c9369d626f.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,a42ce78c-689d-4e2e-9a74-b3c9369d626f.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a42ce78c-689d-4e2e-9a74-b3c9369d626f</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Why should your Company Exhibit at PASS Conference 2008? 
</p>
        <ul>
          <li>
Link to hundreds of highly qualified prospects that will help you expand your customer
base 
</li>
          <li>
Engage with SQL Server and Business Intelligence experts to promote your products
and services 
</li>
          <li>
Increase exposure and awareness for your company 
</li>
          <li>
Achieve sales growth and generate valuable sales leads 
</li>
          <li>
Cultivate existing relationships</li>
        </ul>
        <p>
For more information on how your company can benefit from participation as an exhibitor
and/or sponsor, please contact <a href="mailto:exhibitors08@european-pass-conference.com">exhibitors08@european-pass-conference.com</a>.
</p>
        <p>
          <a title="Sponsoring &amp; Exhibition Prospectus" href="http://www.european-pass-conference.com/pdf/ExhibitionFlyer.pdf">Sponsoring
&amp; Exhibition Prospectus</a>
        </p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=a42ce78c-689d-4e2e-9a74-b3c9369d626f" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>European PASS Conference 2008 - Become an exhibitor or sponsor</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,a42ce78c-689d-4e2e-9a74-b3c9369d626f.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,a42ce78c-689d-4e2e-9a74-b3c9369d626f.aspx</link>
      <pubDate>Wed, 02 Jan 2008 03:39:01 GMT</pubDate>
      <description>&lt;p&gt;
Why should your Company Exhibit at PASS Conference 2008? 
&lt;ul&gt;
&lt;li&gt;
Link to hundreds of highly qualified prospects that will help you expand your customer
base 
&lt;li&gt;
Engage with SQL Server and Business Intelligence experts to promote your products
and services 
&lt;li&gt;
Increase exposure and awareness for your company 
&lt;li&gt;
Achieve sales growth and generate valuable sales leads 
&lt;li&gt;
Cultivate existing relationships&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
For more information on how your company can benefit from participation as an exhibitor
and/or sponsor, please contact &lt;a href="mailto:exhibitors08@european-pass-conference.com"&gt;exhibitors08@european-pass-conference.com&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
&lt;a title="Sponsoring &amp;amp; Exhibition Prospectus" href="http://www.european-pass-conference.com/pdf/ExhibitionFlyer.pdf"&gt;Sponsoring
&amp;amp; Exhibition Prospectus&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=a42ce78c-689d-4e2e-9a74-b3c9369d626f" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,a42ce78c-689d-4e2e-9a74-b3c9369d626f.aspx</comments>
      <category>Events;MS SQL Server;PASS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=3d9e7de0-b27d-4584-a679-f56d21426d18</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,3d9e7de0-b27d-4584-a679-f56d21426d18.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,3d9e7de0-b27d-4584-a679-f56d21426d18.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3d9e7de0-b27d-4584-a679-f56d21426d18</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
        </p>
        <p>
The 2008 European PASS Conference Call for Speakers is now open! 
</p>
        <p>
PASS would like to encourage you to submit an abstract today! 
</p>
        <p>
Link to abstract submission form : <a href="http://survey.constantcontact.com/survey/a07e27lqm18fa6vm3ti/start">http://survey.constantcontact.com/survey/a07e27lqm18fa6vm3ti/start</a></p>
        <p>
PASS is an association for users, run by users. It is important that our members be
involved and help build the community they are a part of. 
</p>
        <p>
As a speaker at the 2008 European PASS Conference Summit (<a href="http://www.european-pass-conference.com">http://www.european-pass-conference.com</a>)
in Neuss - Germany (Near Dusseldorf), April 15 and 16, 2008 , you will receive:
</p>
        <ul>
          <li>
Complimentary registration to the 2008 European PASS Conference 
</li>
          <li>
Industry recognition 
</li>
          <li>
Networking opportunities with hundreds of attendees</li>
        </ul>
        <p>
        </p>
        <p>
Microsoft employees are encouraged to submit presentations using the online submission
form, however, please note that these submissions will be reviewed and abstract status
will be determined by Microsoft. 
</p>
        <p>
The <strong><font color="#ff0000">deadline</font></strong> to submit a presentation
is <strong><font color="#ff0000">January 31, 2008</font></strong>. If you have any
questions, please e-mail <a href="mailto:speakerbureau08@european-pass-conference.com">speakerbureau08@european-pass-conference.com</a>. 
</p>
        <p>
Thank you and we look forward to your participation!
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3d9e7de0-b27d-4584-a679-f56d21426d18" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>European PASS Conference 2008 - Call for Speakers</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,3d9e7de0-b27d-4584-a679-f56d21426d18.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,3d9e7de0-b27d-4584-a679-f56d21426d18.aspx</link>
      <pubDate>Wed, 02 Jan 2008 02:19:17 GMT</pubDate>
      <description>&lt;p&gt;
&lt;p&gt;
The 2008 European PASS Conference Call for Speakers is now open! 
&lt;/p&gt;
&lt;p&gt;
PASS would like to encourage you to submit an abstract today! 
&lt;/p&gt;
&lt;p&gt;
Link to abstract submission form : &lt;a href="http://survey.constantcontact.com/survey/a07e27lqm18fa6vm3ti/start"&gt;http://survey.constantcontact.com/survey/a07e27lqm18fa6vm3ti/start&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
PASS is an association for users, run by users. It is important that our members be
involved and help build the community they are a part of. 
&lt;/p&gt;
&lt;p&gt;
As a speaker at the 2008 European PASS Conference Summit (&lt;a href="http://www.european-pass-conference.com"&gt;http://www.european-pass-conference.com&lt;/a&gt;)
in Neuss - Germany (Near Dusseldorf), April 15 and 16, 2008 , you will receive:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Complimentary registration to the 2008 European PASS Conference 
&lt;li&gt;
Industry recognition 
&lt;li&gt;
Networking opportunities with hundreds of attendees&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Microsoft employees are encouraged to submit presentations using the online submission
form, however, please note that these submissions will be reviewed and abstract status
will be determined by Microsoft. 
&lt;/p&gt;
&lt;p&gt;
The &lt;strong&gt;&lt;font color=#ff0000&gt;deadline&lt;/font&gt;&lt;/strong&gt; to submit a presentation
is &lt;strong&gt;&lt;font color=#ff0000&gt;January 31, 2008&lt;/font&gt;&lt;/strong&gt;. If you have any questions,
please e-mail &lt;a href="mailto:speakerbureau08@european-pass-conference.com"&gt;speakerbureau08@european-pass-conference.com&lt;/a&gt;. 
&lt;/p&gt;
&lt;p&gt;
Thank you and we look forward to your participation!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3d9e7de0-b27d-4584-a679-f56d21426d18" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,3d9e7de0-b27d-4584-a679-f56d21426d18.aspx</comments>
      <category>Events;MS SQL Server;PASS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=4b31f2cb-e4f7-4a6f-9fe4-c4c551420031</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,4b31f2cb-e4f7-4a6f-9fe4-c4c551420031.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,4b31f2cb-e4f7-4a6f-9fe4-c4c551420031.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=4b31f2cb-e4f7-4a6f-9fe4-c4c551420031</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Rodney Landrum demonstrates an ingenious way to monitor blocked SQL Server processes
across all your servers, using nothing but SSRS in his posting <a title="&quot;The Reporting Services 3-Trick Pony&quot;" href="http://www.sqlservercentral.com/articles/Reporting+Services/61339/">"The
Reporting Services 3-Trick Pony"</a></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=4b31f2cb-e4f7-4a6f-9fe4-c4c551420031" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Rodney Landrum: The Reporting Services 3-Trick Pony</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,4b31f2cb-e4f7-4a6f-9fe4-c4c551420031.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,4b31f2cb-e4f7-4a6f-9fe4-c4c551420031.aspx</link>
      <pubDate>Thu, 25 Oct 2007 15:44:27 GMT</pubDate>
      <description>&lt;p&gt;
Rodney Landrum demonstrates an ingenious way to monitor blocked SQL Server processes
across all your servers, using nothing but SSRS in his posting &lt;a title="&amp;quot;The Reporting Services 3-Trick Pony&amp;quot;" href="http://www.sqlservercentral.com/articles/Reporting+Services/61339/"&gt;"The
Reporting Services 3-Trick Pony"&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=4b31f2cb-e4f7-4a6f-9fe4-c4c551420031" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,4b31f2cb-e4f7-4a6f-9fe4-c4c551420031.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=0a30661e-928b-42a4-bb2d-0fb9e70d4e41</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,0a30661e-928b-42a4-bb2d-0fb9e70d4e41.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,0a30661e-928b-42a4-bb2d-0fb9e70d4e41.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0a30661e-928b-42a4-bb2d-0fb9e70d4e41</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a title="Darren Gosbell" href="http://geekswithblogs.net/darrengosbell" target="_blank">Darren
Gosbell</a> has published his <a title="presentation and a sample project" href="http://geekswithblogs.net/darrengosbell/archive/2007/10/21/SSIS-Best-Practices---SQL-Down-Under-Code-Camp-2007.aspx" target="_blank">presentation
and a sample project</a> with demos he presented at the <a href="http://www.sqldownunder.com/CodeCamp/tabid/53/Default.aspx">SQL
Down Under Code Camp</a>.
</p>
        <p>
This really is worth downloading and reading!
</p>
        <p>
And Darren had a very well-fitting picture about the feelings while building the first
SSIS package while coming from DTS for example:
</p>
        <p>
          <a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/DarrenGosbellSSISBestPractices_E9FB/SSIS_unnatural%5B3%5D.png" atomicselection="true">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="325" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/DarrenGosbellSSISBestPractices_E9FB/SSIS_unnatural_thumb%5B3%5D.png" width="500" border="0" />
          </a>
        </p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0a30661e-928b-42a4-bb2d-0fb9e70d4e41" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Darren Gosbell: SSIS Best Practices</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,0a30661e-928b-42a4-bb2d-0fb9e70d4e41.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,0a30661e-928b-42a4-bb2d-0fb9e70d4e41.aspx</link>
      <pubDate>Thu, 25 Oct 2007 14:40:08 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a title="Darren Gosbell" href="http://geekswithblogs.net/darrengosbell" target="_blank"&gt;Darren
Gosbell&lt;/a&gt; has published his &lt;a title="presentation and a sample project" href="http://geekswithblogs.net/darrengosbell/archive/2007/10/21/SSIS-Best-Practices---SQL-Down-Under-Code-Camp-2007.aspx" target="_blank"&gt;presentation
and a sample project&lt;/a&gt; with demos he presented at the &lt;a href="http://www.sqldownunder.com/CodeCamp/tabid/53/Default.aspx"&gt;SQL
Down Under Code Camp&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
This really is worth downloading and reading!
&lt;/p&gt;
&lt;p&gt;
And Darren had a very well-fitting picture about the feelings while building the first
SSIS package while coming from DTS for example:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/DarrenGosbellSSISBestPractices_E9FB/SSIS_unnatural%5B3%5D.png" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="325" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/DarrenGosbellSSISBestPractices_E9FB/SSIS_unnatural_thumb%5B3%5D.png" width="500" border="0"&gt;&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0a30661e-928b-42a4-bb2d-0fb9e70d4e41" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,0a30661e-928b-42a4-bb2d-0fb9e70d4e41.aspx</comments>
      <category>MS SQL Server;MS SQL Server/DTS - SSIS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=0e3395b4-aba9-40c0-8829-e28e2ce31fcb</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,0e3395b4-aba9-40c0-8829-e28e2ce31fcb.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,0e3395b4-aba9-40c0-8829-e28e2ce31fcb.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0e3395b4-aba9-40c0-8829-e28e2ce31fcb</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I recently had to download some flatfiles from different FTP Resources to load these
into a SQL database. 
</p>
        <p>
Being a fan of package configurations and minimized maintenance I decided to build
a package which would loop through a recordset containing the necessary informations
like FTP server, port, user and password instead of creating different packages or
steps for each FTP server.
</p>
        <p>
excursion:<br />
I know that storing passwords in a database table is not really best practice for
security, but the guys being responsible for the SQL Server are also responsible for
the FTP server... :-)
</p>
        <p>
So, extracting the informations with a SQL Task, including a loop and using expressions
to set the correct properties would not be a great challenge I thought. Up to the
moment I tried to select the property for the password from the Property Expressions
Editor in BIDS:
</p>
        <p>
          <a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/usingFTPinSSIS_12C7F/BIDS_PropertyExpressionsEditor_FTP%5B24%5D.jpg" atomicselection="true">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="266" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/usingFTPinSSIS_12C7F/BIDS_PropertyExpressionsEditor_FTP_thumb%5B24%5D.jpg" width="340" border="0" />
          </a>
        </p>
        <p>
There is no property which could be used to set the password via expression - this
must be a security feature to enable FTP tasks to be "secure by default"...
</p>
        <p>
So what do to do?<br />
Searching the properties for the password prop I recognized that there is a property
for the connection - though I should use this for the loop approach instead of building
several tasks? But what would be the correct usage of the connection?
</p>
        <p>
Once again like every day in the life of an IT guy I used the "tool which must not
be named" [@Microsoft: why don't you find search results even in your own resources???]
and et voilà I got the perfect hint in the <a title="SSIS forum" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=122756&amp;SiteID=1" target="_blank">SSIS
forum</a> of MSDN.
</p>
        <p>
The correct syntax for the connection would be Server IP:Port.loginAccount.loginPWD,
therefor you could use an expression like this:
</p>
        <p align="center">
@[user::FtpServer] + ":" + @[user::FtpServerPort] +"."+ @[user::FtpAcct] +"."+ @[user::FtpPwd]
</p>
        <p>
to build this connection string. And if you use another variable to build the string
- do not forget to set the "evaluate as expression" to TRUE...
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0e3395b4-aba9-40c0-8829-e28e2ce31fcb" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>using FTP in SSIS</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,0e3395b4-aba9-40c0-8829-e28e2ce31fcb.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,0e3395b4-aba9-40c0-8829-e28e2ce31fcb.aspx</link>
      <pubDate>Thu, 25 Oct 2007 13:37:20 GMT</pubDate>
      <description>&lt;p&gt;
I recently had to download some flatfiles from different FTP Resources to load these
into a SQL database. 
&lt;/p&gt;
&lt;p&gt;
Being a fan of package configurations and minimized maintenance I decided to build
a package which would loop through a recordset containing the necessary informations
like FTP server, port, user and password instead of creating different packages or
steps for each FTP server.
&lt;/p&gt;
&lt;p&gt;
excursion:&lt;br&gt;
I know that storing passwords in a database table is not really best practice for
security, but the guys being responsible for the SQL Server are also responsible for
the FTP server... :-)
&lt;/p&gt;
&lt;p&gt;
So, extracting the informations with a SQL Task, including a loop and using expressions
to set the correct properties would not be a great challenge I thought. Up to the
moment I tried to select the property for the password from the Property Expressions
Editor in BIDS:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/usingFTPinSSIS_12C7F/BIDS_PropertyExpressionsEditor_FTP%5B24%5D.jpg" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="266" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/usingFTPinSSIS_12C7F/BIDS_PropertyExpressionsEditor_FTP_thumb%5B24%5D.jpg" width="340" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
There is no property which could be used to set the password via expression - this
must be a security feature to enable FTP tasks to be "secure by default"...
&lt;/p&gt;
&lt;p&gt;
So what do to do?&lt;br&gt;
Searching the properties for the password prop I recognized that there is a property
for the connection - though I should use this for the loop approach instead of building
several tasks? But what would be the correct usage of the connection?
&lt;/p&gt;
&lt;p&gt;
Once again like every day in the life of an IT guy I used the "tool which must not
be named" [@Microsoft: why don't you find search results even in your own resources???]
and et voilà I got the perfect hint in the &lt;a title="SSIS forum" href="http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=122756&amp;amp;SiteID=1" target="_blank"&gt;SSIS
forum&lt;/a&gt; of MSDN.
&lt;/p&gt;
&lt;p&gt;
The correct syntax for the connection would be Server IP:Port.loginAccount.loginPWD,
therefor you could use an expression like this:
&lt;/p&gt;
&lt;p align="center"&gt;
@[user::FtpServer] + ":" + @[user::FtpServerPort] +"."+ @[user::FtpAcct] +"."+ @[user::FtpPwd]
&lt;/p&gt;
&lt;p&gt;
to build this connection string. And if you use another variable to build the string
- do not forget to set the "evaluate as expression" to TRUE...
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0e3395b4-aba9-40c0-8829-e28e2ce31fcb" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,0e3395b4-aba9-40c0-8829-e28e2ce31fcb.aspx</comments>
      <category>MS SQL Server;MS SQL Server/DTS - SSIS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
A long time ago - February and March 2006 - Eugene Asahara has posted two very intersting
articles about 
</p>
        <ul>
          <li>
            <a title="KPI Cause and Effect Visio Graph" href="http://blogs.msdn.com/eugenea/archive/2006/03/12/549913.aspx" target="_blank">KPI
Cause and Effect Visio Graph</a>
          </li>
          <li>
            <a title="KPI Cause and Effect Graph - A View from the UDM into Relationships Between Information Workers" href="http://blogs.msdn.com/eugenea/archive/2006/02/21/536011.aspx" target="_blank">KPI
Cause and Effect Graph - A View from the UDM into Relationships Between Information
Workers</a>
          </li>
        </ul>
        <p>
The "KPI Cause and Effect Visio Graph" is a very useful visualization tool to diskuss
KPI´s with the prospective users whereas the "KPIRelationships sample application"
is a very smart tool to control if all perspectives, KPI´s, etc are developed and
have the right definitions.
</p>
        <p>
This two articles are a really must-read and Eugene also provides the tools for
download - so check it out!
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>some interesting tools for KPI support</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf.aspx</link>
      <pubDate>Mon, 24 Sep 2007 19:10:02 GMT</pubDate>
      <description>&lt;p&gt;
A long time ago - February and March 2006 - Eugene Asahara has posted two very intersting
articles about 
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a title="KPI Cause and Effect Visio Graph" href="http://blogs.msdn.com/eugenea/archive/2006/03/12/549913.aspx" target="_blank"&gt;KPI
Cause and Effect Visio Graph&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;a title="KPI Cause and Effect Graph - A View from the UDM into Relationships Between Information Workers" href="http://blogs.msdn.com/eugenea/archive/2006/02/21/536011.aspx" target="_blank"&gt;KPI
Cause and Effect Graph - A View from the UDM into Relationships Between Information
Workers&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
The "KPI Cause and Effect Visio Graph" is a very useful visualization tool to diskuss
KPI´s with the prospective users whereas the "KPIRelationships sample application"
is a very smart tool to control if all perspectives, KPI´s, etc are developed and
have the right definitions.
&lt;/p&gt;
&lt;p&gt;
This two articles are a&amp;nbsp;really must-read and Eugene also provides the tools for
download - so check it out!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,6d1ff3fd-51b2-40a2-8600-bfaeffb1fbbf.aspx</comments>
      <category>BI;BI/Metadata;Development/.Net;MS SQL Server;MS SQL Server/AS - SSAS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=89aec356-0a0b-4083-a2a3-8c847e1e2159</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,89aec356-0a0b-4083-a2a3-8c847e1e2159.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,89aec356-0a0b-4083-a2a3-8c847e1e2159.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=89aec356-0a0b-4083-a2a3-8c847e1e2159</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you would like to split values from a column which are divideable beacause they
are using the same delimiter like an ',' for example you could use the function below.
The function also brings up the postion, which sometimes could be very usefull, too.
</p>
        <p>
To call the function just use,
</p>
        <pre class="csharpcode">
          <span class="kwrd">select</span> * <span class="kwrd">from</span> dbo.fn_split(<span class="str">'Value
1,Value 2'</span>,<span class="str">','</span>)</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
the first parameter is the column to split, the second contains the delimiter. You
can not use different delimiters at one time at the moment, if you want to suggest
some enhancements, please use the comments.... :-)<br />
The statement will bring up the following result set:
</p>
        <p>
          <a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/littleSQLhelperssplitacolumn_11473/sql_result%5B2%5D.jpg" atomicselection="true">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="105" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/littleSQLhelperssplitacolumn_11473/sql_result_thumb.jpg" width="200" border="0" />
          </a>
        </p>
        <pre class="csharpcode">
          <span class="kwrd">CREATE</span>
          <span class="kwrd">FUNCTION</span> [dbo].[fn_Split](@text
nvarchar(<span class="kwrd">max</span>), @delimiter <span class="kwrd">char</span>(1)
= <span class="str">' '</span>) <span class="kwrd">RETURNS</span> @Strings <span class="kwrd">TABLE</span> ( <span class="kwrd">position</span><span class="kwrd">int</span><span class="kwrd">IDENTITY</span><span class="kwrd">PRIMARY</span><span class="kwrd">KEY</span>, <span class="kwrd">value</span> nvarchar(<span class="kwrd">max</span>)
) <span class="kwrd">AS</span><span class="kwrd">BEGIN</span><span class="kwrd">DECLARE</span> @<span class="kwrd">index</span><span class="kwrd">int</span><span class="kwrd">SET</span> @<span class="kwrd">index</span> =
-1 <span class="kwrd">WHILE</span> (LEN(@text) &gt; 0) <span class="kwrd">BEGIN</span><span class="kwrd">SET</span> @<span class="kwrd">index</span> =
CHARINDEX(@delimiter , @text) <span class="kwrd">IF</span> (@<span class="kwrd">index</span> =
0) <span class="kwrd">AND</span> (LEN(@text) &gt; 0) <span class="kwrd">BEGIN</span> INSERT <span class="kwrd">INTO</span> @Strings <span class="kwrd">VALUES</span> (@text) <span class="kwrd">BREAK</span><span class="kwrd">END</span><span class="kwrd">IF</span> (@<span class="kwrd">index</span> &gt;
1) <span class="kwrd">BEGIN</span> INSERT <span class="kwrd">INTO</span> @Strings <span class="kwrd">VALUES</span> (<span class="kwrd">LEFT</span>(@text,
@<span class="kwrd">index</span> - 1)) <span class="kwrd">SET</span> @text = <span class="kwrd">RIGHT</span>(@text,
(LEN(@text) - @<span class="kwrd">index</span>)) <span class="kwrd">END</span><span class="kwrd">ELSE</span><span class="kwrd">SET</span> @text
= <span class="kwrd">RIGHT</span>(@text, (LEN(@text) - @<span class="kwrd">index</span>)) <span class="kwrd">END</span><span class="kwrd">RETURN</span> END</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=89aec356-0a0b-4083-a2a3-8c847e1e2159" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: split a column</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,89aec356-0a0b-4083-a2a3-8c847e1e2159.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,89aec356-0a0b-4083-a2a3-8c847e1e2159.aspx</link>
      <pubDate>Mon, 24 Sep 2007 18:38:48 GMT</pubDate>
      <description>&lt;p&gt;
If you would like to split values from a column which are divideable beacause they
are using the same delimiter like an ',' for example you could use the function below.
The function also brings up the postion, which sometimes could be very usefull, too.
&lt;/p&gt;
&lt;p&gt;
To call the function just use,
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;select&lt;/span&gt; * &lt;span class="kwrd"&gt;from&lt;/span&gt; dbo.fn_split(&lt;span class="str"&gt;'Value
1,Value 2'&lt;/span&gt;,&lt;span class="str"&gt;','&lt;/span&gt;)&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
the first parameter is the column to split, the second contains the delimiter. You
can not use different delimiters at one time at the moment, if you want to suggest
some enhancements, please use the comments.... :-)&lt;br&gt;
The&amp;nbsp;statement will bring up the following result set:
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/littleSQLhelperssplitacolumn_11473/sql_result%5B2%5D.jpg" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="105" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/littleSQLhelperssplitacolumn_11473/sql_result_thumb.jpg" width="200" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;FUNCTION&lt;/span&gt; [dbo].[fn_Split](@text
nvarchar(&lt;span class="kwrd"&gt;max&lt;/span&gt;), @delimiter &lt;span class="kwrd"&gt;char&lt;/span&gt;(1)
= &lt;span class="str"&gt;' '&lt;/span&gt;) &lt;span class="kwrd"&gt;RETURNS&lt;/span&gt; @Strings &lt;span class="kwrd"&gt;TABLE&lt;/span&gt; ( &lt;span class="kwrd"&gt;position&lt;/span&gt; &lt;span class="kwrd"&gt;int&lt;/span&gt; &lt;span class="kwrd"&gt;IDENTITY&lt;/span&gt; &lt;span class="kwrd"&gt;PRIMARY&lt;/span&gt; &lt;span class="kwrd"&gt;KEY&lt;/span&gt;, &lt;span class="kwrd"&gt;value&lt;/span&gt; nvarchar(&lt;span class="kwrd"&gt;max&lt;/span&gt;)
) &lt;span class="kwrd"&gt;AS&lt;/span&gt; &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @&lt;span class="kwrd"&gt;index&lt;/span&gt; &lt;span class="kwrd"&gt;int&lt;/span&gt; &lt;span class="kwrd"&gt;SET&lt;/span&gt; @&lt;span class="kwrd"&gt;index&lt;/span&gt; =
-1 &lt;span class="kwrd"&gt;WHILE&lt;/span&gt; (LEN(@text) &amp;gt; 0) &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;SET&lt;/span&gt; @&lt;span class="kwrd"&gt;index&lt;/span&gt; =
CHARINDEX(@delimiter , @text) &lt;span class="kwrd"&gt;IF&lt;/span&gt; (@&lt;span class="kwrd"&gt;index&lt;/span&gt; =
0) &lt;span class="kwrd"&gt;AND&lt;/span&gt; (LEN(@text) &amp;gt; 0) &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; INSERT &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @Strings &lt;span class="kwrd"&gt;VALUES&lt;/span&gt; (@text) &lt;span class="kwrd"&gt;BREAK&lt;/span&gt; &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;IF&lt;/span&gt; (@&lt;span class="kwrd"&gt;index&lt;/span&gt; &amp;gt;
1) &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; INSERT &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @Strings &lt;span class="kwrd"&gt;VALUES&lt;/span&gt; (&lt;span class="kwrd"&gt;LEFT&lt;/span&gt;(@text,
@&lt;span class="kwrd"&gt;index&lt;/span&gt; - 1)) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @text = &lt;span class="kwrd"&gt;RIGHT&lt;/span&gt;(@text,
(LEN(@text) - @&lt;span class="kwrd"&gt;index&lt;/span&gt;)) &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;ELSE&lt;/span&gt; &lt;span class="kwrd"&gt;SET&lt;/span&gt; @text
= &lt;span class="kwrd"&gt;RIGHT&lt;/span&gt;(@text, (LEN(@text) - @&lt;span class="kwrd"&gt;index&lt;/span&gt;)) &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;RETURN&lt;/span&gt; END&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=89aec356-0a0b-4083-a2a3-8c847e1e2159" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,89aec356-0a0b-4083-a2a3-8c847e1e2159.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=ee700f2f-1af6-4526-ad65-d84524eb5526</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,ee700f2f-1af6-4526-ad65-d84524eb5526.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,ee700f2f-1af6-4526-ad65-d84524eb5526.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ee700f2f-1af6-4526-ad65-d84524eb5526</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Are you also always looking in the BOL if you have to deal with datetime?
</p>
        <p>
This stored procedure could bring some light in the dark...
</p>
        <p>
You will have to call it with the following statement:
</p>
        <pre class="csharpcode">
          <span class="kwrd">Select</span> dbo.fn_formatdate(getdate(),<span class="str">'formated
date: \TT\MM\YYYY \hh:\mi:\ss \ms Week: \wk Weekday: \DW Quarter: \qq'</span>),getdate()</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
The formatstring can contain severall formatstrings and will bring up all datetimeparts
you want, including some additional textparts...
</p>
        <p>
 
</p>
        <pre class="csharpcode">
          <span class="kwrd">CREATE</span>
          <span class="kwrd">FUNCTION</span> [dbo].[fn_formatdate](@dat
datetime,@format <span class="kwrd">varchar</span>(255)) <span class="kwrd">RETURNS</span><span class="kwrd">varchar</span>(255) <span class="kwrd">AS</span><span class="kwrd">BEGIN</span><span class="kwrd">declare</span> @ret <span class="kwrd">varchar</span>(255) <span class="kwrd">declare</span> @i <span class="kwrd">int</span><span class="rem">--
year 4 digits</span><span class="kwrd">set</span> @ret=replace(@format,<span class="str">'\jjjj'</span>,<span class="kwrd">cast</span>(<span class="kwrd">year</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(4))) <span class="rem">--
year 4 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\yyyy'</span>,<span class="kwrd">cast</span>(<span class="kwrd">year</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(4))) <span class="rem">--
day 2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\dd'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(<span class="kwrd">day</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
weekday 1 digit </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\dw'</span>,<span class="kwrd">cast</span>(datepart(dw,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(1))) <span class="rem">--
day of year</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\dy'</span>,<span class="kwrd">right</span>(<span class="str">'00'</span>+<span class="kwrd">cast</span>(<span class="kwrd">day</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(3)),3)) <span class="rem">--
hour 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\hh'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(hh,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
year 2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\jj'</span>,<span class="kwrd">right</span>(<span class="kwrd">cast</span>(<span class="kwrd">year</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(4)),2)) <span class="rem">--
minute 2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\mi'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(mi,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
month 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\mm'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(<span class="kwrd">month</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
milliseconds 3 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\ms'</span>,<span class="kwrd">right</span>(<span class="str">'00'</span>+<span class="kwrd">cast</span>(datepart(ss,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(3)),3)) <span class="rem">--
quarter 2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\qq'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(qq,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
seconds 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\ss'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(ss,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
day 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\tt'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(<span class="kwrd">day</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
week 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\wk'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(wk,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
year 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\yy'</span>,<span class="kwrd">right</span>(<span class="kwrd">cast</span>(<span class="kwrd">year</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(4)),2)) <span class="rem">--
day 1-2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\d'</span>,<span class="kwrd">cast</span>(<span class="kwrd">day</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="rem">--
hour 1-2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\h'</span>,<span class="kwrd">cast</span>(datepart(hh,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="rem">--
month 1-2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\m'</span>,<span class="kwrd">cast</span>(<span class="kwrd">month</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="rem">--
minute 2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\n'</span>,<span class="kwrd">right</span>(<span class="str">'0'</span>+<span class="kwrd">cast</span>(datepart(mi,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2)),2)) <span class="rem">--
quarter 1 digit </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\q'</span>,<span class="kwrd">cast</span>(datepart(qq,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(1))) <span class="rem">--
seconds 1-2 digits</span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\s'</span>,<span class="kwrd">cast</span>(datepart(ss,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="rem">--
day 1-2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\t'</span>,<span class="kwrd">cast</span>(<span class="kwrd">day</span>(@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="rem">--
week 1-2 digits </span><span class="kwrd">set</span> @ret=replace(@ret,<span class="str">'\w'</span>,<span class="kwrd">cast</span>(datepart(wk,@dat) <span class="kwrd">as</span><span class="kwrd">varchar</span>(2))) <span class="kwrd">return</span> @ret <span class="kwrd">END</span> GO</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ee700f2f-1af6-4526-ad65-d84524eb5526" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: help with date formats</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,ee700f2f-1af6-4526-ad65-d84524eb5526.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,ee700f2f-1af6-4526-ad65-d84524eb5526.aspx</link>
      <pubDate>Mon, 24 Sep 2007 16:33:12 GMT</pubDate>
      <description>&lt;p&gt;
Are you also always looking in the BOL if you have to deal with datetime?
&lt;/p&gt;
&lt;p&gt;
This stored procedure could bring some light in the dark...
&lt;/p&gt;
&lt;p&gt;
You will have to call it with the following statement:
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;Select&lt;/span&gt; dbo.fn_formatdate(getdate(),&lt;span class="str"&gt;'formated
date: \TT\MM\YYYY \hh:\mi:\ss \ms Week: \wk Weekday: \DW Quarter: \qq'&lt;/span&gt;),getdate()&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
The formatstring can contain severall formatstrings and will bring up all datetimeparts
you want, including some additional textparts...
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;FUNCTION&lt;/span&gt; [dbo].[fn_formatdate](@dat
datetime,@format &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(255)) &lt;span class="kwrd"&gt;RETURNS&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(255) &lt;span class="kwrd"&gt;AS&lt;/span&gt; &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;declare&lt;/span&gt; @ret &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(255) &lt;span class="kwrd"&gt;declare&lt;/span&gt; @i &lt;span class="kwrd"&gt;int&lt;/span&gt; &lt;span class="rem"&gt;--
year 4 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@format,&lt;span class="str"&gt;'\jjjj'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;year&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(4))) &lt;span class="rem"&gt;--
year 4 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\yyyy'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;year&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(4))) &lt;span class="rem"&gt;--
day 2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\dd'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;day&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
weekday 1 digit &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\dw'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(dw,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(1))) &lt;span class="rem"&gt;--
day of year&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\dy'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'00'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;day&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(3)),3)) &lt;span class="rem"&gt;--
hour 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\hh'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(hh,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
year 2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\jj'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;year&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(4)),2)) &lt;span class="rem"&gt;--
minute 2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\mi'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(mi,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
month 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\mm'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;month&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
milliseconds 3 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\ms'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'00'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(ss,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(3)),3)) &lt;span class="rem"&gt;--
quarter 2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\qq'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(qq,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
seconds 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\ss'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(ss,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
day 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\tt'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;day&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
week 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\wk'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(wk,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
year 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\yy'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;year&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(4)),2)) &lt;span class="rem"&gt;--
day 1-2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\d'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;day&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="rem"&gt;--
hour 1-2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\h'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(hh,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="rem"&gt;--
month 1-2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\m'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;month&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="rem"&gt;--
minute 2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\n'&lt;/span&gt;,&lt;span class="kwrd"&gt;right&lt;/span&gt;(&lt;span class="str"&gt;'0'&lt;/span&gt;+&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(mi,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2)),2)) &lt;span class="rem"&gt;--
quarter 1 digit &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\q'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(qq,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(1))) &lt;span class="rem"&gt;--
seconds 1-2 digits&lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\s'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(ss,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="rem"&gt;--
day 1-2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\t'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(&lt;span class="kwrd"&gt;day&lt;/span&gt;(@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="rem"&gt;--
week 1-2 digits &lt;/span&gt; &lt;span class="kwrd"&gt;set&lt;/span&gt; @ret=replace(@ret,&lt;span class="str"&gt;'\w'&lt;/span&gt;,&lt;span class="kwrd"&gt;cast&lt;/span&gt;(datepart(wk,@dat) &lt;span class="kwrd"&gt;as&lt;/span&gt; &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(2))) &lt;span class="kwrd"&gt;return&lt;/span&gt; @ret &lt;span class="kwrd"&gt;END&lt;/span&gt; GO&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ee700f2f-1af6-4526-ad65-d84524eb5526" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,ee700f2f-1af6-4526-ad65-d84524eb5526.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=0bde9a5a-4f77-4a6d-9310-59a194c1db7c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,0bde9a5a-4f77-4a6d-9310-59a194c1db7c.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,0bde9a5a-4f77-4a6d-9310-59a194c1db7c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0bde9a5a-4f77-4a6d-9310-59a194c1db7c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Do you want to create database snapshots? And do you want to do it programmatically?
Then you could use this stored procedure...
</p>
        <p>
Enjoy!
</p>
        <pre class="csharpcode">
          <span class="kwrd">CREATE</span>
          <span class="kwrd">PROC</span> [dbo].[spr_CreateSnapshot]
(@Masterdb <span class="kwrd">VARCHAR</span>(255), @SnapshotName <span class="kwrd">VARCHAR</span>(255),
@<span class="kwrd">Execute</span><span class="kwrd">BIT</span> = 1) <span class="kwrd">AS</span><span class="kwrd">SET</span> NOCOUNT <span class="kwrd">ON</span><span class="kwrd">DECLARE</span> @NewLine <span class="kwrd">CHAR</span>(2) <span class="kwrd">DECLARE</span> @Q <span class="kwrd">CHAR</span>(1) <span class="kwrd">DECLARE</span> @fname <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">DECLARE</span> @extention <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">DECLARE</span> @Pfad <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">DECLARE</span> @DBname <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">DECLARE</span> @LogicName <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">DECLARE</span> @Command <span class="kwrd">VARCHAR</span>(<span class="kwrd">MAX</span>) <span class="kwrd">DECLARE</span> @indexExt <span class="kwrd">INT</span><span class="kwrd">DECLARE</span> @indexPfad <span class="kwrd">INT</span><span class="kwrd">DECLARE</span> @lenFname <span class="kwrd">INT</span><span class="kwrd">DECLARE</span> @lenPfad <span class="kwrd">INT</span><span class="kwrd">DECLARE</span> @lenDB <span class="kwrd">INT</span><span class="kwrd">DECLARE</span> @lenExt <span class="kwrd">INT</span><span class="kwrd">CREATE</span><span class="kwrd">TABLE</span> #Info
(physical_name <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">not</span><span class="kwrd">null</span>,
logicname <span class="kwrd">VARCHAR</span>(255) <span class="kwrd">not</span><span class="kwrd">null</span>) <span class="kwrd">SET</span> @newLine
= <span class="kwrd">CHAR</span>(13) + <span class="kwrd">CHAR</span>(10) <span class="kwrd">SET</span> @Q
= <span class="kwrd">CHAR</span>(39) <span class="kwrd">SET</span> @command = <span class="str">'INSERT
INTO #info (physical_name, logicname) SELECT s.physical_name,s.[name] AS LogicName
FROM '</span> + Quotename(@masterdb) + <span class="str">'.sys.filegroups as g INNER
JOIN sys.master_files AS s ON s.type = 0 AND s.database_id = db_id('</span> + @Q +
@Masterdb + @Q + <span class="str">') AND s.drop_lsn is null AND s.data_space_id =
g.data_space_id ORDER BY g.data_space_id'</span><span class="kwrd">EXECUTE</span> (@Command) <span class="kwrd">SET</span> @Command
= <span class="str">'CREATE DATABASE '</span> + @SnapshotName + @NewLine <span class="kwrd">SET</span> @Command
= @Command + <span class="str">'ON'</span> + @NewLine <span class="kwrd">DECLARE</span> c <span class="kwrd">CURSOR</span> READ_ONLY <span class="kwrd">FOR</span><span class="kwrd">SELECT</span> physical_name,
logicname <span class="kwrd">FROM</span> #info <span class="kwrd">OPEN</span> c <span class="kwrd">FETCH</span><span class="kwrd">NEXT</span><span class="kwrd">FROM</span> c <span class="kwrd">INTO</span> @fname,@LogicName <span class="kwrd">WHILE</span> (@@fetch_status
&lt;&gt; -1) <span class="kwrd">BEGIN</span><span class="kwrd">IF</span> (@@fetch_status
&lt;&gt; -2) <span class="kwrd">BEGIN</span><span class="kwrd">SET</span> @fname
= REVERSE(@fname) <span class="kwrd">SET</span> @lenFname = LEN(@fname) <span class="kwrd">SET</span> @indexExt
= CHARINDEX(<span class="str">'.'</span>,@fname) -1 <span class="kwrd">SET</span> @indexPfad
= CHARINDEX(<span class="str">'\'</span>,@fname) - 1 <span class="kwrd">SET</span> @extention
= REVERSE(<span class="kwrd">SUBSTRING</span> (@fname, 1, @indexExt)) <span class="kwrd">SET</span> @lenExt
= LEN(@extention) <span class="kwrd">SET</span> @Pfad = <span class="kwrd">LEFT</span> (REVERSE(@fname),
@lenFname - @indexPfad) <span class="kwrd">SET</span> @lenPfad = LEN(@Pfad) <span class="kwrd">SET</span> @DBname
= <span class="kwrd">SUBSTRING</span>(REVERSE(@fname), @lenPfad + 1, (@lenFname -
@lenPfad - @lenExt) - 1) <span class="kwrd">SET</span> @Command = @Command + <span class="str">'(Name
= '</span> + @Q + @LogicName + @Q + <span class="str">', Filename = '</span> + @Q <span class="kwrd">SET</span> @Command
= @Command + @Pfad + @SnapshotName + <span class="str">'_'</span> + @DBname + <span class="str">'.'</span> + <span class="str">'ssh'</span> +
@Q + <span class="str">'),'</span> + @NewLine <span class="kwrd">END</span><span class="kwrd">FETCH</span><span class="kwrd">NEXT</span><span class="kwrd">FROM</span> c <span class="kwrd">INTO</span> @fname,@LogicName <span class="kwrd">END</span><span class="kwrd">CLOSE</span> c <span class="kwrd">DEALLOCATE</span> c <span class="kwrd">SET</span> @Command
= <span class="kwrd">LEFT</span>(@Command,LEN(@Command)-3) + @NewLine + <span class="str">'AS
SNAPSHOT OF '</span> + @masterdb <span class="kwrd">IF</span> @<span class="kwrd">Execute</span> =
1 <span class="kwrd">BEGIN</span><span class="kwrd">EXEC</span> (@Command) <span class="kwrd">END</span><span class="kwrd">ELSE</span><span class="kwrd">BEGIN</span><span class="kwrd">SELECT</span> @Command <span class="kwrd">AS</span> Command <font color="#0000ff">END</font></pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0bde9a5a-4f77-4a6d-9310-59a194c1db7c" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: Create database snapshots via stored procedure</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,0bde9a5a-4f77-4a6d-9310-59a194c1db7c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,0bde9a5a-4f77-4a6d-9310-59a194c1db7c.aspx</link>
      <pubDate>Mon, 24 Sep 2007 16:14:49 GMT</pubDate>
      <description>&lt;p&gt;
Do you want to create database snapshots? And do you want to do it programmatically?
Then you could use this stored procedure...
&lt;/p&gt;
&lt;p&gt;
Enjoy!
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;PROC&lt;/span&gt; [dbo].[spr_CreateSnapshot]
(@Masterdb &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255), @SnapshotName &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255),
@&lt;span class="kwrd"&gt;Execute&lt;/span&gt; &lt;span class="kwrd"&gt;BIT&lt;/span&gt; = 1) &lt;span class="kwrd"&gt;AS&lt;/span&gt; &lt;span class="kwrd"&gt;SET&lt;/span&gt; NOCOUNT &lt;span class="kwrd"&gt;ON&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @NewLine &lt;span class="kwrd"&gt;CHAR&lt;/span&gt;(2) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Q &lt;span class="kwrd"&gt;CHAR&lt;/span&gt;(1) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @fname &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @extention &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Pfad &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @DBname &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @LogicName &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Command &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(&lt;span class="kwrd"&gt;MAX&lt;/span&gt;) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @indexExt &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @indexPfad &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @lenFname &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @lenPfad &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @lenDB &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @lenExt &lt;span class="kwrd"&gt;INT&lt;/span&gt; &lt;span class="kwrd"&gt;CREATE&lt;/span&gt; &lt;span class="kwrd"&gt;TABLE&lt;/span&gt; #Info
(physical_name &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;not&lt;/span&gt; &lt;span class="kwrd"&gt;null&lt;/span&gt;,
logicname &lt;span class="kwrd"&gt;VARCHAR&lt;/span&gt;(255) &lt;span class="kwrd"&gt;not&lt;/span&gt; &lt;span class="kwrd"&gt;null&lt;/span&gt;) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @newLine
= &lt;span class="kwrd"&gt;CHAR&lt;/span&gt;(13) + &lt;span class="kwrd"&gt;CHAR&lt;/span&gt;(10) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Q
= &lt;span class="kwrd"&gt;CHAR&lt;/span&gt;(39) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @command = &lt;span class="str"&gt;'INSERT
INTO #info (physical_name, logicname) SELECT s.physical_name,s.[name] AS LogicName
FROM '&lt;/span&gt; + Quotename(@masterdb) + &lt;span class="str"&gt;'.sys.filegroups as g INNER
JOIN sys.master_files AS s ON s.type = 0 AND s.database_id = db_id('&lt;/span&gt; + @Q +
@Masterdb + @Q + &lt;span class="str"&gt;') AND s.drop_lsn is null AND s.data_space_id =
g.data_space_id ORDER BY g.data_space_id'&lt;/span&gt; &lt;span class="kwrd"&gt;EXECUTE&lt;/span&gt; (@Command) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Command
= &lt;span class="str"&gt;'CREATE DATABASE '&lt;/span&gt; + @SnapshotName + @NewLine &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Command
= @Command + &lt;span class="str"&gt;'ON'&lt;/span&gt; + @NewLine &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; c &lt;span class="kwrd"&gt;CURSOR&lt;/span&gt; READ_ONLY &lt;span class="kwrd"&gt;FOR&lt;/span&gt; &lt;span class="kwrd"&gt;SELECT&lt;/span&gt; physical_name,
logicname &lt;span class="kwrd"&gt;FROM&lt;/span&gt; #info &lt;span class="kwrd"&gt;OPEN&lt;/span&gt; c &lt;span class="kwrd"&gt;FETCH&lt;/span&gt; &lt;span class="kwrd"&gt;NEXT&lt;/span&gt; &lt;span class="kwrd"&gt;FROM&lt;/span&gt; c &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @fname,@LogicName &lt;span class="kwrd"&gt;WHILE&lt;/span&gt; (@@fetch_status
&amp;lt;&amp;gt; -1) &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;IF&lt;/span&gt; (@@fetch_status
&amp;lt;&amp;gt; -2) &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;SET&lt;/span&gt; @fname
= REVERSE(@fname) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @lenFname = LEN(@fname) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @indexExt
= CHARINDEX(&lt;span class="str"&gt;'.'&lt;/span&gt;,@fname) -1 &lt;span class="kwrd"&gt;SET&lt;/span&gt; @indexPfad
= CHARINDEX(&lt;span class="str"&gt;'\'&lt;/span&gt;,@fname) - 1 &lt;span class="kwrd"&gt;SET&lt;/span&gt; @extention
= REVERSE(&lt;span class="kwrd"&gt;SUBSTRING&lt;/span&gt; (@fname, 1, @indexExt)) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @lenExt
= LEN(@extention) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Pfad = &lt;span class="kwrd"&gt;LEFT&lt;/span&gt; (REVERSE(@fname),
@lenFname - @indexPfad) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @lenPfad = LEN(@Pfad) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @DBname
= &lt;span class="kwrd"&gt;SUBSTRING&lt;/span&gt;(REVERSE(@fname), @lenPfad + 1, (@lenFname -
@lenPfad - @lenExt) - 1) &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Command = @Command + &lt;span class="str"&gt;'(Name
= '&lt;/span&gt; + @Q + @LogicName + @Q + &lt;span class="str"&gt;', Filename = '&lt;/span&gt; + @Q &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Command
= @Command + @Pfad + @SnapshotName + &lt;span class="str"&gt;'_'&lt;/span&gt; + @DBname + &lt;span class="str"&gt;'.'&lt;/span&gt; + &lt;span class="str"&gt;'ssh'&lt;/span&gt; +
@Q + &lt;span class="str"&gt;'),'&lt;/span&gt; + @NewLine &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;FETCH&lt;/span&gt; &lt;span class="kwrd"&gt;NEXT&lt;/span&gt; &lt;span class="kwrd"&gt;FROM&lt;/span&gt; c &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @fname,@LogicName &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;CLOSE&lt;/span&gt; c &lt;span class="kwrd"&gt;DEALLOCATE&lt;/span&gt; c &lt;span class="kwrd"&gt;SET&lt;/span&gt; @Command
= &lt;span class="kwrd"&gt;LEFT&lt;/span&gt;(@Command,LEN(@Command)-3) + @NewLine + &lt;span class="str"&gt;'AS
SNAPSHOT OF '&lt;/span&gt; + @masterdb &lt;span class="kwrd"&gt;IF&lt;/span&gt; @&lt;span class="kwrd"&gt;Execute&lt;/span&gt; =
1 &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;EXEC&lt;/span&gt; (@Command) &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;ELSE&lt;/span&gt; &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;SELECT&lt;/span&gt; @Command &lt;span class="kwrd"&gt;AS&lt;/span&gt; Command &lt;font color="#0000ff"&gt;END&lt;/font&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0bde9a5a-4f77-4a6d-9310-59a194c1db7c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,0bde9a5a-4f77-4a6d-9310-59a194c1db7c.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=1774e9d4-2a23-4240-bfae-1c22d40bc270</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,1774e9d4-2a23-4240-bfae-1c22d40bc270.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,1774e9d4-2a23-4240-bfae-1c22d40bc270.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=1774e9d4-2a23-4240-bfae-1c22d40bc270</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
You are interested in getting some informations about your SQL Server, for example
to be able to do an auditing on your SQL Server via SSIS, this code will help:
</p>
        <pre class="csharpcode">
          <span class="kwrd">SELECT</span> SERVERPROPERTY (<span class="str">'MachineName'</span>) <span class="kwrd">as</span> MachineName,
SERVERPROPERTY (<span class="str">'InstanceName'</span>) <span class="kwrd">as</span> InstanceName,
SERVERPROPERTY (<span class="str">'ProductVersion'</span>) <span class="kwrd">as</span> ProductVersion,
SERVERPROPERTY (<span class="str">'ProductLevel'</span>) <span class="kwrd">As</span> ProductLevel,
SERVERPROPERTY (<span class="str">'Edition'</span>) <span class="kwrd">as</span> Edition,
SERVERPROPERTY (<span class="str">'LicenseType'</span>) <span class="kwrd">as</span> LicenseType,
SERVERPROPERTY (<span class="str">'NumLicenses'</span>) <span class="kwrd">as</span> NumLicenses,
SERVERPROPERTY (<span class="str">'IsClustered'</span>) <span class="kwrd">as</span> IsClustered,
SERVERPROPERTY (<span class="str">'IsIntegratedSecurityOnly'</span>) <span class="kwrd">as</span> IsIntegratedSecurityOnly</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=1774e9d4-2a23-4240-bfae-1c22d40bc270" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: Get some infos about your SQL Server</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,1774e9d4-2a23-4240-bfae-1c22d40bc270.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,1774e9d4-2a23-4240-bfae-1c22d40bc270.aspx</link>
      <pubDate>Mon, 24 Sep 2007 15:57:03 GMT</pubDate>
      <description>&lt;p&gt;
You are interested in getting some informations about your SQL Server, for example
to be able to do an auditing on your SQL Server via SSIS, this code will help:
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; SERVERPROPERTY (&lt;span class="str"&gt;'MachineName'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; MachineName,
SERVERPROPERTY (&lt;span class="str"&gt;'InstanceName'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; InstanceName,
SERVERPROPERTY (&lt;span class="str"&gt;'ProductVersion'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; ProductVersion,
SERVERPROPERTY (&lt;span class="str"&gt;'ProductLevel'&lt;/span&gt;) &lt;span class="kwrd"&gt;As&lt;/span&gt; ProductLevel,
SERVERPROPERTY (&lt;span class="str"&gt;'Edition'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; Edition,
SERVERPROPERTY (&lt;span class="str"&gt;'LicenseType'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; LicenseType,
SERVERPROPERTY (&lt;span class="str"&gt;'NumLicenses'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; NumLicenses,
SERVERPROPERTY (&lt;span class="str"&gt;'IsClustered'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; IsClustered,
SERVERPROPERTY (&lt;span class="str"&gt;'IsIntegratedSecurityOnly'&lt;/span&gt;) &lt;span class="kwrd"&gt;as&lt;/span&gt; IsIntegratedSecurityOnly&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=1774e9d4-2a23-4240-bfae-1c22d40bc270" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,1774e9d4-2a23-4240-bfae-1c22d40bc270.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=bc048c6b-9338-45ec-82bb-da688eb69c53</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,bc048c6b-9338-45ec-82bb-da688eb69c53.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,bc048c6b-9338-45ec-82bb-da688eb69c53.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=bc048c6b-9338-45ec-82bb-da688eb69c53</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <strong>
            <font color="#003399">
            </font>
          </strong>
        </p>
        <p>
I do not know the original author of this stored procedure...<br />
If you are the one - please send me an email and I will publish the right credits!
</p>
        <p>
After changing the structure of a table or delete one you will need to check and refresh
your views also. This code will help...
</p>
        <pre class="csharpcode">
          <span class="kwrd">DECLARE</span> @Table_Name <span class="kwrd">varchar</span>(100) <span class="kwrd">DECLARE</span> Refresh_Views <span class="kwrd">CURSOR</span><span class="kwrd">FOR</span><span class="kwrd">SELECT</span> Table_Name <span class="kwrd">FROM</span> INFORMATION_SCHEMA.TABLES <span class="kwrd">WHERE</span> TABLE_TYPE
= <span class="str">'VIEW'</span><span class="kwrd">AND</span> TABLE_SCHEMA = <span class="str">'dbo'</span><span class="kwrd">OPEN</span> Refresh_Views <span class="kwrd">FETCH</span><span class="kwrd">NEXT</span><span class="kwrd">FROM</span> Refresh_Views <span class="kwrd">INTO</span> @Table_Name <span class="kwrd">WHILE</span><span class="preproc">@@FETCH_STATUS</span> =
0 <span class="kwrd">BEGIN</span><span class="kwrd">EXEC</span> sp_refreshview @Table_Name <span class="kwrd">FETCH</span><span class="kwrd">NEXT</span><span class="kwrd">FROM</span> Refresh_Views <span class="kwrd">INTO</span> @Table_Name <span class="kwrd">END</span><span class="kwrd">CLOSE</span> Refresh_Views <span class="kwrd">DEALLOCATE</span> Refresh_Views</pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
          <strong>
            <font color="#003399">
            </font>
          </strong>
        </p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=bc048c6b-9338-45ec-82bb-da688eb69c53" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: sp_refreshview</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,bc048c6b-9338-45ec-82bb-da688eb69c53.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,bc048c6b-9338-45ec-82bb-da688eb69c53.aspx</link>
      <pubDate>Mon, 24 Sep 2007 15:51:39 GMT</pubDate>
      <description>&lt;p&gt;
&lt;strong&gt;&lt;font color="#003399"&gt;&lt;/font&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
I do not know the original author of this stored procedure...&lt;br&gt;
If you are the one - please send me an email and I will publish the right credits!
&lt;/p&gt;
&lt;p&gt;
After changing the structure of a table or delete one you will need to check and refresh
your views also. This code will help...
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; @Table_Name &lt;span class="kwrd"&gt;varchar&lt;/span&gt;(100) &lt;span class="kwrd"&gt;DECLARE&lt;/span&gt; Refresh_Views &lt;span class="kwrd"&gt;CURSOR&lt;/span&gt; &lt;span class="kwrd"&gt;FOR&lt;/span&gt; &lt;span class="kwrd"&gt;SELECT&lt;/span&gt; Table_Name &lt;span class="kwrd"&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.TABLES &lt;span class="kwrd"&gt;WHERE&lt;/span&gt; TABLE_TYPE
= &lt;span class="str"&gt;'VIEW'&lt;/span&gt; &lt;span class="kwrd"&gt;AND&lt;/span&gt; TABLE_SCHEMA = &lt;span class="str"&gt;'dbo'&lt;/span&gt; &lt;span class="kwrd"&gt;OPEN&lt;/span&gt; Refresh_Views &lt;span class="kwrd"&gt;FETCH&lt;/span&gt; &lt;span class="kwrd"&gt;NEXT&lt;/span&gt; &lt;span class="kwrd"&gt;FROM&lt;/span&gt; Refresh_Views &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @Table_Name &lt;span class="kwrd"&gt;WHILE&lt;/span&gt; &lt;span class="preproc"&gt;@@FETCH_STATUS&lt;/span&gt; =
0 &lt;span class="kwrd"&gt;BEGIN&lt;/span&gt; &lt;span class="kwrd"&gt;EXEC&lt;/span&gt; sp_refreshview @Table_Name &lt;span class="kwrd"&gt;FETCH&lt;/span&gt; &lt;span class="kwrd"&gt;NEXT&lt;/span&gt; &lt;span class="kwrd"&gt;FROM&lt;/span&gt; Refresh_Views &lt;span class="kwrd"&gt;INTO&lt;/span&gt; @Table_Name &lt;span class="kwrd"&gt;END&lt;/span&gt; &lt;span class="kwrd"&gt;CLOSE&lt;/span&gt; Refresh_Views &lt;span class="kwrd"&gt;DEALLOCATE&lt;/span&gt; Refresh_Views&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
&lt;strong&gt;&lt;font color="#003399"&gt;&lt;/font&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=bc048c6b-9338-45ec-82bb-da688eb69c53" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,bc048c6b-9338-45ec-82bb-da688eb69c53.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=30bf8db6-6a70-45ae-bee8-e3fcb23c609c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,30bf8db6-6a70-45ae-bee8-e3fcb23c609c.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,30bf8db6-6a70-45ae-bee8-e3fcb23c609c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=30bf8db6-6a70-45ae-bee8-e3fcb23c609c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
This one is an event for your 2008 calender...<br />
PASS is coming back to Europe next year from April 14th to 16th with the <a title="European PASS Conference 2008" href="http://www.european-pass-conference.com/" target="_blank">European
PASS Conference 2008</a>!
</p>
        <p>
          <a href="http://www.european-pass-conference.com/" target="_new" atomicselection="true">
            <img style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height="480" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/EuropeanPASSConference2008_F06F/EuropeanPASSConference%5B3%5D.jpg" width="592" border="0" />
          </a>
        </p>
        <p>
You want to be part of it?
</p>
        <table id="table1" style="BORDER-COLLAPSE: collapse" cellpadding="2" border="0">
          <tbody>
            <tr>
              <td width="10">
 </td>
              <td>
Registration:</td>
              <td>
                <a href="mailto:registration@european-pass-conference.com">registration@european-pass-conference.com</a>
              </td>
            </tr>
            <tr>
              <td width="10">
 </td>
              <td>
Speaker:</td>
              <td>
                <a href="mailto:speakerbureau@european-pass-conference.com">speakerbureau@european-pass-conference.com</a>
              </td>
            </tr>
            <tr>
              <td width="10">
 </td>
              <td>
Accounting:</td>
              <td>
                <a href="mailto:accounting@european-pass-conference.com">accounting@european-pass-conference.com</a>
              </td>
            </tr>
            <tr>
              <td width="10">
 </td>
              <td>
Exhibitors:</td>
              <td>
                <a href="mailto:exhibitors@european-pass-conference.com">exhibitors@european-pass-conference.com</a>
              </td>
            </tr>
            <tr>
              <td width="10">
 </td>
              <td>
Information:</td>
              <td>
                <a href="mailto:inquiries@european-pass-conference.com">inquiries@european-pass-conference.com</a>
              </td>
            </tr>
          </tbody>
        </table>
        <p>
 
</p>
        <p>
        </p>
        <div class="wlWriterSmartContent" id="84E294D0-71C9-4bd0-A0FE-95764E0368D9:dda7f1bb-fbbf-4ff1-afb9-a204356fe3d7" contenteditable="false" style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">
          <a id="map-e1ef3023-f8f0-4677-85a1-14ee2ceb5731" title="Click to view this map on Live.com" href="http://local.live.com/default.aspx?v=2&amp;cp=51,20089~6,726379&amp;lvl=16&amp;style=a&amp;sp=aN.51,20078_6,723826_Swiss%25c3%25b4tel_Swiss%25c3%25b4tel" alt="Click to view this map on Live.com">View
map</a>
        </div>
 - The Swissôtel is placed directly near the Rhine and is approx. 10 min away
from the "Düsseldorf Altstadt" if you drive by car. 
<p></p><img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=30bf8db6-6a70-45ae-bee8-e3fcb23c609c" /><br /><hr /><p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p></body>
      <title>European PASS Conference 2008</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,30bf8db6-6a70-45ae-bee8-e3fcb23c609c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,30bf8db6-6a70-45ae-bee8-e3fcb23c609c.aspx</link>
      <pubDate>Mon, 24 Sep 2007 15:11:31 GMT</pubDate>
      <description>&lt;p&gt;
This one is an event for your 2008 calender...&lt;br&gt;
PASS is coming back to Europe next year from April 14th to 16th with the &lt;a title="European PASS Conference 2008" href="http://www.european-pass-conference.com/" target=_blank&gt;European
PASS Conference 2008&lt;/a&gt;!
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.european-pass-conference.com/" target=_new atomicselection="true"&gt;&lt;img style="BORDER-RIGHT: 0px; BORDER-TOP: 0px; BORDER-LEFT: 0px; BORDER-BOTTOM: 0px" height=480 src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/EuropeanPASSConference2008_F06F/EuropeanPASSConference%5B3%5D.jpg" width=592 border=0&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
You want to be part of it?
&lt;/p&gt;
&lt;table id=table1 style="BORDER-COLLAPSE: collapse" cellpadding=2 border=0&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td width=10&gt;
&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
Registration:&gt;&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:registration@european-pass-conference.com"&gt;registration@european-pass-conference.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=10&gt;
&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
Speaker:&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:speakerbureau@european-pass-conference.com"&gt;speakerbureau@european-pass-conference.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=10&gt;
&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
Accounting:&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:accounting@european-pass-conference.com"&gt;accounting@european-pass-conference.com&lt;/a&gt; 
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=10&gt;
&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
Exhibitors:&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:exhibitors@european-pass-conference.com"&gt;exhibitors@european-pass-conference.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td width=10&gt;
&amp;nbsp;&lt;/td&gt;
&lt;td&gt;
Information:&lt;/td&gt;
&lt;td&gt;
&lt;a href="mailto:inquiries@european-pass-conference.com"&gt;inquiries@european-pass-conference.com&lt;/a&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;div class=wlWriterSmartContent id=84E294D0-71C9-4bd0-A0FE-95764E0368D9:dda7f1bb-fbbf-4ff1-afb9-a204356fe3d7 contenteditable=false style="PADDING-RIGHT: 0px; DISPLAY: inline; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px"&gt;&lt;a id=map-e1ef3023-f8f0-4677-85a1-14ee2ceb5731 title="Click to view this map on Live.com" href="http://local.live.com/default.aspx?v=2&amp;amp;cp=51,20089~6,726379&amp;amp;lvl=16&amp;amp;style=a&amp;amp;sp=aN.51,20078_6,723826_Swiss%25c3%25b4tel_Swiss%25c3%25b4tel" alt="Click to view this map on Live.com"&gt;View
map&lt;/a&gt;
&lt;/div&gt;
&amp;nbsp;- The Swissôtel is placed directly near the Rhine and is approx. 10 min away
from the "Düsseldorf Altstadt" if you drive by car. 
&lt;p&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=30bf8db6-6a70-45ae-bee8-e3fcb23c609c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,30bf8db6-6a70-45ae-bee8-e3fcb23c609c.aspx</comments>
      <category>MS SQL Server;PASS;Events</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a title="Phil Brammer blog" href="http://www.ssistalk.com" target="_blank">Phil Brammer</a> has
posted a very nice and simple quick tutorial on using a script component as a source
on his blog:
</p>
        <p>
          <a title="ssis-using-a-script-component-as-a-source" href="http://www.ssistalk.com/2007/04/04/ssis-using-a-script-component-as-a-source/#more-42" target="_blank">http://www.ssistalk.com/2007/04/04/ssis-using-a-script-component-as-a-source/#more-42</a>
        </p>
        <p>
Really worth reading!
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Phil Brammer: SSIS - Using a Script Component as a Source</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770.aspx</link>
      <pubDate>Thu, 05 Jul 2007 21:22:14 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a title="Phil Brammer blog" href="http://www.ssistalk.com" target="_blank"&gt;Phil Brammer&lt;/a&gt; has
posted a very nice and simple quick tutorial on using a script component as a source
on his blog:
&lt;/p&gt;
&lt;p&gt;
&lt;a title="ssis-using-a-script-component-as-a-source" href="http://www.ssistalk.com/2007/04/04/ssis-using-a-script-component-as-a-source/#more-42" target="_blank"&gt;http://www.ssistalk.com/2007/04/04/ssis-using-a-script-component-as-a-source/#more-42&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
Really worth reading!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,3fe23cbc-9a1d-4c1e-8bcc-e8aeca1e9770.aspx</comments>
      <category>MS SQL Server;MS SQL Server/DTS - SSIS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=832818c8-69ca-48fd-8c7d-b28099b99c32</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,832818c8-69ca-48fd-8c7d-b28099b99c32.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,832818c8-69ca-48fd-8c7d-b28099b99c32.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=832818c8-69ca-48fd-8c7d-b28099b99c32</wfw:commentRss>
      <title>PASS BootCamp 2007 - DBA &amp; Reporting Services</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,832818c8-69ca-48fd-8c7d-b28099b99c32.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,832818c8-69ca-48fd-8c7d-b28099b99c32.aspx</link>
      <pubDate>Wed, 20 Jun 2007 21:29:37 GMT</pubDate>
      <description>PASS Germany is doing a BootCamp again this year!

[Even if it is an event in German language I am writing in English - please spread this news around in your blogs though interested community members have the chance to participate]

We are slightly breaking traditions this year, because we are not having a complete BI-focused BootCamp, we are having two different tracks this time:

the first one is DBA-stuff including performance optimization, clustering, mirroring, security, etc

the second one is a deep dive into SQL Server Reporting Services including development, design, security, infrastructur and 3rd party tools like Dundas also
With one habit we do not break traditions! We have included three suprising night sessions again and also two late night sessions - stay tuned!

For further information visit the event page - if you want to register, please use this link.

The Early-Bird ends at 9th July 2007 and the seats are limited - so register as fast as possible...&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=832818c8-69ca-48fd-8c7d-b28099b99c32"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,832818c8-69ca-48fd-8c7d-b28099b99c32.aspx</comments>
      <category>BI/Reporting;MS SQL Server;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS;PASS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=eb01b206-73ee-45c9-a281-0366c3725937</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,eb01b206-73ee-45c9-a281-0366c3725937.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,eb01b206-73ee-45c9-a281-0366c3725937.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=eb01b206-73ee-45c9-a281-0366c3725937</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/SQLServerKatmaiitsofficial_39C7/katmai_hero%5B3%5D.jpg" atomicselection="true">
            <img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="60" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/SQLServerKatmaiitsofficial_39C7/katmai_hero_thumb%5B1%5D.jpg" width="320" border="0" />
          </a>
        </p>
        <p>
Today at the BI Conference in Seattle Jeff Raikes from Microsoft has given a first
official impact - just slides - on the next SQL Server version.
</p>
        <p>
I have seen a new feature called Change Data Capture (also mentioned in the <a title="Katmai datasheet" href="http://download.microsoft.com/download/B/F/2/BF24C54E-5635-4C79-AFB4-0C3F840E79F4/Katmai_datasheet_Final.pdf" target="_blank">datasheet</a>)
in the session "PL208 Data Warehousing with Microsoft SQL Server 2005" presented by
Gopal Ashok, Program Manager with the SQL Server Product team, which was quite
impressive.
</p>
        <p>
Ever dealt with the problem of having mass data in a table and no "real" marker to
identify the specific rows for incremental data operations like inserts, updates and
deletes?<br />
The Change Data Capture should ease your pain by creating a kind of audit table to
watch data modification without the need of programming stored procedures, triggers
and so on.<br />
I am extremely curious how this feature proves in real life scenarios. And I am also
a little bit surprised if the SSIS team will not bring up some new tasks to enable
the use of the audit table of the Change Data Capture - or do we still need to develop
the handling concerning load cycles, deleting of successfully loaded records, etc
by our own? A kind of automatic delta queue mechanism and handling like
in SAP systems would be great!
</p>
        <p>
Tomorrow Ted Kummert, corporate vice president of the Data and Storage Platform Division
at Microsoft will have a keynote at the morning - I hope that he will show some more
live impressions.
</p>
        <p>
You will find the official press release <a title="Katmai Press release" href="http://www.microsoft.com/presspass/press/2007/may07/05-09KatmaiPR.mspx" target="_blank">here</a>.
</p>
        <p>
And there also is a <a title="SQL future version" href="http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx" target="_blank">information
website</a> online.
</p>
        <p>
Regarding to the press release, "SQL Server “Katmai” is scheduled to be delivered
in 2008" - but there is no information about CTP´s available on the website yet.
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=eb01b206-73ee-45c9-a281-0366c3725937" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>SQL Server Katmai - its official</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,eb01b206-73ee-45c9-a281-0366c3725937.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,eb01b206-73ee-45c9-a281-0366c3725937.aspx</link>
      <pubDate>Thu, 10 May 2007 02:03:05 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a href="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/SQLServerKatmaiitsofficial_39C7/katmai_hero%5B3%5D.jpg" atomicselection="true"&gt;&lt;img style="border-right: 0px; border-top: 0px; border-left: 0px; border-bottom: 0px" height="60" src="http://www.fits-consulting.de/blog/content/binary/WindowsLiveWriter/SQLServerKatmaiitsofficial_39C7/katmai_hero_thumb%5B1%5D.jpg" width="320" border="0"&gt;&lt;/a&gt; 
&lt;/p&gt;
&lt;p&gt;
Today at the BI Conference in Seattle Jeff Raikes from Microsoft has given a first
official impact - just slides - on the next SQL Server version.
&lt;/p&gt;
&lt;p&gt;
I have seen a new feature called Change Data Capture (also mentioned in the &lt;a title="Katmai datasheet" href="http://download.microsoft.com/download/B/F/2/BF24C54E-5635-4C79-AFB4-0C3F840E79F4/Katmai_datasheet_Final.pdf" target="_blank"&gt;datasheet&lt;/a&gt;)
in the session "PL208 Data Warehousing with Microsoft SQL Server 2005" presented by
Gopal Ashok,&amp;nbsp;Program Manager with the SQL Server Product team, which was quite
impressive.
&lt;/p&gt;
&lt;p&gt;
Ever dealt with the problem of having mass data in a table and no "real" marker to
identify the specific rows for incremental data operations like inserts, updates and
deletes?&lt;br&gt;
The Change Data Capture should ease your pain by creating a kind of audit table to
watch data modification without the need of programming stored procedures, triggers
and so on.&lt;br&gt;
I am extremely curious how this feature proves in real life scenarios. And I am also
a little bit surprised if the SSIS team will not bring up some new tasks to enable
the use of the audit table of the Change Data Capture - or do we still need to develop
the handling concerning load cycles, deleting of successfully loaded records, etc
by our own? A kind of automatic delta queue mechanism&amp;nbsp;and handling&amp;nbsp;like
in SAP systems would be great!
&lt;/p&gt;
&lt;p&gt;
Tomorrow Ted Kummert, corporate vice president of the Data and Storage Platform Division
at Microsoft will have a keynote at the morning - I hope that he will show some more
live impressions.
&lt;/p&gt;
&lt;p&gt;
You will find the official press release &lt;a title="Katmai Press release" href="http://www.microsoft.com/presspass/press/2007/may07/05-09KatmaiPR.mspx" target="_blank"&gt;here&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
And there also is a &lt;a title="SQL future version" href="http://www.microsoft.com/sql/prodinfo/futureversion/default.mspx" target="_blank"&gt;information
website&lt;/a&gt; online.
&lt;/p&gt;
&lt;p&gt;
Regarding to the press release, "SQL Server “Katmai” is scheduled to be delivered
in 2008" - but there is no information about CTP´s available on the website yet.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=eb01b206-73ee-45c9-a281-0366c3725937" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,eb01b206-73ee-45c9-a281-0366c3725937.aspx</comments>
      <category>MS;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/MSDB - Express;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=45ea91f8-947b-444f-ae75-5324247a6154</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,45ea91f8-947b-444f-ae75-5324247a6154.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,45ea91f8-947b-444f-ae75-5324247a6154.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=45ea91f8-947b-444f-ae75-5324247a6154</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a title="Vera Noest" href="http://sql.veranoest.net/" target="_blank">Vera Noest</a> provides
a really great link collection of ressources which will be very usefull while doing
troubleshoting.
</p>
        <p>
Vera also provides troubleshooting tips for <a title="Terminal Server and Citrix" href="http://ts.veranoest.net/" target="_blank">Terminal
Server and Citrix</a>.
</p>
        <p>
Worth reading - check it out!
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=45ea91f8-947b-444f-ae75-5324247a6154" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>SQL Server troubleshooting</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,45ea91f8-947b-444f-ae75-5324247a6154.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,45ea91f8-947b-444f-ae75-5324247a6154.aspx</link>
      <pubDate>Tue, 01 May 2007 22:34:30 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a title="Vera Noest" href="http://sql.veranoest.net/" target="_blank"&gt;Vera Noest&lt;/a&gt; provides
a really great link collection of ressources which will be very usefull while doing
troubleshoting.
&lt;/p&gt;
&lt;p&gt;
Vera also provides troubleshooting tips for &lt;a title="Terminal Server and Citrix" href="http://ts.veranoest.net/" target="_blank"&gt;Terminal
Server and Citrix&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Worth reading - check it out!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=45ea91f8-947b-444f-ae75-5324247a6154" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,45ea91f8-947b-444f-ae75-5324247a6154.aspx</comments>
      <category>MS;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/MSDB - Express;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=ce3ab959-2fe4-40bf-beee-1f73f80d0ebd</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,ce3ab959-2fe4-40bf-beee-1f73f80d0ebd.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,ce3ab959-2fe4-40bf-beee-1f73f80d0ebd.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ce3ab959-2fe4-40bf-beee-1f73f80d0ebd</wfw:commentRss>
      <slash:comments>3</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a title="Extracting Olap Data from SSAS using SSIS" href="http://geekswithblogs.net/darrengosbell/archive/2006/04/26/76418.aspx" target="_blank">Darren
Gosbell</a> has posted a very interesting article about querying SSAS and use the
result in the relational part of SQL Server.
</p>
        <p>
I have used it in a project to retransfer data which was calculated due to a parent
child dimension containing items for a financial analysis.<br />
Calculating this via the relational data would have been a mess, because of having
to rebuild the whole calculation from the bottom to the top of the hierarchy.
</p>
        <p>
All you have to do is to define a linked server in the first step:
</p>
        <pre class="csharpcode">
          <span class="kwrd">USE</span> master <span class="kwrd">GO</span> /* <span class="kwrd">Add</span><span class="kwrd">new</span> linked
server */ <span class="kwrd">EXEC</span> sp_addlinkedserver @server=<span class="str">'LINKED_OLAP'</span>, <span class="rem">--
local SQL name given to the linked server </span> @srvproduct=<span class="str">''</span>, <span class="rem">--
not used </span> @provider=<span class="str">'MSOLAP.3'</span>, <span class="rem">--
OLE DB provider (the .2 means the SQL2K version) </span> @datasrc=<span class="str">'localhost'</span>, <span class="rem">--
analysis server name (machine name) </span> @<span class="kwrd">catalog</span>=<span class="str">'Adventure
Works DW'</span><span class="rem">-- default catalog/database</span></pre>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <p>
After successfully defining the linked server you will be able to query any SSAS cube
based on your security like this way:
</p>
        <pre class="csharpcode">
          <span class="kwrd">SELECT</span> * <span class="kwrd">FROM</span><span class="kwrd">OpenQuery</span>(linked_olap,<span class="str">'SELECT
--measures.members {Measures.[Internet Sales Amount]} ON COLUMNS, [Date].[Month].members
ON ROWS FROM [Adventure Works]'</span>) </pre>
        <p>
While writing this blog entry I tested it on my notebook also - and was very astonished
that querying the cube does not work, while testing the linked server worked
well.<br />
I am getting an error message like:<br />
"Msg 7399, Level 16, State 1, Line 1<br />
The OLE DB provider "MSOLAP.3" for linked server "linked_olap" reported an error.
The provider did not give any information about the error.<br />
Msg 7330, Level 16, State 2, Line 1<br />
Cannot fetch a row from OLE DB provider "MSOLAP.3" for linked server "linked_olap"."
</p>
        <p>
Maybe it depends on Windows Vista, even with the security set in the right way and
also running SSMS as an administrator...
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ce3ab959-2fe4-40bf-beee-1f73f80d0ebd" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: Extracting Olap Data from SSAS using SSIS - Darren Gosbell</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,ce3ab959-2fe4-40bf-beee-1f73f80d0ebd.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,ce3ab959-2fe4-40bf-beee-1f73f80d0ebd.aspx</link>
      <pubDate>Tue, 01 May 2007 22:05:16 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a title="Extracting Olap Data from SSAS using SSIS" href="http://geekswithblogs.net/darrengosbell/archive/2006/04/26/76418.aspx" target="_blank"&gt;Darren
Gosbell&lt;/a&gt; has posted a very interesting article about querying SSAS and use the
result&amp;nbsp;in the relational part of SQL Server.
&lt;/p&gt;
&lt;p&gt;
I have used it in a project to retransfer data which was calculated due to a parent
child dimension containing items for a financial analysis.&lt;br&gt;
Calculating this via the relational data would have been a mess, because of having
to rebuild the whole calculation from the bottom to the top of the hierarchy.
&lt;/p&gt;
&lt;p&gt;
All you have to do is to define a linked server in the first step:
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;USE&lt;/span&gt; master &lt;span class="kwrd"&gt;GO&lt;/span&gt; /* &lt;span class="kwrd"&gt;Add&lt;/span&gt; &lt;span class="kwrd"&gt;new&lt;/span&gt; linked
server */ &lt;span class="kwrd"&gt;EXEC&lt;/span&gt; sp_addlinkedserver @server=&lt;span class="str"&gt;'LINKED_OLAP'&lt;/span&gt;, &lt;span class="rem"&gt;--
local SQL name given to the linked server &lt;/span&gt; @srvproduct=&lt;span class="str"&gt;''&lt;/span&gt;, &lt;span class="rem"&gt;--
not used &lt;/span&gt; @provider=&lt;span class="str"&gt;'MSOLAP.3'&lt;/span&gt;, &lt;span class="rem"&gt;--
OLE DB provider (the .2 means the SQL2K version) &lt;/span&gt; @datasrc=&lt;span class="str"&gt;'localhost'&lt;/span&gt;, &lt;span class="rem"&gt;--
analysis server name (machine name) &lt;/span&gt; @&lt;span class="kwrd"&gt;catalog&lt;/span&gt;=&lt;span class="str"&gt;'Adventure
Works DW'&lt;/span&gt; &lt;span class="rem"&gt;-- default catalog/database&lt;/span&gt;&lt;/pre&gt;
&lt;style type="text/css"&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;p&gt;
After successfully defining the linked server you will be able to query any SSAS cube
based on your security like this way:
&lt;/p&gt;
&lt;pre class="csharpcode"&gt;&lt;span class="kwrd"&gt;SELECT&lt;/span&gt; * &lt;span class="kwrd"&gt;FROM&lt;/span&gt; &lt;span class="kwrd"&gt;OpenQuery&lt;/span&gt;(linked_olap,&lt;span class="str"&gt;'SELECT
--measures.members {Measures.[Internet Sales Amount]} ON COLUMNS, [Date].[Month].members
ON ROWS FROM [Adventure Works]'&lt;/span&gt;) &lt;/pre&gt;
&lt;p&gt;
While writing this blog entry I tested it on my notebook also - and was very astonished
that&amp;nbsp;querying the cube&amp;nbsp;does not work, while testing the linked server worked
well.&lt;br&gt;
I am getting an error message like:&lt;br&gt;
"Msg 7399, Level 16, State 1, Line 1&lt;br&gt;
The OLE DB provider "MSOLAP.3" for linked server "linked_olap" reported an error.
The provider did not give any information about the error.&lt;br&gt;
Msg 7330, Level 16, State 2, Line 1&lt;br&gt;
Cannot fetch a row from OLE DB provider "MSOLAP.3" for linked server "linked_olap"."
&lt;/p&gt;
&lt;p&gt;
Maybe it depends on Windows Vista, even with the security set in the right way and
also running SSMS as an administrator...
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ce3ab959-2fe4-40bf-beee-1f73f80d0ebd" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,ce3ab959-2fe4-40bf-beee-1f73f80d0ebd.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=079d6d52-c549-41e2-9431-8e4a281414d8</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,079d6d52-c549-41e2-9431-8e4a281414d8.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,079d6d52-c549-41e2-9431-8e4a281414d8.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=079d6d52-c549-41e2-9431-8e4a281414d8</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a title="Narayana Vyas Kondreddi" href="http://vyaskn.tripod.com/" target="_blank">Narayana
Vyas Kondreddi</a> has published some nice little sql helpers to search and replace
data in various tables - therefor the following content is intellectual property of <a title="Narayana Vyas Kondreddi" href="http://vyaskn.tripod.com/" target="_blank">Narayana
Vyas Kondreddi</a>.
</p>
        <p>
Maybe you will have to adjust the sql commands to search only special tables via a
prefix for example or to just search via a special column...
</p>
        <p>
          <hr width="75%" color="#c0c0c0" size="1" />
        </p>
        <p>
        </p>
        <p>
The first one, <a title="SearchAllTables" href="http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm" target="_blank">SearchAllTables</a>,
can search all the columns of all the tables in a given database for a specific keyword:
</p>
        <p>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span>
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROC</span> SearchAllTables<br />
(<br />
@SearchStr <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(100)<br />
)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Purpose: To search all columns of all tables for a given search string</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Written by: Narayana Vyas Kondreddi</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Site: http://vyaskn.tripod.com</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Tested on: SQL Server 7.0 and SQL Server 2000</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Date modified: 28th July 2002 22:50 GMT</span><br /><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">TABLE</span> #Results
(ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(370),
ColumnValue <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(3630))<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOCOUNT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ON</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(256),
@ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(128),
@SearchStr2 <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(110)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @TableName
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @SearchStr2
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'%'</span> +
@SearchStr + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'%'</span>,<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''''</span>)<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @ColumnName
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @TableName
= 
<br />
(<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">MIN</span>(<span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME))<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> INFORMATION_SCHEMA.TABLES<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> TABLE_TYPE
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'BASE
TABLE'</span><br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME)
&gt; @TableName<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECTPROPERTY</span>(<br /><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECT_ID</span>(<br /><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME)<br />
), <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'IsMSShipped'</span><br />
) = 0<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> (@TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span>) <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> (@ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span>)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @ColumnName
=<br />
(<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">MIN</span>(<span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(COLUMN_NAME))<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> INFORMATION_SCHEMA.COLUMNS<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> TABLE_SCHEMA
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PARSENAME</span>(@TableName,
2)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> TABLE_NAME
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PARSENAME</span>(@TableName,
1)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> DATA_TYPE <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IN</span> (<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'char'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'varchar'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'nchar'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'nvarchar'</span>)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(COLUMN_NAME)
&gt; @ColumnName<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IF</span> @ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INSERT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INTO</span> #Results<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span><br />
(<br /><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'SELECT
'''</span> + @TableName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> +
@ColumnName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''',
LEFT('</span> + @ColumnName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">',
3630) 
<br />
FROM '</span> + @TableName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
(NOLOCK) '</span> +<br /><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
WHERE '</span> + @ColumnName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
LIKE '</span> + @SearchStr2<br />
)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> ColumnName,
ColumnValue <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #Results<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span></span>
        </p>
        <hr width="75%" color="#c0c0c0" size="1" />
        <p>
The second one, <a title="SearchAndReplace" href="http://vyaskn.tripod.com/sql_server_search_and_replace.htm" target="_blank">SearchAndReplace</a>,
does not only perform the search but also will do a replace:
</p>
        <p>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span>
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROC</span> SearchAndReplace<br />
(<br />
@SearchStr <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(100),<br />
@ReplaceStr <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(100)<br />
)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Purpose: To search all columns of all tables for a given search string and replace
it with another string</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Written by: Narayana Vyas Kondreddi</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Site: http://vyaskn.tripod.com</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Tested on: SQL Server 7.0 and SQL Server 2000</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--
Date modified: 2nd November 2002 13:50 GMT</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOCOUNT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ON</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(256),
@ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(128),
@SearchStr2 <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(110),
@SQL <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">nvarchar</span>(4000),
@RCTR <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">int</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @TableName
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @SearchStr2
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'%'</span> +
@SearchStr + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'%'</span>,<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''''</span>)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @RCTR
= 0<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @ColumnName
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @TableName
= 
<br />
(<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">MIN</span>(<span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME))<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> INFORMATION_SCHEMA.TABLES<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> TABLE_TYPE
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'BASE
TABLE'</span><br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME)
&gt; @TableName<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECTPROPERTY</span>(<br /><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECT_ID</span>(<br /><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_SCHEMA)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(TABLE_NAME)<br />
), <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'IsMSShipped'</span><br />
) = 0<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> (@TableName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span>) <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> (@ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span>)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @ColumnName
=<br />
(<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">MIN</span>(<span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(COLUMN_NAME))<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> INFORMATION_SCHEMA.COLUMNS<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> TABLE_SCHEMA
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PARSENAME</span>(@TableName,
2)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> TABLE_NAME
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PARSENAME</span>(@TableName,
1)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> DATA_TYPE <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IN</span> (<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'char'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'varchar'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'nchar'</span>, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'nvarchar'</span>)<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(COLUMN_NAME)
&gt; @ColumnName<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IF</span> @ColumnName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @SQL= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'UPDATE
'</span> + @TableName + 
<br /><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
SET '</span> + @ColumnName 
<br />
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
= REPLACE('</span> + @ColumnName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">',
'</span><br />
+ <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(@SearchStr, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''''</span>)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">',
'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">QUOTENAME</span>(@ReplaceStr, <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">''''</span>)
+ 
<br /><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">')
WHERE '</span> + @ColumnName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
LIKE '</span> + @SearchStr2<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span> (@SQL)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @RCTR
= @RCTR + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">@@ROWCOUNT</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Replaced
'</span> + <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CAST</span>(@RCTR <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">varchar</span>)
+ <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'
occurence(s)'</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Outcome'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /></span>
        </p>
        <style type="text/css">.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
</style>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=079d6d52-c549-41e2-9431-8e4a281414d8" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>little SQL-helpers: search and replace data from Narayana Vyas Kondreddi</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,079d6d52-c549-41e2-9431-8e4a281414d8.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,079d6d52-c549-41e2-9431-8e4a281414d8.aspx</link>
      <pubDate>Tue, 01 May 2007 19:37:56 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a title="Narayana Vyas Kondreddi" href="http://vyaskn.tripod.com/" target=_blank&gt;Narayana
Vyas Kondreddi&lt;/a&gt; has published some nice little sql helpers to search and&amp;nbsp;replace
data in various tables - therefor the following content is intellectual property of &lt;a title="Narayana Vyas Kondreddi" href="http://vyaskn.tripod.com/" target=_blank&gt;Narayana
Vyas Kondreddi&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Maybe you will have to adjust the sql commands to search only special tables via a
prefix for example&amp;nbsp;or to just search via a special column...
&lt;/p&gt;
&lt;p&gt;
&lt;hr width="75%" color=#c0c0c0 size=1&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
The first one, &lt;a title=SearchAllTables href="http://vyaskn.tripod.com/search_all_columns_in_all_tables.htm" target=_blank&gt;SearchAllTables&lt;/a&gt;,
can search all the columns of all the tables in a given database for a specific keyword:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROC&lt;/span&gt; SearchAllTables&lt;br&gt;
(&lt;br&gt;
@SearchStr &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(100)&lt;br&gt;
)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Purpose: To search all columns of all tables for a given search string&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Written by: Narayana Vyas Kondreddi&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Site: http://vyaskn.tripod.com&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Tested on: SQL Server 7.0 and SQL Server 2000&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Date modified: 28th July 2002 22:50 GMT&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TABLE&lt;/span&gt; #Results
(ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(370),
ColumnValue &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(3630))&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOCOUNT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ON&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(256),
@ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(128),
@SearchStr2 &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(110)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @TableName
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @SearchStr2
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'%'&lt;/span&gt; +
@SearchStr + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'%'&lt;/span&gt;,&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''''&lt;/span&gt;)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @ColumnName
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @TableName
= 
&lt;br&gt;
(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;MIN&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME))&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.TABLES&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; TABLE_TYPE
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'BASE
TABLE'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME)
&amp;gt; @TableName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECTPROPERTY&lt;/span&gt;(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECT_ID&lt;/span&gt;(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME)&lt;br&gt;
), &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'IsMSShipped'&lt;/span&gt;
&lt;br&gt;
) = 0&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; (@TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; (@ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @ColumnName
=&lt;br&gt;
(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;MIN&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(COLUMN_NAME))&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.COLUMNS&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; TABLE_SCHEMA
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PARSENAME&lt;/span&gt;(@TableName,
2)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; TABLE_NAME
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PARSENAME&lt;/span&gt;(@TableName,
1)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; DATA_TYPE &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IN&lt;/span&gt; (&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'char'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'varchar'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'nchar'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'nvarchar'&lt;/span&gt;)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(COLUMN_NAME)
&amp;gt; @ColumnName&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IF&lt;/span&gt; @ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INSERT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INTO&lt;/span&gt; #Results&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt;
&lt;br&gt;
(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'SELECT
'''&lt;/span&gt; + @TableName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; +
@ColumnName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''',
LEFT('&lt;/span&gt; + @ColumnName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;',
3630) 
&lt;br&gt;
FROM '&lt;/span&gt; + @TableName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
(NOLOCK) '&lt;/span&gt; +&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
WHERE '&lt;/span&gt; + @ColumnName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
LIKE '&lt;/span&gt; + @SearchStr2&lt;br&gt;
)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt; 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; ColumnName,
ColumnValue &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #Results&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;hr width="75%" color=#c0c0c0 size=1&gt;
&lt;p&gt;
The&amp;nbsp;second one, &lt;a title=SearchAndReplace href="http://vyaskn.tripod.com/sql_server_search_and_replace.htm" target=_blank&gt;SearchAndReplace&lt;/a&gt;,
does not only perform the search but also will do a replace:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROC&lt;/span&gt; SearchAndReplace&lt;br&gt;
(&lt;br&gt;
@SearchStr &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(100),&lt;br&gt;
@ReplaceStr &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(100)&lt;br&gt;
)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Copyright © 2002 Narayana Vyas Kondreddi. All rights reserved.&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Purpose: To search all columns of all tables for a given search string and replace
it with another string&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Written by: Narayana Vyas Kondreddi&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Site: http://vyaskn.tripod.com&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Tested on: SQL Server 7.0 and SQL Server 2000&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--
Date modified: 2nd November 2002 13:50 GMT&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOCOUNT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ON&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(256),
@ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(128),
@SearchStr2 &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(110),
@SQL &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;nvarchar&lt;/span&gt;(4000),
@RCTR &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;int&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @TableName
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @SearchStr2
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'%'&lt;/span&gt; +
@SearchStr + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'%'&lt;/span&gt;,&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''''&lt;/span&gt;)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @RCTR
= 0&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @ColumnName
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @TableName
= 
&lt;br&gt;
(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;MIN&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME))&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.TABLES&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; TABLE_TYPE
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'BASE
TABLE'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME)
&amp;gt; @TableName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECTPROPERTY&lt;/span&gt;(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECT_ID&lt;/span&gt;(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_SCHEMA)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(TABLE_NAME)&lt;br&gt;
), &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'IsMSShipped'&lt;/span&gt;
&lt;br&gt;
) = 0&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; (@TableName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; (@ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @ColumnName
=&lt;br&gt;
(&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;MIN&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(COLUMN_NAME))&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; INFORMATION_SCHEMA.COLUMNS&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; TABLE_SCHEMA
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PARSENAME&lt;/span&gt;(@TableName,
2)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; TABLE_NAME
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PARSENAME&lt;/span&gt;(@TableName,
1)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; DATA_TYPE &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IN&lt;/span&gt; (&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'char'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'varchar'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'nchar'&lt;/span&gt;, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'nvarchar'&lt;/span&gt;)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(COLUMN_NAME)
&amp;gt; @ColumnName&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IF&lt;/span&gt; @ColumnName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @SQL= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'UPDATE
'&lt;/span&gt; + @TableName + 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
SET '&lt;/span&gt; + @ColumnName 
&lt;br&gt;
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
= REPLACE('&lt;/span&gt; + @ColumnName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;',
'&lt;/span&gt; 
&lt;br&gt;
+ &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(@SearchStr, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''''&lt;/span&gt;)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;',
'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;QUOTENAME&lt;/span&gt;(@ReplaceStr, &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;''''&lt;/span&gt;)
+ 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;')
WHERE '&lt;/span&gt; + @ColumnName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
LIKE '&lt;/span&gt; + @SearchStr2&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt; (@SQL)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @RCTR
= @RCTR + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;@@ROWCOUNT&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt; 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Replaced
'&lt;/span&gt; + &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CAST&lt;/span&gt;(@RCTR &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;varchar&lt;/span&gt;)
+ &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'
occurence(s)'&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Outcome'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;style type=text/css&gt;.csharpcode, .csharpcode pre
{
	font-size: small;
	color: black;
	font-family: consolas, "Courier New", courier, monospace;
	background-color: #ffffff;
	/*white-space: pre;*/
}
.csharpcode pre { margin: 0em; }
.csharpcode .rem { color: #008000; }
.csharpcode .kwrd { color: #0000ff; }
.csharpcode .str { color: #006080; }
.csharpcode .op { color: #0000c0; }
.csharpcode .preproc { color: #cc6633; }
.csharpcode .asp { background-color: #ffff00; }
.csharpcode .html { color: #800000; }
.csharpcode .attr { color: #ff0000; }
.csharpcode .alt 
{
	background-color: #f4f4f4;
	width: 100%;
	margin: 0em;
}
.csharpcode .lnum { color: #606060; }
&lt;/style&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=079d6d52-c549-41e2-9431-8e4a281414d8" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,079d6d52-c549-41e2-9431-8e4a281414d8.aspx</comments>
      <category>Development;Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=b823007e-7e41-42fb-8e18-7506c52724d6</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,b823007e-7e41-42fb-8e18-7506c52724d6.aspx</pingback:target>
      <dc:creator>Klaus Hoeltgen</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,b823007e-7e41-42fb-8e18-7506c52724d6.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=b823007e-7e41-42fb-8e18-7506c52724d6</wfw:commentRss>
      <title>little SQL-helpers: all base tables of a view </title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,b823007e-7e41-42fb-8e18-7506c52724d6.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,b823007e-7e41-42fb-8e18-7506c52724d6.aspx</link>
      <pubDate>Tue, 24 Apr 2007 12:20:16 GMT</pubDate>
      <description>To get all base tables of a view you can use the following CTE-Statement...&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=b823007e-7e41-42fb-8e18-7506c52724d6"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,b823007e-7e41-42fb-8e18-7506c52724d6.aspx</comments>
      <category>Development;Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=97cad9a1-68a9-4fd3-9ede-fae1d19b39ce</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,97cad9a1-68a9-4fd3-9ede-fae1d19b39ce.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,97cad9a1-68a9-4fd3-9ede-fae1d19b39ce.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=97cad9a1-68a9-4fd3-9ede-fae1d19b39ce</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Interested in all the new things in SP2? <a href="http://download.microsoft.com/download/2/b/5/2b5e5d37-9b17-423d-bc8f-b11ecd4195b4/WhatsNewSQL2005SP2.htm" target="_blank">Here</a> is
a complete list.
</p>
        <p>
And <a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/servicepacks/sp2.mspx" target="_blank">this</a> is
the complete <a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/servicepacks/sp2.mspx" target="_blank">download
site</a> with links for the <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=d07219b2-1e23-49c8-8f0c-63fa18f26d3a" target="_blank">SP2</a> itself,
a new <a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx" target="_blank">BOL</a>,
new <a href="http://www.microsoft.com/downloads/details.aspx?familyid=e719ecf7-9f46-4312-af89-6ad8702e4e6e&amp;displaylang=en" target="_blank">Samples</a>,
new <a href="http://www.microsoft.com/downloads/details.aspx?familyid=50b97994-8453-4998-8226-fa42ec403d17&amp;displaylang=en" target="_blank">Feature
Pack</a> and especially the links to <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=1e53f882-0c16-4847-b331-132274ae8c84" target="_blank">SQL
Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies</a> and <a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;FamilyID=7c76e8df-8674-4c3b-a99b-55b17f3c4c51" target="_blank">SQL
Server 2005 Data Mining Add-ins for Microsoft Office 2007</a>.
</p>
        <p>
To avoid a restart after the installation of the SP2 you should stop the neccessary
services which could be done with the following commands on the command line
- if you have used the standard instances:
</p>
        <p>
net stop MSSQLSERVER<br />
net stop MSSQLServerOLAPService<br />
net stop msftesql<br />
net stop MsDtsServer<br />
net stop ReportServer
</p>
        <p>
After the installation the "SQL Server 2005 User Provisioning Tool is started automatically
if you use Windows Vista. As you probably know, Windows Admins are not automatically
also SQL or AS Admins  - this tool enables to set the right privileges to the
administartor accounts.
</p>
        <p>
But do not forget to start the services before you try to set the privileges...
</p>
        <p>
If you want to add a new account you will have to start the Provisioning Tool again,
but unluckily it is not added to the Start Menu, you will find it at:<br />
C:\Program Files\Microsoft SQL Server\90\Shared\SqlProv.exe - assumed that you have
a standard installation and an english version of MS Windows Vista.
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=97cad9a1-68a9-4fd3-9ede-fae1d19b39ce" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>SQL Server 2005 Service Pack 2 available for download</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,97cad9a1-68a9-4fd3-9ede-fae1d19b39ce.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,97cad9a1-68a9-4fd3-9ede-fae1d19b39ce.aspx</link>
      <pubDate>Tue, 20 Feb 2007 01:17:05 GMT</pubDate>
      <description>&lt;p&gt;
Interested in all the new things in SP2? &lt;a href="http://download.microsoft.com/download/2/b/5/2b5e5d37-9b17-423d-bc8f-b11ecd4195b4/WhatsNewSQL2005SP2.htm" target=_blank&gt;Here&lt;/a&gt;&amp;nbsp;is
a complete list.
&lt;/p&gt;
&lt;p&gt;
And &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/servicepacks/sp2.mspx" target=_blank&gt;this&lt;/a&gt; is
the complete &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/servicepacks/sp2.mspx" target=_blank&gt;download
site&lt;/a&gt; with links for the &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=d07219b2-1e23-49c8-8f0c-63fa18f26d3a" target=_blank&gt;SP2&lt;/a&gt; itself,
a new &lt;a href="http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx" target=_blank&gt;BOL&lt;/a&gt;,
new &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=e719ecf7-9f46-4312-af89-6ad8702e4e6e&amp;amp;displaylang=en" target=_blank&gt;Samples&lt;/a&gt;,
new &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=50b97994-8453-4998-8226-fa42ec403d17&amp;amp;displaylang=en" target=_blank&gt;Feature
Pack&lt;/a&gt; and especially the&amp;nbsp;links to &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=1e53f882-0c16-4847-b331-132274ae8c84" target=_blank&gt;SQL
Server 2005 Reporting Services Add-in for Microsoft SharePoint Technologies&lt;/a&gt;&amp;nbsp;and &lt;a href="http://www.microsoft.com/downloads/details.aspx?displaylang=en&amp;amp;FamilyID=7c76e8df-8674-4c3b-a99b-55b17f3c4c51" target=_blank&gt;SQL
Server 2005 Data Mining Add-ins for Microsoft Office 2007&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
To avoid a restart after the installation of the SP2 you should stop the neccessary
services which&amp;nbsp;could be done with the following commands on the command line
- if you have used the standard instances:
&lt;/p&gt;
&lt;p&gt;
net stop MSSQLSERVER&lt;br&gt;
net stop MSSQLServerOLAPService&lt;br&gt;
net stop msftesql&lt;br&gt;
net stop MsDtsServer&lt;br&gt;
net stop ReportServer
&lt;/p&gt;
&lt;p&gt;
After the installation the "SQL Server 2005 User Provisioning Tool is started automatically
if you use Windows Vista. As you probably know, Windows Admins are not automatically
also SQL or AS Admins&amp;nbsp; - this tool enables to set the right privileges to the
administartor accounts.
&lt;/p&gt;
&lt;p&gt;
But do not forget to start the services before you try to set the privileges...
&lt;/p&gt;
&lt;p&gt;
If you want to add a new account you will have to start the Provisioning Tool again,
but unluckily it is not added to the Start Menu, you will find it at:&lt;br&gt;
C:\Program Files\Microsoft SQL Server\90\Shared\SqlProv.exe - assumed that you have
a standard installation and an english version of MS Windows Vista.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=97cad9a1-68a9-4fd3-9ede-fae1d19b39ce" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,97cad9a1-68a9-4fd3-9ede-fae1d19b39ce.aspx</comments>
      <category>MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/MSDB - Express;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS;MS WSS SPS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=827943d9-2c90-4ab5-b6ef-dd38f4acbf69</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,827943d9-2c90-4ab5-b6ef-dd38f4acbf69.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,827943d9-2c90-4ab5-b6ef-dd38f4acbf69.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=827943d9-2c90-4ab5-b6ef-dd38f4acbf69</wfw:commentRss>
      <title>SQL Server Training online ressources</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,827943d9-2c90-4ab5-b6ef-dd38f4acbf69.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,827943d9-2c90-4ab5-b6ef-dd38f4acbf69.aspx</link>
      <pubDate>Thu, 15 Feb 2007 14:41:58 GMT</pubDate>
      <description>Interested in online ressources for SQL Server Training?
Please do not forget that these ressources can not replace a complete Training and therefor only should be considered as a additional point of information...&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=827943d9-2c90-4ab5-b6ef-dd38f4acbf69"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,827943d9-2c90-4ab5-b6ef-dd38f4acbf69.aspx</comments>
      <category>MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/MSDB - Express;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=89ed0a22-6d67-4183-8543-218b094c177c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,89ed0a22-6d67-4183-8543-218b094c177c.aspx</pingback:target>
      <dc:creator>Klaus Hoeltgen</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,89ed0a22-6d67-4183-8543-218b094c177c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=89ed0a22-6d67-4183-8543-218b094c177c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I have encountered a system <span>error</span> deploying a SSAS project when I changed
the deployment from my deployment server to a new production server. As you can imagine,
the common case that really could bring you made is when you successfully deploy a
project into a development <span>server</span> but you fail to deploy the same database
into a production <span>server and</span> the <span>error</span> message is too
generic and it hides the real cause of the problem that is very hard to find:
</p>
        <p>
          <img src="http://www.fits-consulting.de/blog/content/binary/Error.gif" border="0" />
          <br />
        </p>
        <p>
I looked for the error in the connection strings, I guess network or Active
Directory problems...but every change attempt fails with the same error message: "<em>Systemerror:
."</em></p>
        <p>
The solution was a problem with a role that references a membership of a local user
of my development server, that fails because the role member name can't be resolved
by SSAS production <span>server. Thanks to microsoft for the great translation from
"Can't deploy role xyz..." to "Systemerror: ."  ;-)</span></p>
        <p>
          <span>
          </span> 
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=89ed0a22-6d67-4183-8543-218b094c177c" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Deploy SSAS with systemerror</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,89ed0a22-6d67-4183-8543-218b094c177c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,89ed0a22-6d67-4183-8543-218b094c177c.aspx</link>
      <pubDate>Tue, 30 Jan 2007 22:34:45 GMT</pubDate>
      <description>&lt;p&gt;
I have encountered a system &lt;span&gt;error&lt;/span&gt; deploying a SSAS project when I changed
the deployment from my deployment server to a new production server. As you can imagine,
the common case that really could bring you made is when you successfully deploy a
project into a development &lt;span&gt;server&lt;/span&gt; but you fail to deploy the same database
into a production &lt;span&gt;server and&lt;/span&gt;&amp;nbsp;the &lt;span&gt;error&lt;/span&gt; message is too
generic and it hides the real cause of the problem that is very hard to find:
&lt;/p&gt;
&lt;p&gt;
&lt;img src="http://www.fits-consulting.de/blog/content/binary/Error.gif" border=0&gt;
&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
I looked for the error&amp;nbsp;in the connection strings, I guess network&amp;nbsp;or Active
Directory problems...but every change attempt fails with the same error message: "&lt;em&gt;Systemerror:
."&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
The solution was a problem with a role that references a membership of a local user
of my development server, that fails because the role member name can't be resolved
by SSAS production &lt;span&gt;server. Thanks to microsoft for the great translation from
"Can't deploy role xyz..." to "Systemerror: ."&amp;nbsp; ;-)&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span&gt;&lt;/span&gt;&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=89ed0a22-6d67-4183-8543-218b094c177c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,89ed0a22-6d67-4183-8543-218b094c177c.aspx</comments>
      <category>Development;MS SQL Server;MS SQL Server/AS - SSAS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=f76b7bbe-7786-471b-82fd-d7eac1c0220c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,f76b7bbe-7786-471b-82fd-d7eac1c0220c.aspx</pingback:target>
      <dc:creator>Klaus Hoeltgen</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,f76b7bbe-7786-471b-82fd-d7eac1c0220c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=f76b7bbe-7786-471b-82fd-d7eac1c0220c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
HowTo install Reporting Services on server with more than one website:<br /><br /><a href="http://www.atrevido.net/blog/PermaLink.aspx?guid=3f1a7332-e4e1-4dda-be02-527bfe07e98c">http://www.atrevido.net/blog/PermaLink.aspx?guid=3f1a7332-e4e1-4dda-be02-527bfe07e98c</a></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=f76b7bbe-7786-471b-82fd-d7eac1c0220c" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>SQL Server 2005 Reporting Services on a server with more than one website</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,f76b7bbe-7786-471b-82fd-d7eac1c0220c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,f76b7bbe-7786-471b-82fd-d7eac1c0220c.aspx</link>
      <pubDate>Thu, 28 Dec 2006 13:15:04 GMT</pubDate>
      <description>&lt;p&gt;
HowTo install Reporting Services on server with more than one website:&lt;br&gt;
&lt;br&gt;
&lt;a href="http://www.atrevido.net/blog/PermaLink.aspx?guid=3f1a7332-e4e1-4dda-be02-527bfe07e98c"&gt;http://www.atrevido.net/blog/PermaLink.aspx?guid=3f1a7332-e4e1-4dda-be02-527bfe07e98c&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=f76b7bbe-7786-471b-82fd-d7eac1c0220c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,f76b7bbe-7786-471b-82fd-d7eac1c0220c.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=c37a98e3-46af-46df-a240-5a1322593248</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,c37a98e3-46af-46df-a240-5a1322593248.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,c37a98e3-46af-46df-a240-5a1322593248.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=c37a98e3-46af-46df-a240-5a1322593248</wfw:commentRss>
      <title>Free E-Learning courses from Microsoft</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,c37a98e3-46af-46df-a240-5a1322593248.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,c37a98e3-46af-46df-a240-5a1322593248.aspx</link>
      <pubDate>Thu, 16 Nov 2006 05:33:53 GMT</pubDate>
      <description>Free E-Learning courses from Microsoft:
- SQL Server 2005
- Sharepoint Technology
- Visual Studio 2005 and .Net 3.0&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=c37a98e3-46af-46df-a240-5a1322593248"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,c37a98e3-46af-46df-a240-5a1322593248.aspx</comments>
      <category>Development;Development/.Net;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS;MS WSS SPS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=eb7d1acd-7a50-470d-a1e9-d1095ac922ed</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,eb7d1acd-7a50-470d-a1e9-d1095ac922ed.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,eb7d1acd-7a50-470d-a1e9-d1095ac922ed.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=eb7d1acd-7a50-470d-a1e9-d1095ac922ed</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Sorry, German only...
</p>
        <p>
Microsoft bietet zum Thema "SQL Server 2005 – optimaler Einsatz in SAP-Umgebungen"
ein kostenfreies <a href="http://www.microsoft.com/germany/technet/seminare/2006/sap_sqlserver2005.mspx" target="_blank">TechNet
Seminar</a> in verschiedenen deutschen Städten an.
</p>
        <p>
Referenten sind:
</p>
        <ul>
          <li>
Martin Sudbrock – Partner Account Manager, Microsoft Deutschland GmbH 
</li>
          <li>
Guido Schmitt – Senior Consultant, Microsoft Deutschland GmbH</li>
        </ul>
        <p>
Beschreibungstext von der Webseite:
</p>
        <p>
"Die Microsoft-Plattform ist die Standard-Plattform für SAP-Lösungen. Immer mehr SAP-Kunden
entscheiden sich für Microsoft und damit für die seit zwei Jahren bewährte Mehrheitsplattform
im Datenbankumfeld bei SAP-Neuinstallationen. Inzwischen erfolgen zwei von drei SAP-Neuimplementierungen
auf Windows Server 2003 und mehr als 42 Prozent auf SQL Server 2005.
</p>
        <p>
SQL Server 2005 ist die zukunftssichere Datenmanagementplattform für hochverfügbare,
leistungsfähige und zuverlässige Installationen von SAP-Lösungen. 
</p>
        <p>
In diesem Seminar geben wir Ihnen einen Überblick, wie Sie SQL Server 2005 optimal
in einer SAP-Umgebung einsetzen können. Die Schwerpunkte des Seminars sind: 
</p>
        <ul>
          <li>
Skalierbarkeit und Performance von SQL Server 2005 für SAP-Anwendungen 
</li>
          <li>
Hochverfügbarkeit von SQL Server 2005 für SAP 
</li>
          <li>
Konfiguration von SQL Server 2005 für SAP 
</li>
          <li>
SQL Server 2005 als Datenmanagementplattform für SAP 
</li>
          <li>
Migration auf SQL Server 2005 im SAP-Umfeld"</li>
        </ul>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=eb7d1acd-7a50-470d-a1e9-d1095ac922ed" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>TechNet Seminar: SQL Server 2005 -optimaler Einsatz in SAP-Umgebungen</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,eb7d1acd-7a50-470d-a1e9-d1095ac922ed.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,eb7d1acd-7a50-470d-a1e9-d1095ac922ed.aspx</link>
      <pubDate>Fri, 10 Nov 2006 01:09:33 GMT</pubDate>
      <description>&lt;p&gt;
Sorry,&amp;nbsp;German only...
&lt;/p&gt;
&lt;p&gt;
Microsoft bietet zum Thema "SQL Server 2005 – optimaler Einsatz in SAP-Umgebungen"
ein kostenfreies &lt;a href="http://www.microsoft.com/germany/technet/seminare/2006/sap_sqlserver2005.mspx" target="_blank"&gt;TechNet
Seminar&lt;/a&gt; in verschiedenen deutschen Städten an.
&lt;/p&gt;
&lt;p&gt;
Referenten sind:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Martin Sudbrock – Partner Account Manager, Microsoft Deutschland GmbH 
&lt;li&gt;
Guido Schmitt – Senior Consultant, Microsoft Deutschland GmbH&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
Beschreibungstext von der Webseite:
&lt;/p&gt;
&lt;p&gt;
"Die Microsoft-Plattform ist die Standard-Plattform für SAP-Lösungen. Immer mehr SAP-Kunden
entscheiden sich für Microsoft und damit für die seit zwei Jahren bewährte Mehrheitsplattform
im Datenbankumfeld bei SAP-Neuinstallationen. Inzwischen erfolgen zwei von drei SAP-Neuimplementierungen
auf Windows Server 2003 und mehr als 42 Prozent auf SQL Server 2005.
&lt;/p&gt;
&lt;p&gt;
SQL Server 2005 ist die zukunftssichere Datenmanagementplattform für hochverfügbare,
leistungsfähige und zuverlässige Installationen von SAP-Lösungen. 
&lt;p&gt;
In diesem Seminar geben wir Ihnen einen Überblick, wie Sie SQL Server 2005 optimal
in einer SAP-Umgebung einsetzen können. Die Schwerpunkte des Seminars sind: 
&lt;ul&gt;
&lt;li&gt;
Skalierbarkeit und Performance von SQL Server 2005 für SAP-Anwendungen 
&lt;li&gt;
Hochverfügbarkeit von SQL Server 2005 für SAP 
&lt;li&gt;
Konfiguration von SQL Server 2005 für SAP 
&lt;li&gt;
SQL Server 2005 als Datenmanagementplattform für SAP 
&lt;li&gt;
Migration auf SQL Server 2005 im SAP-Umfeld"&lt;/li&gt;
&lt;/ul&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=eb7d1acd-7a50-470d-a1e9-d1095ac922ed" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,eb7d1acd-7a50-470d-a1e9-d1095ac922ed.aspx</comments>
      <category>MS SQL Server;SAP</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=ecf7cb50-d844-44b0-a59d-154c0da87635</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,ecf7cb50-d844-44b0-a59d-154c0da87635.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,ecf7cb50-d844-44b0-a59d-154c0da87635.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=ecf7cb50-d844-44b0-a59d-154c0da87635</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Sorry, German only...
</p>
        <p>
PASS Deutschland e.V. bietet wieder eine interesssante Veranstaltung an und wir starten
damit eine neue Reihe, die PASS Essentials. Ziel dieser Veranstaltung ist die Grundlagenvermittlung
in einem spezifischen Thema des SQL Server 2005 innerhalb eines Tages mit einer begrenzten
Anzahl an Teilnehmern und mit einen hohen Anteil Hands-On-Labs.
</p>
        <p>
Los geht es mit dem "DBA StartUp", einem eintägigen Überblick über Installation,Backup
&amp; Restore, der am 23.November 2006 von 09.00 - 18.00 Uhr bei Microsoft in Bad
Homburg stattfindet
</p>
        <p>
Speaker ist mein hochgeschätzter PASS-Vorstandskollege Ralf Dietrich:<br />
"Ralf Dietrich ist seit 1998 als Trainer und Consultant für Microsoft Betriebssysteme<br />
und Datenbanken tätig. Als MCT, MCSE (Security) und MCITP für SQL Server<br />
liegt sein Fokus in der Performanceanalyse und im Data Warehouse Design. Mit<br />
Microsoft SQL Server 2005 beschäftigt er sich seit Mitte Juli 2003. Ihm liegen<br />
sichere Servernetze &amp; SQL-Server Installationen besonders am Herzen."
</p>
        <p>
Hier der entsprechende Flyer <a href="http://www.fits-consulting.de/blog/content/binary/PASSEssentials_DBAStartup.pdf">PASSEssentials_DBAStartup.pdf
(40.42 KB)</a> mit mehr Informationen.
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ecf7cb50-d844-44b0-a59d-154c0da87635" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>PASS Essentials: DBA StartUp</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,ecf7cb50-d844-44b0-a59d-154c0da87635.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,ecf7cb50-d844-44b0-a59d-154c0da87635.aspx</link>
      <pubDate>Wed, 08 Nov 2006 15:28:52 GMT</pubDate>
      <description>&lt;p&gt;
Sorry,&amp;nbsp;German only...
&lt;/p&gt;
&lt;p&gt;
PASS Deutschland e.V. bietet wieder eine interesssante Veranstaltung an und wir starten
damit eine neue Reihe, die PASS Essentials. Ziel dieser Veranstaltung ist die Grundlagenvermittlung
in einem spezifischen Thema des SQL Server 2005 innerhalb eines Tages mit einer begrenzten
Anzahl an Teilnehmern und mit einen hohen Anteil Hands-On-Labs.
&lt;/p&gt;
&lt;p&gt;
Los geht es mit&amp;nbsp;dem "DBA StartUp", einem eintägigen Überblick über Installation,Backup
&amp;amp; Restore, der am 23.November 2006 von 09.00 - 18.00 Uhr bei Microsoft in Bad
Homburg stattfindet
&lt;/p&gt;
&lt;p&gt;
Speaker ist mein hochgeschätzter PASS-Vorstandskollege Ralf Dietrich:&lt;br&gt;
"Ralf Dietrich ist seit 1998 als Trainer und Consultant für Microsoft Betriebssysteme&lt;br&gt;
und Datenbanken tätig. Als MCT, MCSE (Security) und MCITP für SQL Server&lt;br&gt;
liegt sein Fokus in der Performanceanalyse und im Data Warehouse Design. Mit&lt;br&gt;
Microsoft SQL Server 2005 beschäftigt er sich seit Mitte Juli 2003. Ihm liegen&lt;br&gt;
sichere Servernetze &amp;amp; SQL-Server Installationen besonders am Herzen."
&lt;/p&gt;
&lt;p&gt;
Hier der&amp;nbsp;entsprechende Flyer &lt;a href="http://www.fits-consulting.de/blog/content/binary/PASSEssentials_DBAStartup.pdf"&gt;PASSEssentials_DBAStartup.pdf
(40.42 KB)&lt;/a&gt;&amp;nbsp;mit mehr Informationen.
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=ecf7cb50-d844-44b0-a59d-154c0da87635" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,ecf7cb50-d844-44b0-a59d-154c0da87635.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RDBMS;PASS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=8f13c933-6264-4689-add9-70999536fa71</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,8f13c933-6264-4689-add9-70999536fa71.aspx</pingback:target>
      <dc:creator>Klaus Hoeltgen</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,8f13c933-6264-4689-add9-70999536fa71.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=8f13c933-6264-4689-add9-70999536fa71</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
This article shows how easy it really is to <a href="http://blogs.sqlxml.org/bryantlikes/articles/824.aspx" target="_blank">write
custom code</a> for SQL Server Reporting Services
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=8f13c933-6264-4689-add9-70999536fa71" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Writing Custom Code in SQL Server Reporting Services</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,8f13c933-6264-4689-add9-70999536fa71.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,8f13c933-6264-4689-add9-70999536fa71.aspx</link>
      <pubDate>Wed, 08 Nov 2006 00:40:08 GMT</pubDate>
      <description>&lt;p&gt;
This article shows how easy it really is to &lt;a href="http://blogs.sqlxml.org/bryantlikes/articles/824.aspx" target=_blank&gt;write
custom code&lt;/a&gt; for SQL Server Reporting Services
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=8f13c933-6264-4689-add9-70999536fa71" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,8f13c933-6264-4689-add9-70999536fa71.aspx</comments>
      <category>Development;Development/.Net;MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=a1179a96-7394-457b-bff5-c7efca6bd6fa</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,a1179a96-7394-457b-bff5-c7efca6bd6fa.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,a1179a96-7394-457b-bff5-c7efca6bd6fa.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a1179a96-7394-457b-bff5-c7efca6bd6fa</wfw:commentRss>
      <title>System Views in SQL Server 2005</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,a1179a96-7394-457b-bff5-c7efca6bd6fa.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,a1179a96-7394-457b-bff5-c7efca6bd6fa.aspx</link>
      <pubDate>Wed, 25 Oct 2006 22:00:30 GMT</pubDate>
      <description>You will find a complete overview for the System Views at http://msdn2.microsoft.com/en-us/library/ms177862.aspx.

The most usefull ones of the Catalog Views probably will be

Object Catalog Views
Security Catalog Views
To query metadata you will have to use the Information Schema Views.

If you need some hints on how to use the SQL Server System Catalog have a look at Querying the SQL Server System Catalog and the Querying the SQL Server System Catalog FAQ for some examples.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=a1179a96-7394-457b-bff5-c7efca6bd6fa"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,a1179a96-7394-457b-bff5-c7efca6bd6fa.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=e3f1cf4a-f9d6-44d8-86e5-84a59531f87c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,e3f1cf4a-f9d6-44d8-86e5-84a59531f87c.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,e3f1cf4a-f9d6-44d8-86e5-84a59531f87c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=e3f1cf4a-f9d6-44d8-86e5-84a59531f87c</wfw:commentRss>
      <title>Brian Welcker: Updating Linked Report Page Settings [Updated...]</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,e3f1cf4a-f9d6-44d8-86e5-84a59531f87c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,e3f1cf4a-f9d6-44d8-86e5-84a59531f87c.aspx</link>
      <pubDate>Sun, 03 Sep 2006 19:02:18 GMT</pubDate>
      <description>Brian Welcker has published a coding to programmatically set the page size properties of a linked report.

The feature doing linked reports worked well in Reporting Services 2000, because the linked report got the page settings from the original report but in RS 2005 this feature just was "forgotten", as Brian admits in this article.

The following content is intellectual property of Brian Welcker, the original posting can be found here&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=e3f1cf4a-f9d6-44d8-86e5-84a59531f87c"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,e3f1cf4a-f9d6-44d8-86e5-84a59531f87c.aspx</comments>
      <category>Development/.Net;MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=853ce370-e07b-43e0-9664-0829cc6041cc</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,853ce370-e07b-43e0-9664-0829cc6041cc.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,853ce370-e07b-43e0-9664-0829cc6041cc.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=853ce370-e07b-43e0-9664-0829cc6041cc</wfw:commentRss>
      <title>Brett Kaiser: How do I track data changes in a database</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,853ce370-e07b-43e0-9664-0829cc6041cc.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,853ce370-e07b-43e0-9664-0829cc6041cc.aspx</link>
      <pubDate>Sun, 27 Aug 2006 14:09:14 GMT</pubDate>
      <description>Brett Kaiser has posted a article called "How do I track data changes in a database" including his real usefull coding about his idea of doing this via T-SQL automatically erver time a DELETE or UPDATE Modification will be done.

The following content is intellectual property of Brett Kaiser, the original posting can be found here:&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=853ce370-e07b-43e0-9664-0829cc6041cc"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,853ce370-e07b-43e0-9664-0829cc6041cc.aspx</comments>
      <category>Development;Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9</wfw:commentRss>
      <title>Common table expression (CTE) in SQL Server 2005</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9.aspx</link>
      <pubDate>Sun, 27 Aug 2006 13:39:40 GMT</pubDate>
      <description>Nigel Rivett has published an interesting detailed article about common table expressions in SQL Server 2005 on simple-talk.com.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,fd1448c3-2bfc-4d7c-b58b-70f84e71f6a9.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=09a62245-9c7f-4d2a-aee2-7f30bbdee1c6</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,09a62245-9c7f-4d2a-aee2-7f30bbdee1c6.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,09a62245-9c7f-4d2a-aee2-7f30bbdee1c6.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=09a62245-9c7f-4d2a-aee2-7f30bbdee1c6</wfw:commentRss>
      <title>SMO - a little introduction</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,09a62245-9c7f-4d2a-aee2-7f30bbdee1c6.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,09a62245-9c7f-4d2a-aee2-7f30bbdee1c6.aspx</link>
      <pubDate>Fri, 25 Aug 2006 13:55:09 GMT</pubDate>
      <description>Definition from the SQL Server 2005 Product Guide:

"SQL Server Management Objects (SMO) is the management object model for SQL Server 2005. SMO represents significant design and architectural improvements for the SQL Server management object model. It is a simple to use but rich object model that is based on .NET Framework managed code. SMO is the primary tool for developing database management applications using the .NET Framework. SMO is used extensively by SQL Server Management Studio. Every administrative action that you can perform in SQL Server Management Studio, you can also accomplish by using SMO.
The new SMO object model and the WMI APIs replace SQL-DMO. Where possible, SMO incorporates similar objects as those in SQL-DMO for ease of use. You can still use SQL Server 2005 with SQL-DMO, but SQL-DMO will not be updated to manage features that are specific to SQL Server 2005.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=09a62245-9c7f-4d2a-aee2-7f30bbdee1c6"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,09a62245-9c7f-4d2a-aee2-7f30bbdee1c6.aspx</comments>
      <category>Development/.Net;MS SQL Server;MS SQL Server/RDBMS;Tools</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=4f42c907-3e39-4283-a4fb-c3e536ce2ceb</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,4f42c907-3e39-4283-a4fb-c3e536ce2ceb.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,4f42c907-3e39-4283-a4fb-c3e536ce2ceb.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=4f42c907-3e39-4283-a4fb-c3e536ce2ceb</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://www.sql-server-performance.com/randy_dyess.asp" target="_blank">Randy
Dyess</a> has published an article called <a href="http://www.sql-server-performance.com/rd_auditing2.asp" target="_blank">"Auditing
Your SQL Server Environment: Part II (Reviewing Role Memberships)"</a></p>
        <p>
The following content is intellectual property of Randy Dyess, the original posting
can be found <a href="http://www.sql-server-performance.com/rd_auditing2.asp" target="_blank">here</a>:
</p>
        <p>
          <font color="#808080">"Roles should be in foremost in your mind when planning the
security of your SQL Server environments. Auditing inherited SQL Server installations
is a relatively easy thing to accomplish, and all DBAs should audit their environment
and create documentation if they have not already done so. Once you can document the
logins assigned to each of your fixed and user-defined roles, you can start to remove
any duplication of permissions which can reduce the time needed to troubleshoot future
permission errors."</font>
        </p>
        <p>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Use
the master database</span>
            <br />
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">USE</span> master<br />
go<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IF</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECT_ID</span>(<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo.spRoleMembers'</span>) <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DROP</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROCEDURE</span> dbo.spRoleMembers<br />
GO<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROCEDURE</span> dbo.spRoleMembers<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">/************************************************************ 
<br />
Creation Date: 04/28/02 Created By: Randy Dyess<br />
Web Site: www.TransactSQL.Com<br />
Email: RandyDyess@TransactSQL.Com<br />
Purpose: Loops through all databases and obtains member<br />
for database roles as well as server role members.<br />
Location: master database<br />
Output Parameters: None<br />
Return Status: None<br />
Called By: None 
<br />
Calls: None<br />
Data Modifications: None<br />
Updates: 
<br />
None 
<br /><br />
************************************************************/</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOCOUNT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ON</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Variables</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @lngCounter
INTEGER<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @strSQL <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NVARCHAR</span>(4000)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Temp
table to hold database and user-define role user names</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">TABLE</span> #tRolemember<br />
(<br />
strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50) <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DEFAULT</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">@@SERVERNAME</span><br />
,strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50) 
<br />
,strRoleName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br />
,strUserName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br />
,strUserID <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(100)<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Temp
table to hold database names</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">TABLE</span> #tDBNames<br />
(lngID INTEGER <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IDENTITY</span>(1,1)<br />
,strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Create
permanent table</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IF</span><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECT_ID</span> (<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo.tRolemember'</span>) <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">TABLE</span> dbo.tRolemember<br />
(<br />
strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50) 
<br />
,strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50) 
<br />
,strRoleName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br />
,strUserName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(50)<br />
,strUserID <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(100)<br />
)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Obtain
members of each server role</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INSERT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INTO</span> #tRolemember
(strRoleName, strUserName, strUserID)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span> dbo.sp_helpsrvrolemember<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Obtain
database names</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INSERT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INTO</span> #tDBNames
(strDBName)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> name <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> master.dbo.<span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">sysdatabases</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">@@ROWCOUNT</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Loop
through databases to obtain members of database roles and user-defined roles</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @lngCounter
&gt; 0<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Get
database name from temp table</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @strDBName
= (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tDBNames <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> lngID
= @lngCounter)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Obtain
members of each database and user-defined role</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @strSQL
= <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'INSERT
INTO #tRolemember (strRoleName, strUserName, strUserID)<br />
EXEC '</span> + @strDBName + <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'.dbo.sp_helprolemember'</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span><span style="FONT-SIZE: 11px; COLOR: brown; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">sp_executesql</span> @strSQL<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Update
database name in temp table</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">UPDATE</span> #tRolemember<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> strDBName
= @strDBName<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> strDBName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= @lngCounter - 1<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Place
data into permanent table</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INSERT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INTO</span> tRolemember<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> trm.* <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tRolemember
trm<br /><span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">LEFT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">JOIN</span> tRoleMember
prm<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ON</span> trm.strUserName
= prm.strUserName<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> trm.strDBName
= prm.strDBName<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> trm.strRoleName
= prm.strRoleName<br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> trm.strServerName
= prm.strServerName<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> prm.strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><br />
GO<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Test
Stored Procedure</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span> dbo.spRoleMembers<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Display
by User'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strUserName,
strDBName, strRoleName, strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> tRolemember<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> strUserName
&lt;&gt; <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ORDER</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BY</span> strUserName<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Display
by Role'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strRoleName,
strDBName, strUserName,strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> tRolemember<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> strUserName
&lt;&gt; <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ORDER</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BY</span> strRoleName<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Display
by Database'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strDBName,
strRoleName,strUserName, strServerName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> tRolemember<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> strUserName
&lt;&gt; <span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ORDER</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BY</span> strDBName</span>
        </p>
        <p>
          <hr width="75%" color="#c0c0c0" size="1" />
        </p>
        <p>
        </p>
        <p>
Randy also has published a script about auditing user's passwords
</p>
        <p>
The following content is intellectual property of Randy Dyess, the original posting
can be found <a href="http://www.database-security.info/Tools/SQLServer/spAuditPasswords.txt" target="_blank">here</a>:
</p>
        <p>
          <span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">
            <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IF</span>
            <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">OBJECT_ID</span>(<span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'dbo.spAuditPasswords'</span>) <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOT</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DROP</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROCEDURE</span> dbo.spAuditPasswords<br />
GO<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PROCEDURE</span> dbo.spAuditPasswords<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">/**************************************************************************** 
<br />
Creation Date: 03/22/02 Created By: Randy Dyess<br />
Web Site: www.TransactSQL.Com<br />
Email: RandyDyess@TransactSQL.Com<br />
Purpose: Perform a simple audit of user's passwords<br />
Location: master database<br />
Output Parameters: None<br />
Return Status: None<br />
Called By: None 
<br />
Calls: None<br />
Data Modifications: None<br />
Updates: None 
<br />
Date Author Purpose 
<br />
---------- -------------------------- --------------------------------- 
<br />
****************************************************************************/</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NOCOUNT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">ON</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Variables</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @lngCounter
INTEGER<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @lngCounter1
INTEGER<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @lngLogCount
INTEGER<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">DECLARE</span> @strName <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">VARCHAR</span>(256)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Create
table to hold SQL logins</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CREATE</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">TABLE</span> #tLogins<br />
(<br />
numID INTEGER <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IDENTITY</span>(1,1)<br />
,strLogin <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SYSNAME</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br />
,lngPass INTEGER <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br />
)<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Insert
non ntuser into temp table</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INSERT</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">INTO</span> #tLogins
(strLogin)<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> name <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> master.dbo.<span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">syslogins</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> isntname
= 0<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngLogCount
= <span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">@@ROWCOUNT</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Determine
if password is null and user iis SQL Login</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'The
following logins have blank passwords'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> name <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Login
Name'</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> master.dbo.<span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">syslogins</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> password <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">IS</span><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">NULL</span><br /><span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> isntname
= 0<br /><br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Determine
if password and name are the ssame</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= @lngLogCount<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @lngCounter
&lt;&gt; 0<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @strName
= (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strLogin <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tLogins <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> numID
= @lngCounter)<br /><br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">UPDATE</span> #tLogins<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> lngPass
= (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> PWDCOMPARE
(@strName,(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> password <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> master.dbo.<span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">syslogins</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> name
= @strName))) 
<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> numID
= @lngCounter<br /><br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= @lngCounter - 1<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'The
following logins have passwords the same as their login name'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strLogin <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Login
Name'</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tLogins <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> lngPass
= 1<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Reset
column for next password test</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">UPDATE</span> #tLogins<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> lngPass
= 0<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Determine
if password is only one characcter long</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= @lngLogCount<br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @lngCounter
&lt;&gt; 0<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter1
= 1<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @strName
= (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strLogin <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tLogins <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> numID
= @lngCounter)<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHILE</span> @lngCounter1
&lt; 256<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">BEGIN</span><br />
        <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">UPDATE</span> #tLogins<br />
        <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> lngPass
= (<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> PWDCOMPARE
(<span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">CHAR</span>(@lngCounter1),(<span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> password <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> master.dbo.<span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">syslogins</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> name
= @strName))) 
<br />
        <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> numID
= @lngCounter<br />
        <span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AND</span> lngPass
&lt;&gt; 1<br />
        <br />
        <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter1
= @lngCounter1 + 1<br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br />
    <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SET</span> @lngCounter
= @lngCounter - 1<br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">END</span><br /><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">PRINT</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'The
following logins have one character passwords'</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">SELECT</span> strLogin <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">AS</span><span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">'Login
Name'</span><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">FROM</span> #tLogins <span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">WHERE</span> lngPass
= 1<br />
GO<br /><br /><span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">--Test</span><br /><span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent">EXEC</span> dbo.spAuditPasswords</span>
        </p>
        <p>
          <hr width="75%" color="#c0c0c0" size="1" />
        </p>
        <p>
        </p>
        <p>
And last but not least Bradley Morris has published an article about <a href="http://www.sql-server-performance.com/bm_object_permission_scripts.asp">"How
to Script User and Role Object Permissions in SQL Server"</a></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=4f42c907-3e39-4283-a4fb-c3e536ce2ceb" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>some SQL Server scripts regarding security </title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,4f42c907-3e39-4283-a4fb-c3e536ce2ceb.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,4f42c907-3e39-4283-a4fb-c3e536ce2ceb.aspx</link>
      <pubDate>Fri, 25 Aug 2006 13:19:02 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a href="http://www.sql-server-performance.com/randy_dyess.asp" target=_blank&gt;Randy
Dyess&lt;/a&gt; has published an article called &lt;a href="http://www.sql-server-performance.com/rd_auditing2.asp" target=_blank&gt;"Auditing
Your SQL Server Environment: Part II (Reviewing Role Memberships)"&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
The following content is intellectual property of Randy Dyess, the original posting
can be found &lt;a href="http://www.sql-server-performance.com/rd_auditing2.asp" target=_blank&gt;here&lt;/a&gt;:
&lt;/p&gt;
&lt;p&gt;
&lt;font color=#808080&gt;"Roles should be in foremost in your mind when planning the security
of your SQL Server environments. Auditing inherited SQL Server installations is a
relatively easy thing to accomplish, and all DBAs should audit their environment and
create documentation if they have not already done so. Once you can document the logins
assigned to each of your fixed and user-defined roles, you can start to remove any
duplication of permissions which can reduce the time needed to troubleshoot future
permission errors."&lt;/font&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Use
the master database&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;USE&lt;/span&gt; master&lt;br&gt;
go&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IF&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECT_ID&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo.spRoleMembers'&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DROP&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROCEDURE&lt;/span&gt; dbo.spRoleMembers&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROCEDURE&lt;/span&gt; dbo.spRoleMembers&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;/************************************************************ 
&lt;br&gt;
Creation Date: 04/28/02 Created By: Randy Dyess&lt;br&gt;
Web Site: www.TransactSQL.Com&lt;br&gt;
Email: RandyDyess@TransactSQL.Com&lt;br&gt;
Purpose: Loops through all databases and obtains member&lt;br&gt;
for database roles as well as server role members.&lt;br&gt;
Location: master database&lt;br&gt;
Output Parameters: None&lt;br&gt;
Return Status: None&lt;br&gt;
Called By: None 
&lt;br&gt;
Calls: None&lt;br&gt;
Data Modifications: None&lt;br&gt;
Updates: 
&lt;br&gt;
None 
&lt;br&gt;
&lt;br&gt;
************************************************************/&lt;/span&gt; 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOCOUNT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ON&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Variables&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @lngCounter
INTEGER&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @strSQL &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NVARCHAR&lt;/span&gt;(4000)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Temp
table to hold database and user-define role user names&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TABLE&lt;/span&gt; #tRolemember&lt;br&gt;
(&lt;br&gt;
strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DEFAULT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;@@SERVERNAME&lt;/span&gt;
&lt;br&gt;
,strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50) 
&lt;br&gt;
,strRoleName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
,strUserName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
,strUserID &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(100)&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Temp
table to hold database names&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TABLE&lt;/span&gt; #tDBNames&lt;br&gt;
(lngID INTEGER &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IDENTITY&lt;/span&gt;(1,1)&lt;br&gt;
,strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Create
permanent table&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IF&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECT_ID&lt;/span&gt; (&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo.tRolemember'&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TABLE&lt;/span&gt; dbo.tRolemember&lt;br&gt;
(&lt;br&gt;
strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50) 
&lt;br&gt;
,strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50) 
&lt;br&gt;
,strRoleName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
,strUserName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(50)&lt;br&gt;
,strUserID &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(100)&lt;br&gt;
)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Obtain
members of each server role&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INSERT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INTO&lt;/span&gt; #tRolemember
(strRoleName, strUserName, strUserID)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt; dbo.sp_helpsrvrolemember&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Obtain
database names&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INSERT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INTO&lt;/span&gt; #tDBNames
(strDBName)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; name &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; master.dbo.&lt;span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;sysdatabases&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;@@ROWCOUNT&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Loop
through databases to obtain members of database roles and user-defined roles&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @lngCounter
&amp;gt; 0&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Get
database name from temp table&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @strDBName
= (&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tDBNames &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; lngID
= @lngCounter)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Obtain
members of each database and user-defined role&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @strSQL
= &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'INSERT
INTO #tRolemember (strRoleName, strUserName, strUserID)&lt;br&gt;
EXEC '&lt;/span&gt; + @strDBName + &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'.dbo.sp_helprolemember'&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: brown; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;sp_executesql&lt;/span&gt; @strSQL&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Update
database name in temp table&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;UPDATE&lt;/span&gt; #tRolemember&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; strDBName
= @strDBName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; strDBName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= @lngCounter - 1&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Place
data into permanent table&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INSERT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INTO&lt;/span&gt; tRolemember&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; trm.* &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tRolemember
trm&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;LEFT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;JOIN&lt;/span&gt; tRoleMember
prm&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ON&lt;/span&gt; trm.strUserName
= prm.strUserName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; trm.strDBName
= prm.strDBName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; trm.strRoleName
= prm.strRoleName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; trm.strServerName
= prm.strServerName&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; prm.strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Test
Stored Procedure&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt; dbo.spRoleMembers&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Display
by User'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strUserName,
strDBName, strRoleName, strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; tRolemember&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; strUserName
&amp;lt;&amp;gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ORDER&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BY&lt;/span&gt; strUserName&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Display
by Role'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strRoleName,
strDBName, strUserName,strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; tRolemember&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; strUserName
&amp;lt;&amp;gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ORDER&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BY&lt;/span&gt; strRoleName&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Display
by Database'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strDBName,
strRoleName,strUserName, strServerName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; tRolemember&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; strUserName
&amp;lt;&amp;gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ORDER&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BY&lt;/span&gt; strDBName&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;hr width="75%" color=#c0c0c0 size=1&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
Randy also has published a script about auditing user's passwords
&lt;/p&gt;
&lt;p&gt;
The following content is intellectual property of Randy Dyess, the original posting
can be found &lt;a href="http://www.database-security.info/Tools/SQLServer/spAuditPasswords.txt" target=_blank&gt;here&lt;/a&gt;:
&lt;/p&gt;
&lt;p&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: black; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IF&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;OBJECT_ID&lt;/span&gt;(&lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'dbo.spAuditPasswords'&lt;/span&gt;) &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DROP&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROCEDURE&lt;/span&gt; dbo.spAuditPasswords&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PROCEDURE&lt;/span&gt; dbo.spAuditPasswords&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;/**************************************************************************** 
&lt;br&gt;
Creation Date: 03/22/02 Created By: Randy Dyess&lt;br&gt;
Web Site: www.TransactSQL.Com&lt;br&gt;
Email: RandyDyess@TransactSQL.Com&lt;br&gt;
Purpose: Perform a simple audit of user's passwords&lt;br&gt;
Location: master database&lt;br&gt;
Output Parameters: None&lt;br&gt;
Return Status: None&lt;br&gt;
Called By: None 
&lt;br&gt;
Calls: None&lt;br&gt;
Data Modifications: None&lt;br&gt;
Updates: None 
&lt;br&gt;
Date Author Purpose 
&lt;br&gt;
---------- -------------------------- --------------------------------- 
&lt;br&gt;
****************************************************************************/&lt;/span&gt; 
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NOCOUNT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;ON&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Variables&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @lngCounter
INTEGER&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @lngCounter1
INTEGER&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @lngLogCount
INTEGER&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;DECLARE&lt;/span&gt; @strName &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;VARCHAR&lt;/span&gt;(256)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Create
table to hold SQL logins&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CREATE&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;TABLE&lt;/span&gt; #tLogins&lt;br&gt;
(&lt;br&gt;
numID INTEGER &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IDENTITY&lt;/span&gt;(1,1)&lt;br&gt;
,strLogin &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SYSNAME&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
,lngPass INTEGER &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
)&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Insert
non ntuser into temp table&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INSERT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;INTO&lt;/span&gt; #tLogins
(strLogin)&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; name &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; master.dbo.&lt;span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;syslogins&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; isntname
= 0&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngLogCount
= &lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;@@ROWCOUNT&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Determine
if password is null and user iis SQL Login&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'The
following logins have blank passwords'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; name &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Login
Name'&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; master.dbo.&lt;span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;syslogins&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; password &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;IS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;NULL&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; isntname
= 0&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Determine
if password and name are the ssame&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= @lngLogCount&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @lngCounter
&amp;lt;&amp;gt; 0&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @strName
= (&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strLogin &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tLogins &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; numID
= @lngCounter)&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;UPDATE&lt;/span&gt; #tLogins&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; lngPass
= (&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; PWDCOMPARE
(@strName,(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; password &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; master.dbo.&lt;span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;syslogins&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; name
= @strName))) 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; numID
= @lngCounter&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= @lngCounter - 1&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'The
following logins have passwords the same as their login name'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strLogin &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Login
Name'&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tLogins &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; lngPass
= 1&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Reset
column for next password test&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;UPDATE&lt;/span&gt; #tLogins&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; lngPass
= 0&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Determine
if password is only one characcter long&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= @lngLogCount&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @lngCounter
&amp;lt;&amp;gt; 0&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter1
= 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @strName
= (&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strLogin &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tLogins &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; numID
= @lngCounter)&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHILE&lt;/span&gt; @lngCounter1
&amp;lt; 256&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;BEGIN&lt;/span&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;UPDATE&lt;/span&gt; #tLogins&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; lngPass
= (&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; PWDCOMPARE
(&lt;span style="FONT-SIZE: 11px; COLOR: fuchsia; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;CHAR&lt;/span&gt;(@lngCounter1),(&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; password &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; master.dbo.&lt;span style="FONT-SIZE: 11px; COLOR: lawngreen; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;syslogins&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; name
= @strName))) 
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; numID
= @lngCounter&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: silver; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AND&lt;/span&gt; lngPass
&amp;lt;&amp;gt; 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter1
= @lngCounter1 + 1&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SET&lt;/span&gt; @lngCounter
= @lngCounter - 1&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;END&lt;/span&gt;
&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;PRINT&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'The
following logins have one character passwords'&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;SELECT&lt;/span&gt; strLogin &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;AS&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: red; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;'Login
Name'&lt;/span&gt; &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;FROM&lt;/span&gt; #tLogins &lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;WHERE&lt;/span&gt; lngPass
= 1&lt;br&gt;
GO&lt;br&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: teal; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;--Test&lt;/span&gt;
&lt;br&gt;
&lt;span style="FONT-SIZE: 11px; COLOR: blue; FONT-FAMILY: Courier New; BACKGROUND-COLOR: transparent"&gt;EXEC&lt;/span&gt; dbo.spAuditPasswords&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;hr width="75%" color=#c0c0c0 size=1&gt;
&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
And last but not least Bradley Morris has published an article about &lt;a href="http://www.sql-server-performance.com/bm_object_permission_scripts.asp"&gt;"How
to Script User and Role Object Permissions in SQL Server"&lt;/a&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=4f42c907-3e39-4283-a4fb-c3e536ce2ceb" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,4f42c907-3e39-4283-a4fb-c3e536ce2ceb.aspx</comments>
      <category>Development/T-SQL;MS SQL Server;MS SQL Server/RDBMS;Security</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2</wfw:commentRss>
      <title>Russell Christopher: Using a parameterized SSIS package as a data source for SQL Reporting Services</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2.aspx</link>
      <pubDate>Thu, 17 Aug 2006 11:23:04 GMT</pubDate>
      <description>You need to have to do some manual prerequisites to convince you Reporting Services installation to accept SSIS packages as a source as described in "Defining Report Datasets for Package Data from SQL Server Integration Services".

Russell Christopher brings up some additional thoughts in his article "Using a parameterized SSIS package as a data source for SQL Reporting Services" and therefor lifts this datasource to a higher level with more value.

Thanks Russell!&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,0e3316ae-c9e7-426e-9e6b-30dab0ea2ed2.aspx</comments>
      <category>MS SQL Server;MS SQL Server/DTS - SSIS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=2342281b-54e0-4e23-90ca-44143366a462</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,2342281b-54e0-4e23-90ca-44143366a462.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,2342281b-54e0-4e23-90ca-44143366a462.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=2342281b-54e0-4e23-90ca-44143366a462</wfw:commentRss>
      <title>PASS Deutschland e.V. - Newsletter library [updated]</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,2342281b-54e0-4e23-90ca-44143366a462.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,2342281b-54e0-4e23-90ca-44143366a462.aspx</link>
      <pubDate>Wed, 16 Aug 2006 11:58:24 GMT</pubDate>
      <description>You probably know that PASS Germany publishes a really sophisticated newsletter every month containing a load of useful informations regarding every topic of the SQL Server.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=2342281b-54e0-4e23-90ca-44143366a462"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,2342281b-54e0-4e23-90ca-44143366a462.aspx</comments>
      <category>MS SQL Server;PASS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=9bf6671c-ec37-423a-9c62-7ead2d4c259c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,9bf6671c-ec37-423a-9c62-7ead2d4c259c.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,9bf6671c-ec37-423a-9c62-7ead2d4c259c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9bf6671c-ec37-423a-9c62-7ead2d4c259c</wfw:commentRss>
      <title>SharePoint Integration in SQL Server 2005 SP2</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,9bf6671c-ec37-423a-9c62-7ead2d4c259c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,9bf6671c-ec37-423a-9c62-7ead2d4c259c.aspx</link>
      <pubDate>Tue, 15 Aug 2006 17:08:46 GMT</pubDate>
      <description>Russell Christopher has posted a very intersting summary of SharePoint Integration in SQL Server 2005 SP2.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=9bf6671c-ec37-423a-9c62-7ead2d4c259c"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,9bf6671c-ec37-423a-9c62-7ead2d4c259c.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=7fcfbf75-506b-4287-8b73-0a8dfad8fb50</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,7fcfbf75-506b-4287-8b73-0a8dfad8fb50.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,7fcfbf75-506b-4287-8b73-0a8dfad8fb50.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=7fcfbf75-506b-4287-8b73-0a8dfad8fb50</wfw:commentRss>
      <title>Select All in SSRS 2005 SP1 - or: I´ll be back!</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,7fcfbf75-506b-4287-8b73-0a8dfad8fb50.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,7fcfbf75-506b-4287-8b73-0a8dfad8fb50.aspx</link>
      <pubDate>Tue, 15 Aug 2006 16:53:48 GMT</pubDate>
      <description>Nobody should say that Microsoft and the product teams do not listen to feedback and are not willing to learn...

With SP 1 Microsoft had "killed" the "Select All" Parameter for Multivalue Parameters and thereby triggered many discussions throughout Reporting Services users like this one in Nick Barclay's BI Blog.
There was a workaround provided but this means that many manual work had to be done after SP1 surprisingly suppressed the option "Select All"...

Brian Welcker now has given some explanations and announced that "Select All" Parameter for Multivalue Parameters will be reimplemented in SP2 and if you would like to get it earlier as SP2 arrives you could get in contact with Support Services and refer tor Knowledge Base Article #919478 - which is not published at the moment.

SSRS Team 0 : 1 SSRS Users
I think this will be continued...
:-)&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=7fcfbf75-506b-4287-8b73-0a8dfad8fb50"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,7fcfbf75-506b-4287-8b73-0a8dfad8fb50.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=f5c53fa0-0ded-4ad2-9b34-50a26ad149e6</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,f5c53fa0-0ded-4ad2-9b34-50a26ad149e6.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,f5c53fa0-0ded-4ad2-9b34-50a26ad149e6.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=f5c53fa0-0ded-4ad2-9b34-50a26ad149e6</wfw:commentRss>
      <title>Brian Keller: Sample Script for Setting Item-level Security in Reporting Services</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,f5c53fa0-0ded-4ad2-9b34-50a26ad149e6.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,f5c53fa0-0ded-4ad2-9b34-50a26ad149e6.aspx</link>
      <pubDate>Fri, 11 Aug 2006 22:39:56 GMT</pubDate>
      <description>The following content is intellectual property of Brian Keller, the original posting can be found here.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=f5c53fa0-0ded-4ad2-9b34-50a26ad149e6"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,f5c53fa0-0ded-4ad2-9b34-50a26ad149e6.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=a88722e4-26e2-406c-9fbe-8a58335cda2b</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,a88722e4-26e2-406c-9fbe-8a58335cda2b.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,a88722e4-26e2-406c-9fbe-8a58335cda2b.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=a88722e4-26e2-406c-9fbe-8a58335cda2b</wfw:commentRss>
      <title>Brian Keller: You've just installed Reporting Services, now back up that encryption key!</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,a88722e4-26e2-406c-9fbe-8a58335cda2b.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,a88722e4-26e2-406c-9fbe-8a58335cda2b.aspx</link>
      <pubDate>Fri, 11 Aug 2006 22:27:19 GMT</pubDate>
      <description>The following content is intellectual property of Brian Keller, the original posting can be found here.&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=a88722e4-26e2-406c-9fbe-8a58335cda2b"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,a88722e4-26e2-406c-9fbe-8a58335cda2b.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=dc50fcc5-36a6-4c9c-8e84-a62cba2f814e</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,dc50fcc5-36a6-4c9c-8e84-a62cba2f814e.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,dc50fcc5-36a6-4c9c-8e84-a62cba2f814e.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=dc50fcc5-36a6-4c9c-8e84-a62cba2f814e</wfw:commentRss>
      <title>former SSRS blogger: Brian Keller</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,dc50fcc5-36a6-4c9c-8e84-a62cba2f814e.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,dc50fcc5-36a6-4c9c-8e84-a62cba2f814e.aspx</link>
      <pubDate>Fri, 11 Aug 2006 20:01:29 GMT</pubDate>
      <description>Brian Keller nowadays is a Program Manager on the Systems Management Server team, but before that he was a member of the reporting services universe providing some real interesting articles, for example:

Sample Script for Setting Item-level Security in Reporting Services
You've just installed Reporting Services, now back up that encryption key!
I will copy the content to my blog to assure the availability...&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=dc50fcc5-36a6-4c9c-8e84-a62cba2f814e"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,dc50fcc5-36a6-4c9c-8e84-a62cba2f814e.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7</wfw:commentRss>
      <title>Workaround for User!UserID in Reporting Services</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7.aspx</link>
      <pubDate>Fri, 11 Aug 2006 12:51:41 GMT</pubDate>
      <description>Identifying the User during runtime sometimes can be usefull for your report header or footer, can be used to filter data or for parameters, and so on but it bars users from subscribing to reports, because Reporting Services is not able to identify the user from the subscription.

Brian Cooper had published a workaround for the known issue coming around using User!UserID in Reporting Services, but the content is gone...I discovered that during a discussion at the MSDN forum about the problem with User!UserID in datadriven subscriptions.

Jan Pieter Posthuma remembered the code and had the correct hint to solve this problem - many thanks!&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,12db87cf-9d2f-4a2f-9f1b-a6cc1f692ea7.aspx</comments>
      <category>Development/.Net;MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=9466d002-074f-4d9d-91c3-55a7b2a70a8c</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,9466d002-074f-4d9d-91c3-55a7b2a70a8c.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,9466d002-074f-4d9d-91c3-55a7b2a70a8c.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=9466d002-074f-4d9d-91c3-55a7b2a70a8c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
Definition from the <a href="http://download.microsoft.com/download/0/7/9/07966841-6a3c-4a71-aef4-09d2f216d81c/Product_Guide.doc" target="_blank">SQL
Server 2005 Product Guide</a>:
</p>
        <p>
          <em>"Analysis Management Objects (AMO) allows client applications to access the range
of administrative commands and capabilities that are available to Analysis Services
by using an object library that can provide object-level validation capabilities.
This is an alternative to manually generating both the DDL scripts for Analysis commands
and the often-lengthy contents of the ASSL ObjectDefinition element. Applications
that use AMO can either connect and work directly with objects on an Analysis Services
instance, or they can create such objects without an existing connection and persist
the metadata for later deployment. AMO also “wraps” Analysis Services Scripting Language
(ASSL) commands and elements."</em>
        </p>
        <p>
Microsoft SQL Server 2005 Management Objects Collection from the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=DF0BA5AA-B4BD-4705-AA0A-B477BA72A9CB&amp;displaylang=en" target="_blank">Feature
Pack for Microsoft SQL Server 2005 - April 2006</a></p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms345089.aspx" target="_blank">Introducing
AMO Concepts</a>
        </p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms160930.aspx" target="_blank">Readme
for AMOBrowser Sample </a>
        </p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms345094.aspx" target="_blank">AMO
Security Classes</a>
        </p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms345081.aspx" target="_blank">Programming
AMO Security Objects</a>
        </p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms174578.aspx" target="_blank">Analysis
Services Concepts and Objects</a>
        </p>
        <p>
          <a href="http://msdn2.microsoft.com/en-us/library/ms174786.aspx" target="_blank">Permissions
and Access Rights (SSAS)</a>
        </p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=9466d002-074f-4d9d-91c3-55a7b2a70a8c" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>AMO - a little introduction</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,9466d002-074f-4d9d-91c3-55a7b2a70a8c.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,9466d002-074f-4d9d-91c3-55a7b2a70a8c.aspx</link>
      <pubDate>Fri, 11 Aug 2006 11:49:21 GMT</pubDate>
      <description>&lt;p&gt;
Definition from the &lt;a href="http://download.microsoft.com/download/0/7/9/07966841-6a3c-4a71-aef4-09d2f216d81c/Product_Guide.doc" target=_blank&gt;SQL
Server 2005 Product Guide&lt;/a&gt;:
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;"Analysis Management Objects (AMO) allows client applications to access the range
of administrative commands and capabilities that are available to Analysis Services
by using an object library that can provide object-level validation capabilities.
This is an alternative to manually generating both the DDL scripts for Analysis commands
and the often-lengthy contents of the ASSL ObjectDefinition element. Applications
that use AMO can either connect and work directly with objects on an Analysis Services
instance, or they can create such objects without an existing connection and persist
the metadata for later deployment. AMO also “wraps” Analysis Services Scripting Language
(ASSL) commands and elements."&lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
Microsoft SQL Server 2005 Management Objects Collection from the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=DF0BA5AA-B4BD-4705-AA0A-B477BA72A9CB&amp;amp;displaylang=en" target=_blank&gt;Feature
Pack for Microsoft SQL Server 2005 - April 2006&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms345089.aspx" target=_blank&gt;Introducing
AMO Concepts&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms160930.aspx" target=_blank&gt;Readme
for AMOBrowser Sample &lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms345094.aspx" target=_blank&gt;AMO
Security Classes&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms345081.aspx" target=_blank&gt;Programming
AMO Security Objects&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms174578.aspx" target=_blank&gt;Analysis
Services Concepts and Objects&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://msdn2.microsoft.com/en-us/library/ms174786.aspx" target=_blank&gt;Permissions
and Access Rights (SSAS)&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=9466d002-074f-4d9d-91c3-55a7b2a70a8c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,9466d002-074f-4d9d-91c3-55a7b2a70a8c.aspx</comments>
      <category>Development;Development/.Net;MS SQL Server;MS SQL Server/AS - SSAS;Security</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=6a3d947a-6509-4e61-baf3-2299702c43b0</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,6a3d947a-6509-4e61-baf3-2299702c43b0.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,6a3d947a-6509-4e61-baf3-2299702c43b0.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=6a3d947a-6509-4e61-baf3-2299702c43b0</wfw:commentRss>
      <title>SSRS - URL Access with refreshing problem...</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,6a3d947a-6509-4e61-baf3-2299702c43b0.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,6a3d947a-6509-4e61-baf3-2299702c43b0.aspx</link>
      <pubDate>Wed, 09 Aug 2006 20:52:41 GMT</pubDate>
      <description>Today a customer of mine remarked, that using the URL Access to show a report in an application without using the report manager does not refresh in a proper way if you use rc:Toolbar=false to hide the toolbar and leads to a non-refreshed report showing "old" values while displaying the toolbar shows a refreshed report

It seems, that activating the toolbar opens up a new session every time the report is opened whereas hiding the toolbar upholds the session and for that purpose the content is not re-rendered. If you want to get rid of this behavior you can use rs:ClearSession=true to force re-rendering and remove all report instances associated with an authenticated user from session.
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=6a3d947a-6509-4e61-baf3-2299702c43b0"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,6a3d947a-6509-4e61-baf3-2299702c43b0.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=3446771e-b5a1-456b-ba1d-7da90098e5a1</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,3446771e-b5a1-456b-ba1d-7da90098e5a1.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,3446771e-b5a1-456b-ba1d-7da90098e5a1.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3446771e-b5a1-456b-ba1d-7da90098e5a1</wfw:commentRss>
      <title>SSRS now certified for SAP BW</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,3446771e-b5a1-456b-ba1d-7da90098e5a1.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,3446771e-b5a1-456b-ba1d-7da90098e5a1.aspx</link>
      <pubDate>Mon, 31 Jul 2006 11:57:01 GMT</pubDate>
      <description>Brian Welcker has announced, that SAP BW (SAP Netweaver BI) support contained in SQL Server Reporting Services 2005 SP1 now officially is certified by SAP and that Microsoft is the "first vendor certified on XML for Analysis".&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3446771e-b5a1-456b-ba1d-7da90098e5a1"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,3446771e-b5a1-456b-ba1d-7da90098e5a1.aspx</comments>
      <category>MS SQL Server;MS SQL Server/RS - SSRS;SAP</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=87a72142-ed5f-40e0-a5b3-cc1214680b09</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,87a72142-ed5f-40e0-a5b3-cc1214680b09.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,87a72142-ed5f-40e0-a5b3-cc1214680b09.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=87a72142-ed5f-40e0-a5b3-cc1214680b09</wfw:commentRss>
      <title>screencasts done with Wink</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,87a72142-ed5f-40e0-a5b3-cc1214680b09.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,87a72142-ed5f-40e0-a5b3-cc1214680b09.aspx</link>
      <pubDate>Tue, 25 Jul 2006 16:30:11 GMT</pubDate>
      <description>These days I came across a post by Jens Süßmeyer announcing that he has done some screencasts to visualize some common sql problems.

Jens has done it with wink and I think I will also give this tool a try to document some bugs rather by screens than with words...&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=87a72142-ed5f-40e0-a5b3-cc1214680b09"/&gt;&lt;br/&gt;&lt;hr/&gt;&lt;p&gt;This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. &lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,87a72142-ed5f-40e0-a5b3-cc1214680b09.aspx</comments>
      <category>MS SQL Server;Tools</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=5c6fe08f-ba39-401b-9860-d8273f763a24</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,5c6fe08f-ba39-401b-9860-d8273f763a24.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,5c6fe08f-ba39-401b-9860-d8273f763a24.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5c6fe08f-ba39-401b-9860-d8273f763a24</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
The "Microsoft Architect Insight Conference" was held on 22 - 23 March 2006 and the
slides are now available for <a href="http://www.microsoft.com/uk/msdn/architecture/architectinsight/download.mspx" target="_blank">download</a>.
</p>
        <p>
I would highly recommend that you read the PPT about <a href="http://download.microsoft.com/documents/uk/msdn/architecture/architectinsight/Day%201/Solutions/QAd%20-%20Solutions/SOL0101%20Service%20Oriented%20Business%20Intelligence.ppt" target="_blank">Service-oriented
Business Intelligence (SoBI)</a> by Sean Gordon, Robert Grigg, Michael Horne,
and Simon Thurman, which brings up some really good new approaches.<br />
The authors also have published an article, which contains a more detailed descriptions
and is available <a href="http://www.architecturejournal.net/2006/issue6/Jour6SOBI/default.aspx" target="_blank">online</a>.
</p>
        <p>
And here are two additional links extracted from the article page:
</p>
        <ul>
          <li>
            <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/dataoutsideinside.asp" target="_blank">Data
on the Outside vs. Data on the Inside</a>
          </li>
          <li>
            <a href="http://www.zapthink.com/report.html?id=WP-0125" target="_blank">Information
as a Service: Service-Oriented Information Integration</a>
          </li>
        </ul>
        <p>
You also should have an eye for the <a href="http://download.microsoft.com/documents/uk/msdn/architecture/architectinsight/Day%201/Solutions/QAd%20-%20Solutions/SOL0104%20Impact%20of%20SQL%202005.ppt" target="_blank">slides</a> of Eric
Nelson, who tries to explain that there are seven new servers in the SQL world...
</p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=5c6fe08f-ba39-401b-9860-d8273f763a24" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>SoBI &amp; architectural thoughts on SQL Server</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,5c6fe08f-ba39-401b-9860-d8273f763a24.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,5c6fe08f-ba39-401b-9860-d8273f763a24.aspx</link>
      <pubDate>Tue, 11 Jul 2006 22:36:32 GMT</pubDate>
      <description>&lt;p&gt;
The "Microsoft Architect Insight Conference" was held on 22 - 23 March 2006 and the
slides are now available for &lt;a href="http://www.microsoft.com/uk/msdn/architecture/architectinsight/download.mspx" target=_blank&gt;download&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I would highly recommend that you read the PPT about &lt;a href="http://download.microsoft.com/documents/uk/msdn/architecture/architectinsight/Day%201/Solutions/QAd%20-%20Solutions/SOL0101%20Service%20Oriented%20Business%20Intelligence.ppt" target=_blank&gt;Service-oriented
Business Intelligence (SoBI)&lt;/a&gt;&amp;nbsp;by Sean Gordon, Robert Grigg, Michael Horne,
and Simon Thurman, which brings up some really good new approaches.&lt;br&gt;
The authors also have published an article, which contains a more detailed descriptions
and is available &lt;a href="http://www.architecturejournal.net/2006/issue6/Jour6SOBI/default.aspx" target=_blank&gt;online&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
And here are two additional links extracted from the article page:
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnbda/html/dataoutsideinside.asp" target=_blank&gt;Data
on the Outside vs. Data on the Inside&lt;/a&gt; 
&lt;li&gt;
&lt;a href="http://www.zapthink.com/report.html?id=WP-0125" target=_blank&gt;Information
as a Service: Service-Oriented Information Integration&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
You also should have an eye&amp;nbsp;for the &lt;a href="http://download.microsoft.com/documents/uk/msdn/architecture/architectinsight/Day%201/Solutions/QAd%20-%20Solutions/SOL0104%20Impact%20of%20SQL%202005.ppt" target=_blank&gt;slides&lt;/a&gt; of&amp;nbsp;Eric
Nelson, who tries to explain that there are seven new servers in the SQL world...
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=5c6fe08f-ba39-401b-9860-d8273f763a24" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,5c6fe08f-ba39-401b-9860-d8273f763a24.aspx</comments>
      <category>BI;Development;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <img alt="" hspace="0" src="http://img.microsoft.com/library/media/1033/sql/media/lgo_project_real.gif" align="baseline" border="0" />
        <p>
You surely know <a href="http://www.microsoft.com/sql/solutions/bi/projectreal.mspx" target="_Blank">"Project
REAL"</a>, the SQL Server 2005 reference implementation at Barnes &amp; Noble. It
contains information on all upcoming topics in a BI project.
</p>
        <p>
And now...<br />
your are not only able to read about it - you are able to <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b61a37b6-5852-4018-bba9-795a34123ed0&amp;displaylang=en" target="_blank">download</a> a
whole subset of the project REAL data and the various parts of the implementation
</p>
        <p>
Extract from the website:<br /><font color="#808080"><em>"</em>The kit contains:<br /><br />
1. A set of instructions for setting up the environment 
<br />
2. Guidance on how to explore the implementation 
<br />
3. A sample relational data warehouse database (a subset of the Project REAL data
warehouse) 
<br />
4. A sample source database (from which we pull incremental updates) 
<br />
5. SSIS packages that implement the ETL operations 
<br />
6. An SSAS cube definition and scripts for processing the cube from the sample warehouse 
<br />
7. Sample SSRS reports 
<br />
8. Sample data mining models for predicting out-of-stock conditions in stores 
<br />
9. Sample client views in briefing books for the Proclarity and Panorama BI front-end
tools 
<br /><br />
This kit will guide you through the key points to observe in the Project REAL implementation.
Use it to learn and to get ideas for your own implementation. (While we believe it
represents a very good design and generally follows best practices, it should not
be regarded as the solution for every BI situation.) It will be helpful to see the
overview presentations about the BI tools in SQL Server, or read documentation, before
exploring the kit. One good source of information is to go through the tutorials that
ship with SQL Server (the tutorials are installed when you select “Workstation components,
Books Online and development tools” at installation time).<em>"</em></font></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Project REAL—Business Intelligence in Practice</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36.aspx</link>
      <pubDate>Tue, 11 Jul 2006 21:59:25 GMT</pubDate>
      <description>&lt;img alt="" hspace=0 src="http://img.microsoft.com/library/media/1033/sql/media/lgo_project_real.gif" align=baseline border=0&gt; 
&lt;p&gt;
You surely know &lt;a href="http://www.microsoft.com/sql/solutions/bi/projectreal.mspx" target=_Blank&gt;"Project
REAL"&lt;/a&gt;, the SQL Server 2005 reference implementation at Barnes &amp;amp; Noble. It
contains information on all upcoming topics in a BI project.
&lt;/p&gt;
&lt;p&gt;
And now...&lt;br&gt;
your are not only able to read about it - you are able to &lt;a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=b61a37b6-5852-4018-bba9-795a34123ed0&amp;amp;displaylang=en" target=_blank&gt;download&lt;/a&gt; a
whole subset of the project REAL data and the various parts of the implementation
&lt;/p&gt;
&lt;p&gt;
Extract from the website:&lt;br&gt;
&lt;font color=#808080&gt;&lt;em&gt;"&lt;/em&gt;The kit contains:&lt;br&gt;
&lt;br&gt;
1. A set of instructions for setting up the environment 
&lt;br&gt;
2. Guidance on how to explore the implementation 
&lt;br&gt;
3. A sample relational data warehouse database (a subset of the Project REAL data
warehouse) 
&lt;br&gt;
4. A sample source database (from which we pull incremental updates) 
&lt;br&gt;
5. SSIS packages that implement the ETL operations 
&lt;br&gt;
6. An SSAS cube definition and scripts for processing the cube from the sample warehouse 
&lt;br&gt;
7. Sample SSRS reports 
&lt;br&gt;
8. Sample data mining models for predicting out-of-stock conditions in stores 
&lt;br&gt;
9. Sample client views in briefing books for the Proclarity and Panorama BI front-end
tools 
&lt;br&gt;
&lt;br&gt;
This kit will guide you through the key points to observe in the Project REAL implementation.
Use it to learn and to get ideas for your own implementation. (While we believe it
represents a very good design and generally follows best practices, it should not
be regarded as the solution for every BI situation.) It will be helpful to see the
overview presentations about the BI tools in SQL Server, or read documentation, before
exploring the kit. One good source of information is to go through the tutorials that
ship with SQL Server (the tutorials are installed when you select “Workstation components,
Books Online and development tools” at installation time).&lt;em&gt;"&lt;/em&gt;&lt;/font&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,d6c898d5-3b41-4d9f-a1a8-5e3e225f2b36.aspx</comments>
      <category>BI;Development;Development/.Net;MS SQL Server;MS SQL Server/DTS - SSIS;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=3573aa11-2981-4f19-9d3a-a2a68e2032aa</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,3573aa11-2981-4f19-9d3a-a2a68e2032aa.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:comment>http://www.fits-consulting.de/blog/CommentView,guid,3573aa11-2981-4f19-9d3a-a2a68e2032aa.aspx</wfw:comment>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=3573aa11-2981-4f19-9d3a-a2a68e2032aa</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <a href="http://cwebbbi.spaces.msn.com/" target="_blank">Chris Webb</a> has blogged
about the "Business Intelligence Architecture and Design Guide" downloadable at <a href="http://www.gotdotnet.com/codegallery/codegallery.aspx?id=00895184-067e-4183-b186-48d9f104aaaf" target="_blank">gotdotnet</a>.
</p>
        <p>
I agree with Chris, this is not really new stuff, but I personally think it is good
to have informations like this in a kind of "complete package".
</p>
        <p>
Extract from the website:<br /><font color="#808080"><em>"The patterns &amp; practices team is please to announce
the availability of Architecture and Design Guidelines for Business Intelligence Applications.
This exploratory community project provides prescriptive guidance on how to overcome
architectural challenges and design issues when building Business Intelligence solutions
using Microsoft platform. This guide is intended for software architects and developers
who are developing Business Intelligence applications on the Microsoft .NET Framework
using SQL Server 2005 - Integration Services and Analysis Services. Being an exploratory
community project - anticipate gaps and scope for improvement. For more information
see: <a href="http://codegallery.gotdotnet.com/biguide" target="_blank">http://codegallery.gotdotnet.com/biguide</a>."</em></font></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3573aa11-2981-4f19-9d3a-a2a68e2032aa" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>Business Intelligence Architecture and Design Guide</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,3573aa11-2981-4f19-9d3a-a2a68e2032aa.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,3573aa11-2981-4f19-9d3a-a2a68e2032aa.aspx</link>
      <pubDate>Tue, 11 Jul 2006 21:47:16 GMT</pubDate>
      <description>&lt;p&gt;
&lt;a href="http://cwebbbi.spaces.msn.com/" target=_blank&gt;Chris Webb&lt;/a&gt;&amp;nbsp;has blogged
about the "Business Intelligence Architecture and Design Guide" downloadable at &lt;a href="http://www.gotdotnet.com/codegallery/codegallery.aspx?id=00895184-067e-4183-b186-48d9f104aaaf" target=_blank&gt;gotdotnet&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
I agree with Chris, this is not really new stuff, but I personally think it is good
to have&amp;nbsp;informations like this in a kind of "complete package".
&lt;/p&gt;
&lt;p&gt;
Extract from the website:&lt;br&gt;
&lt;font color=#808080&gt;&lt;em&gt;"The patterns &amp;amp; practices team is please to announce the
availability of Architecture and Design Guidelines for Business Intelligence Applications.
This exploratory community project provides prescriptive guidance on how to overcome
architectural challenges and design issues when building Business Intelligence solutions
using Microsoft platform. This guide is intended for software architects and developers
who are developing Business Intelligence applications on the Microsoft .NET Framework
using SQL Server 2005 - Integration Services and Analysis Services. Being an exploratory
community project - anticipate gaps and scope for improvement. For more information
see: &lt;a href="http://codegallery.gotdotnet.com/biguide" target=_blank&gt;http://codegallery.gotdotnet.com/biguide&lt;/a&gt;."&lt;/em&gt;&lt;/font&gt; 
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=3573aa11-2981-4f19-9d3a-a2a68e2032aa" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,3573aa11-2981-4f19-9d3a-a2a68e2032aa.aspx</comments>
      <category>BI;MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/RDBMS;MS SQL Server/RS - SSRS</category>
    </item>
    <item>
      <trackback:ping>http://www.fits-consulting.de/blog/Trackback.aspx?guid=178092d7-1711-4390-8674-d5d84d955e0a</trackback:ping>
      <pingback:server>http://www.fits-consulting.de/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.fits-consulting.de/blog/PermaLink,guid,178092d7-1711-4390-8674-d5d84d955e0a.aspx</pingback:target>
      <dc:creator>Markus Fischer</dc:creator>
      <wfw:commentRss>http://www.fits-consulting.de/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=178092d7-1711-4390-8674-d5d84d955e0a</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
        </p>
        <p>
          <img title="PASS BI BOOT CAMP 2006" height="111" alt="PASS_BI-BOOT-CAMP-2006.gif" src="http://www.fits-consulting.de/blog/content/binary/PASS_BI-BOOT-CAMP-2006.gif" width="618" border="0" />
        </p>
        <p>
PASS Germany is doing a BI BootCamp again!<br />
[Even if it is an event in german language I am writting in english - please spread
this news around in your blogs though interested community members have the chance
to participate]
</p>
        <p>
Better, bigger, more content, more networking, more speakers than 2005 - if even
possible! :-)<br />
And also a suprising night session again - stay tuned!
</p>
        <p>
If you want to register, please use this <a href="http://www.sqlpass.de/Default.aspx?tabid=200" target="_blank">link</a>.
</p>
        <p>
Here is the eight-slide-presentation for download:<br /><a href="http://www.fits-consulting.de/blog/content/binary/PASS_BI-BootCamp2006_8-Slides.pdf" target="_blank">PASS
BI-BootCamp2006_8-Slides.pdf (190,66 KB)</a></p>
        <img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=178092d7-1711-4390-8674-d5d84d955e0a" />
        <br />
        <hr />
        <p>
This weblog is sponsored by <a href="http://www.fits-consulting.de">FITS</a>. 
<br />
We support <a href="http://www.sqlpass.de">PASS Germany</a>!
</p>
      </body>
      <title>PASS BI BootCamp 2006</title>
      <guid isPermaLink="false">http://www.fits-consulting.de/blog/PermaLink,guid,178092d7-1711-4390-8674-d5d84d955e0a.aspx</guid>
      <link>http://www.fits-consulting.de/blog/PermaLink,guid,178092d7-1711-4390-8674-d5d84d955e0a.aspx</link>
      <pubDate>Wed, 07 Jun 2006 21:11:29 GMT</pubDate>
      <description>&lt;p&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;img title="PASS BI BOOT CAMP 2006" height=111 alt=PASS_BI-BOOT-CAMP-2006.gif src="http://www.fits-consulting.de/blog/content/binary/PASS_BI-BOOT-CAMP-2006.gif" width=618 border=0&gt;
&lt;/p&gt;
&lt;p&gt;
PASS Germany is doing&amp;nbsp;a BI&amp;nbsp;BootCamp again!&lt;br&gt;
[Even if it is an event in german language I am writting in english - please spread
this news around in your blogs though interested community members have the chance
to participate]
&lt;/p&gt;
&lt;p&gt;
Better, bigger, more content, more networking, more speakers&amp;nbsp;than 2005 - if even
possible! :-)&lt;br&gt;
And also a suprising night session again - stay tuned!
&lt;/p&gt;
&lt;p&gt;
If you want to register, please use this &lt;a href="http://www.sqlpass.de/Default.aspx?tabid=200" target=_blank&gt;link&lt;/a&gt;.
&lt;/p&gt;
&lt;p&gt;
Here is the eight-slide-presentation for download:&lt;br&gt;
&lt;a href="http://www.fits-consulting.de/blog/content/binary/PASS_BI-BootCamp2006_8-Slides.pdf" target=_blank&gt;PASS
BI-BootCamp2006_8-Slides.pdf (190,66 KB)&lt;/a&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.fits-consulting.de/blog/aggbug.ashx?id=178092d7-1711-4390-8674-d5d84d955e0a" /&gt;
&lt;br /&gt;
&lt;hr /&gt;
&lt;p&gt;
This weblog is sponsored by &lt;a href="http://www.fits-consulting.de"&gt;FITS&lt;/a&gt;. 
&lt;br&gt;
We support &lt;a href="http://www.sqlpass.de"&gt;PASS Germany&lt;/a&gt;!
&lt;/p&gt;</description>
      <comments>http://www.fits-consulting.de/blog/CommentView,guid,178092d7-1711-4390-8674-d5d84d955e0a.aspx</comments>
      <category>MS SQL Server;MS SQL Server/AS - SSAS;MS SQL Server/DTS - SSIS;MS SQL Server/RS - SSRS;PASS</category>
    </item>
  </channel>
</rss>