<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>Runeet Vashisht's Web Log</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/runeetv/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/runeetv/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:25:20 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Map DataReader &amp; OLEDB Source SQL query parameter to SSIS variable</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/map-datareader-oledb-source-sql-query-parameter-to-ssis-variable</link>
      <pubDate>Fri, 29 Jan 2010 11:16:29 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2010/01/29/map-datareader-oledb-source-sql-query-parameter-to-ssis-variable/</guid>
      <description><![CDATA[&#160;  Following are the steps I used to get parameters mapped to my SQL query using DataReader...]]></description>
      <content:encoded><![CDATA[<p>&#160;</p>  <p>Following are the steps I used to get parameters mapped to my SQL query using DataReader Source&#160; and ADO.Net connection manager.</p>  <p>1. Create Ado.Net Connection manager using .Net Providers.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image001_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image001_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image001_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image001_thumb.jpg" width="558" height="573" /></a></p>  <p>2. Add DataReader source and map it to ADO.Net connection manager by right Click -&gt; Edit.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002" border="0" alt="clip_image002" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002_thumb.jpg" width="580" height="307" /></a></p>  <p>3. Under component properties, Write SQL Command without where clause.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image004_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image004_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image004" border="0" alt="clip_image004" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image004_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image004_thumb.jpg" width="582" height="433" /></a></p>  <p>4. Verify Column mapping and click ok to close the DataReader source editor.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image005" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005_thumb.jpg" width="588" height="422" /></a></p>  <p>5. Go to <b>Control Flow </b>and go to properties of Data Flow Task. Notice a property called <b>Expression </b> and an a small button next to it. Click on this button to open expression editor. </p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image007_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image007_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image007" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image007_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image007_thumb.jpg" width="580" height="369" /></a></p>  <p>6. In Expression editor select[ DataReader Source].[SQLComamnd] under property column and hit small button under expression column, This would open another editor.</p>  <p><b></b></p>  <p><b><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image008_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image008_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image008_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image008_thumb.jpg" width="588" height="279" /></a></b></p>  <p>7. Write in your SQL query appended with variable names and hit Evaluate expression button</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image010_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image010_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image010" border="0" alt="clip_image010" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image010_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image010_thumb.jpg" width="587" height="529" /></a></p>  <p>Note: On hitting Evaluate expression, You could see evaluated value box populated with variable value(in my case its date 12-07-2005 04:01:00.</p>  <p>8. Rest of the stuff is same, You could go to data flow tab and map the output of your DataReader task to valid output task.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image012_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image012_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image012" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image012_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image012_thumb.jpg" width="206" height="208" /></a></p>  <p>Note : Execution succeeded but there is still a red cross which I guess is there because of same runtime evaluation of expression V/S design time value. I am not sure if there is something that could be done about it but I guess for now if it works, You could safely ignore it.</p>  <p><strong><u>Doing similar operation with OLEDB Source</u></strong></p>  <p>Create a data flow task and place an OLEDB source and Flat text Destination.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002%5B6%5D.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002%5B6%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image002[6]" border="0" alt="clip_image002[6]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002%5B6%5D_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image002%5B6%5D_thumb.jpg" width="228" height="207" /></a></p>  <p>In OLEDB Source’s SQL command, I used&#160; select * from sys.sysprocesses where last_batch &gt;= ?</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image003_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image003_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image003" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image003_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image003_thumb.jpg" width="554" height="316" /></a></p>  <p>And mapped query parameter with MyDateType by clicking Parameters button.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005%5B6%5D.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005%5B6%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image005[6]" border="0" alt="clip_image005[6]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005%5B6%5D_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/UsingparameterisedquerypopulatedwithSSIS_A53/clip_image005%5B6%5D_thumb.jpg" width="564" height="326" /></a></p>  <p>Although preview won’t work at this point but if I would execute the package, I see query with DataType parameter fetching relevant data without any exception and dumping it in text file for validation.</p>]]></content:encoded>
    </item>
    <item>
      <title>SSIS Job using Oracle client goes into perpetual execution.</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/ssis-job-using-oracle-client-goes-into-perpetual-execution</link>
      <pubDate>Mon, 11 Jan 2010 11:44:35 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2010/01/11/ssis-job-using-oracle-client-goes-into-perpetual-execution/</guid>
      <description><![CDATA[At more than one instances while working with my customers I found that there is a SSIS package...]]></description>
      <content:encoded><![CDATA[<p>At more than one instances while working with my customers I found that there is a SSIS package which runs fine from BIDS as well as from command prompt using DTEXEC command but as soon as you try to execute this package as SQL Agent job, The JOB goes in a perpetual execution.</p>  <p><b><i>These are typical symptoms.</i></b></p>  <p>1. You have your SSIS package using Oracle OLEDB provider for one or more connection managers.</p>  <p>2. You have recently installed oracle client.</p>  <p>3. Your server hosting SQL Agent and Oracle client was not re-started after installation of oracle client.</p>  <p>4. SSIS package runs fine from BIDS as well as command prompt using DTExec utility.</p>  <p>5. SQL Agent job running the same SSIS package goes into perpetual execution, it neither finishes nor error out giving illusion of hang situation.</p>  <p><b><i>Cause</i></b></p>  <p>After your install oracle client, the information about oracle client installation directory and bin folder is stored in environment variables. Any application using oracle client would read the environment variables at its startup and would load needed dll from Oracle home directory. Services like SQL Agent which are running before the installation of Oracle Client will have old environment variable values as a result any thread spawned by SQL Agent will not be aware of the location of oracle client DLLs.</p>  <p>Ideally, any process not being able to load required DLLs would throw an error message in form of windows message box but since SQL agent is a service and not a console application it is not able to create a handle for this message box window. Result is, the error message box never shows up to the end users. This creates a deadlock: Job execution has thrown error message box which SQL agent cannot draw, and until this message box is drawn and the user clicks OK or Cancel button, The job execution won’t finish/terminate.</p>  <p><b><i>What to do ?</i></b></p>  <p>After installing Oracle client, Re-start your computer. If re-starting computer is not possible, Re-starting SQL agent should resolve the problem as process re-start would re-load new environment variable values with correct oracle installation path values.</p>]]></content:encoded>
    </item>
    <item>
      <title>SSIS package using SQL Authentication and DontSaveSensitive as ProtectionLevel</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/ssis-package-using-sql-authentication-and-dontsavesensitive-as-protectionlevel</link>
      <pubDate>Tue, 22 Dec 2009 14:04:08 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2009/12/22/ssis-package-using-sql-authentication-and-dontsavesensitive-as-protectionlevel/</guid>
      <description><![CDATA[In this post i am trying to look into steps to follow while running SSIS package using SQL...]]></description>
      <content:encoded><![CDATA[<p>In this post i am trying to look into steps to follow while running SSIS package using SQL Authentication and DontSaveSensitive as ProtectionLevel.</p>  <p>I created a simple SSIS package using a connection manager going to SQL Server using SQL authentication, I have my ProtectionLevel as <b>EncryptSensitiveWithUserKey</b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001" border="0" alt="clip_image001" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001_thumb.jpg" width="366" height="379" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image003_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image003_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image003" border="0" alt="clip_image003" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image003_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image003_thumb.jpg" width="367" height="151" /></a></p>  <p>My package has an OLEDB Source (using connection manager above) which queries a table in database and dumps few rows in flat file.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image005_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image005_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image005" border="0" alt="clip_image005" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image005_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image005_thumb.jpg" width="244" height="218" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image006_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image006_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image006" border="0" alt="clip_image006" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image006_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image006_thumb.jpg" width="382" height="388" /></a></p>  <p>With above settings ,when I execute my package, Its works like a charm.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image007_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image007_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image007" border="0" alt="clip_image007" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image007_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image007_thumb.jpg" width="232" height="182" /></a></p>  <p>Now, I changed the ProtectionLevel&#160; to <b>DontSaveSensitive</b></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image008_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image008_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image008" border="0" alt="clip_image008" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image008_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image008_thumb.jpg" width="399" height="312" /></a></p>  <p>And package failed</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image009_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image009_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image009" border="0" alt="clip_image009" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image009_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image009_thumb.jpg" width="182" height="153" /></a></p>  <p>With following error</p>  <p><font color="#ff0000">SSIS package &quot;Package.dtsx&quot; starting.</font></p>  <p><font color="#ff0000">Information: 0x4004300A at Data Flow Task, DTS.Pipeline: Validation phase is beginning.</font></p>  <p><font color="#ff0000">Error: 0xC0202009 at Package, Connection manager &quot;runeet2k8.sa&quot;: An OLE DB error has occurred. Error code: 0x80040E4D.</font></p>  <p><font color="#ff0000">An OLE DB record is available.&#160; Source: &quot;Microsoft SQL Native Client&quot;&#160; Hresult: 0x80040E4D&#160; Description: &quot;Login failed for user 'sa'.&quot;.</font></p>  <p><font color="#ff0000">Error: 0xC020801C at Data Flow Task, OLE DB Source [1]: The AcquireConnection method call to the connection manager &quot;runeet2k8.sa&quot; failed with error code 0xC0202009.</font></p>  <p><font color="#ff0000">Error: 0xC0047017 at Data Flow Task, DTS.Pipeline: component &quot;OLE DB Source&quot; (1) failed validation and returned error code 0xC020801C.</font></p>  <p><font color="#ff0000">Error: 0xC004700C at Data Flow Task, DTS.Pipeline: One or more component failed validation.</font></p>  <p><font color="#ff0000">Error: 0xC0024107 at Data Flow Task: There were errors during task validation.</font></p>  <p><font color="#ff0000">SSIS package &quot;Package.dtsx&quot; finished: Failure.</font></p>  <p>What we see above is expected as we have sensitive information in our package (password for SQL account) and have chosen DontSaveSensitive as protection level. The affect is Password being cleared from our connection manager hence login failure.</p>  <p>For this situation, We would have to save this password somewhere outside the package. I chose to save it in configuration file as shown below. I used XML Configuration file</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image011_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image011_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image011" border="0" alt="clip_image011" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image011_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image011_thumb.jpg" width="244" height="210" /></a></p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image012_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image012_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image012" border="0" alt="clip_image012" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image012_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image012_thumb.jpg" width="500" height="423" /></a></p>  <p>I had to chose correct connection manager, Its called runeet2k8.sa in my case</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image013_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image013_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image013" border="0" alt="clip_image013" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image013_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image013_thumb.jpg" width="503" height="422" /></a></p>  <p>This is the XML configuration file that BIDS wrote for me</p>  <p><font color="#808080">&lt;?xml version=&quot;1.0&quot;?&gt;</font></p>  <p><font color="#808080">&lt;DTSConfiguration&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;DTSConfigurationHeading&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;DTSConfigurationFileInfo GeneratedBy=&quot;Domain\UserName&quot; GeneratedFromPackageName=&quot;Package&quot; GeneratedFromPackageID=&quot;{77FB98FB-E1AF-48D9-8A43-9FD6B1790837}&quot; GeneratedDate=&quot;22-12-2009 16:12:59&quot;/&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;/DTSConfigurationHeading&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;Configuration ConfiguredType=&quot;Property&quot; Path=&quot;\Package.Connections[runeet2k8.sa].Properties[Password]&quot; ValueType=&quot;String&quot;&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;ConfiguredValue&gt;&lt;/ConfiguredValue&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;/Configuration&gt;</font></p>  <p><font color="#808080">&lt;/DTSConfiguration&gt;</font></p>  <p>&#160;</p>  <p>I have to go in and type password value.</p>  <p>&#160;</p>  <p><font color="#808080">&lt;?xml version=&quot;1.0&quot;?&gt;</font></p>  <p><font color="#808080">&lt;DTSConfiguration&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;DTSConfigurationHeading&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &lt;DTSConfigurationFileInfo GeneratedBy=&quot;FAREAST\runeetv&quot; GeneratedFromPackageName=&quot;Package&quot; GeneratedFromPackageID=&quot;{77FB98FB-E1AF-48D9-8A43-9FD6B1790837}&quot; GeneratedDate=&quot;22-12-2009 16:12:59&quot;/&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;/DTSConfigurationHeading&gt;</font></p>  <p><font color="#808080">&#160;&#160;&#160;&#160;&#160; &lt;Configuration ConfiguredType=&quot;Property&quot; Path=&quot;\Package.Connections[runeet2k8.sa].Properties[Password]&quot; ValueType=&quot;String&quot;&gt;</font></p>  <p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; <strong>&#160; <font color="#ff0000"> &lt;ConfiguredValue&gt;Password&lt;/ConfiguredValue&gt;</font></strong></p>  <p>&#160;&#160;&#160;&#160;&#160; <font color="#808080">&lt;/Configuration&gt;</font></p>  <p><font color="#808080">&lt;/DTSConfiguration&gt;</font></p>  <p>Now i have a package with ProtectionLevel as DontSaveSensitive and password value for connection manager saved in a configuration file outside the package. Package executed absolutely fine after this.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image014_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image014_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image014" border="0" alt="clip_image014" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image014_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image014_thumb.jpg" width="183" height="161" /></a></p>  <p>I went ahead and set this package as Integration Services Job under SQL Agent.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image015_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image015_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image015" border="0" alt="clip_image015" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image015_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image015_thumb.jpg" width="452" height="405" /></a></p>  <p>Executed the job and it ran successfully.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image016_2.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image016_2.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image016" border="0" alt="clip_image016" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image016_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image016_thumb.jpg" width="244" height="153" /></a></p>  <p></p>  <p>One important thing to note is that if you are moving your package from your development machine to say test server for execution. You would have to move your configuration file as well and put it at same path on target machine where its placed on your development box.</p>  <p>For example, on my box, the config file PackageConfig.dtsconfig&#160; is placed at <b>D:\Cases\Integration Services Project1\PackageConfig.dtsconfig</b> and if I am moving my package from my development machine to somewhere else, I would have to move my config file as well and place it at location <b>D:\Cases\Integration Services Project1\ </b>on that machine.</p>  <p>If you don’t have dtsconfig at expected location, Job would fail. </p>  <p>If you done want to create same complex folder path for dtsconfig on target machine as its on your dev box (eg: <b>D:\Cases\Integration Services Project1\</b>) You could place this dtsconfig file anywhere you want and give the pointer of this path from Configuration tab&#160; under you SSIS job step.</p>  <p><a href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001%5B4%5D.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001%5B4%5D.jpg"><img style="border-bottom: 0px; border-left: 0px; display: inline; border-top: 0px; border-right: 0px" title="clip_image001[4]" border="0" alt="clip_image001[4]" src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001%5B4%5D_thumb.jpg" original-url="http://blogs.msdn.com/blogfiles/runeetv/WindowsLiveWriter/SSISpackageusingSQLAuthenticationandDont_3197/clip_image001%5B4%5D_thumb.jpg" width="490" height="442" /></a></p>]]></content:encoded>
    </item>
    <item>
      <title>Search SQL Agent job running a specific command</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/search-sql-agent-job-running-a-specific-command</link>
      <pubDate>Fri, 06 Mar 2009 09:00:15 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2009/03/06/search-sql-agent-job-running-a-specific-command/</guid>
      <description><![CDATA[I recently had a need to find&#160; all the Jobs running a specific stored procedure on a SQL Server...]]></description>
      <content:encoded><![CDATA[<p>I recently had a need to find&#160; all the Jobs running a specific stored procedure on a SQL Server instance. A simple query proved useful here.</p>  <p><font color="#0000ff">select </font>Job<font color="#0000ff">.name as</font> JobName     <br /><font color="#0000ff">from</font> dbo.sysjobs Job, dbo.sysjobsteps Step    <br /><font color="#0000ff">where     <br /></font>Job.job_id=Step.job_id    <br />and    <br />Step.command like <font color="#ff0000">'%sp_linkedservers%'</font></p>]]></content:encoded>
    </item>
    <item>
      <title>Undeclared Namespace in XML (eg: xsi is an undeclared namespace)</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/undeclared-namespace-in-xml-eg-xsi-is-an-undeclared-namespace</link>
      <pubDate>Thu, 12 Feb 2009 20:16:00 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2009/02/12/undeclared-namespace-in-xml-eg-xsi-is-an-undeclared-namespace/</guid>
      <description><![CDATA[If you XML source publishes invalid XML for some reason ( i.e. it has Xml elements referring to...]]></description>
      <content:encoded><![CDATA[<P>If you XML source publishes invalid XML for some reason ( i.e. it has Xml elements referring to undeclared namespace ) and you try to load this XML in XMLDocument. You would end up getting exception similar to <STRONG><FONT color=#ff0000>&lt;NameSpace&gt; is an undeclared namespace. </FONT></STRONG></P>
<P>eg:</P>
<BLOCKQUOTE><PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;?</SPAN>xml version="1.0" encoding="utf-16"<SPAN style="COLOR: #0000ff">?&gt;</SPAN>
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">root</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">Name</SPAN> <SPAN style="COLOR: #ff0000">xsi</SPAN>:<SPAN style="COLOR: #ff0000">nil</SPAN>=<SPAN style="COLOR: #0000ff">"true"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>name1<SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">Name</SPAN> <SPAN style="COLOR: #ff0000">xsi</SPAN>:<SPAN style="COLOR: #ff0000">nil</SPAN>=<SPAN style="COLOR: #0000ff">"true"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>name2<SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;</SPAN><SPAN style="COLOR: #800000">Name</SPAN> <SPAN style="COLOR: #ff0000">xsi</SPAN>:<SPAN style="COLOR: #ff0000">nil</SPAN>=<SPAN style="COLOR: #0000ff">"true"</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>name3<SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">Name</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN>
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"><SPAN style="COLOR: #0000ff">&lt;/</SPAN><SPAN style="COLOR: #800000">root</SPAN><SPAN style="COLOR: #0000ff">&gt;</SPAN></PRE></PRE></BLOCKQUOTE>
<P>Ideally this is an Invalid XML but there is a way to load it in XMLDocument using following code snippet.</P><PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"></PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"></PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            XmlDocument doc = new XmlDocument();
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            NameTable nt = new NameTable();
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            XmlNamespaceManager nsmgr = new XmlNamespaceManager(nt);
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            nsmgr.AddNamespace("xsi", "http://www.w3.org/2001/XMLSchema-instance");
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"></PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            XmlParserContext context = new XmlParserContext(null, nsmgr, null, XmlSpace.None);
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff"></PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            XmlReaderSettings xset = new XmlReaderSettings();
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            xset.ConformanceLevel = ConformanceLevel.Fragment;
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            XmlReader rd = XmlReader.Create(new  StringReader(XMLSource), xset, context); 
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">              
</PRE><PRE style="FONT-SIZE: 12px; MARGIN: 0em; WIDTH: 100%; FONT-FAMILY: consolas,'Courier New',courier,monospace; BACKGROUND-COLOR: #ffffff">            doc.Load(rd);
</PRE></PRE>Runeet Vashisht]]></content:encoded>
    </item>
    <item>
      <title>SSIS package created using Import/Export wizard failing on tmp files.</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/ssis-package-created-using-importexport-wizard-failing-on-tmp-files</link>
      <pubDate>Wed, 11 Feb 2009 21:02:00 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2009/02/11/ssis-package-created-using-importexport-wizard-failing-on-tmp-files/</guid>
      <description><![CDATA[If we try to create a SSIS package from Import/Export wizard with option “Optimize for many tables”...]]></description>
      <content:encoded><![CDATA[<P>If we try to create a SSIS package from Import/Export wizard with option “Optimize for many tables” its possible that we may run into error messages like </P>
<P><FONT color=#ff0000>Could not find file 'C:\Documents and Settings\d108967\Local Settings\Temp\1\tmpD7.tmp'.".</FONT></P>
<P>The reason for this is the way this SSIS package work. If you open this package in BIDS you would see many File System Connection managers pointing back to files in TEMP directory i.e.</P>
<P><BR>AllowedToFailPrologueSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6AC1.tmp <BR>InnerPackage.dtsx pointing to C:\Users\runeetv\AppData\Local\Temp\1\InnerPackage.dtsx <BR>PostTransactionSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6AC2.tmp <BR>CompensatingSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6AC0.tmp <BR>EpilogueSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6ABE.tmp <BR>NonTransactableSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6ABF.tmp <BR>PrologueSql pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6ABD.tmp <BR>TableSchema.XML pointing to C:\Users\runeetv\AppData\Local\Temp\1\tmp6ABC.tmp</P>
<P>If TEMP directory is cleared because of any reason, you would get “Can not find file” error messages.</P>
<P><BR>If you create a new package with same tables selected and “Optimize for many tables” selected , new *.tmp files with different name would get created and old package would still fail.</P>
<UL>
<LI>The option I see to get this work permanently is by copying these files to a another directory other then TEMP and open your package in BIDS (Business Intelligence development studio) to modify connection string of above file connection managers to your new directory.</LI>
<LI>Second way is by not selecting “Optimize for many tables” . This option would only be useful if you are working with more than 100 tables.</LI></UL>
<P>Runeet Vashisht</P>]]></content:encoded>
    </item>
    <item>
      <title>SQLCLR Blessed assemblies</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/sqlclr-blessed-assemblies</link>
      <pubDate>Thu, 25 Sep 2008 14:18:00 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2008/09/25/sqlclr-blessed-assemblies/</guid>
      <description><![CDATA[As per http://support.microsoft.com/kb/922672 there is a specific set of assemblies supported inside...]]></description>
      <content:encoded><![CDATA[<P>As per <A title=http://support.microsoft.com/kb/922672 href="http://support.microsoft.com/kb/922672" mce_href="http://support.microsoft.com/kb/922672">http://support.microsoft.com/kb/922672</A> there is a specific set of assemblies supported inside the SQLCLR&nbsp; i.e. </P>
<P>•Microsoft.VisualBasic.dll</P>
<P>•Mscorlib.dll</P>
<P>•System.Data.dll </P>
<P>•System.dll </P>
<P>•System.Xml.dll </P>
<P>•Microsoft.VisualC.dll </P>
<P>•CustomMarshalers.dll </P>
<P>•System.Security.dll </P>
<P>•System.Web.Services.dll </P>
<P>•System.Data.SqlXml.dll </P>
<P>•System.Transactions.dll </P>
<P>•System.Data.OracleClient.dll </P>
<P>•System.Configuration.dll</P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><FONT size=3><FONT face="Times New Roman">If a user assembly references any .NET frameworks assembly that is outside of the ‘blessed’ list and you try to register the assembly with SQL Server, error 10301 will be raised.<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></FONT></FONT></B></P>
<P class=MsoNormal style="MARGIN: 0in 0in 0pt"><B style="mso-bidi-font-weight: normal"><o:p><FONT face="Times New Roman" size=3>&nbsp;</FONT></o:p></B></P>
<P class=ErrorMessage style="MARGIN: 0in 0in 0pt 0.5in"><FONT style="BACKGROUND-COLOR: #ffffcc"><FONT face="Courier New"><B style="mso-bidi-font-weight: normal">Server: Msg 10301</B>, Level 16, State 1, Line 1</FONT></FONT></P>
<P class=ErrorMessage style="MARGIN: 0in 0in 0pt 0.5in"><FONT style="BACKGROUND-COLOR: #ffffcc" face="Courier New">Assembly 'AssemblyName' references assembly 'accessibility, version=2.0.0.0, culture=neutral, publickeytoken=b03f5f7f11d50a3a.', which is not present in the current database. SQL Server attempted to locate and automatically load the referenced assembly from the same location where referring assembly came from, but that operation has failed (reason: 2(The system cannot find the file specified.)). Please load the referenced assembly into the current database and retry your request.</FONT></P>
<P class=ErrorMessage style="MARGIN: 0in 0in 0pt 0.5in"><o:p><FONT style="BACKGROUND-COLOR: #ffffcc" face="Courier New"></FONT></o:p>&nbsp;</P>]]></content:encoded>
    </item>
    <item>
      <title>Typed DataSet : TableAdapter CommandTimeout</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/typed-dataset-tableadapter-commandtimeout</link>
      <pubDate>Sun, 24 Aug 2008 01:28:00 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2008/08/24/typed-dataset-tableadapter-commandtimeout/</guid>
      <description><![CDATA[If you want to set CommandTimeout&nbsp; for Typed dataset's TableAdapter there is no public property...]]></description>
      <content:encoded><![CDATA[<P>If you want to set CommandTimeout&nbsp; for Typed dataset's TableAdapter there is no public property exposed.You could still&nbsp; either extend the partial TableAdapter class or modify the existing designer generated code to modify CommandTimeout behaviour. </P>
<P>For e.g. : I added DataSet1 to my windows application which has a TableAdapter called <STRONG>GetProductionLocationTableAdapter.</STRONG> <STRONG>GetProductionLocationTableAdapter</STRONG> calls a stored procedure called <STRONG>GetProductionLocation</STRONG>. To modify the default timeout setting of this select command, I modified TableAdapter constructor in <STRONG>DataSet1.Designer.cs</STRONG> as shown below. </P>
<P>public GetProductionLocationTableAdapter() { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.ClearBeforeFill = true; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>this.CommandCollection[0].CommandTimeout = 0; <BR></STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P>
<P>If you do not want to modify default dataset code, You could extend partial TableAdapter class as follow.</P>
<P><STRONG>public partial class GetProductionLocationTableAdapter { </STRONG></P>
<P><STRONG>&nbsp;&nbsp;&nbsp; public int cmdTimeout <BR>&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; get <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return this.CommandCollection[0].CommandTimeout; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } </STRONG></P>
<P><STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.CommandCollection[0].CommandTimeout = value; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } <BR>&nbsp;&nbsp;&nbsp; }</STRONG></P>
<P>You would&nbsp; have to then call this property from the windows form/web form / class using this TableAdapter, For e.g. in my code I called this property in load event of the form.</P>
<P>private void Form1_Load(object sender, EventArgs e) <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; { <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // TODO: This line of code loads data into the 'dataSet1.GetProductionLocation'&nbsp;&nbsp;&nbsp; table. You can move, or remove it, as needed. <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <STRONG>this.getProductionLocationTableAdapter.cmdTimeout = 0;&nbsp; <BR></STRONG>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; this.getProductionLocationTableAdapter.Fill(this.dataSet1.GetProductionLocation); <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</P>]]></content:encoded>
    </item>
    <item>
      <title>ODBC Trace not collecting logs ?</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/odbc-trace-not-collecting-logs</link>
      <pubDate>Fri, 22 Aug 2008 02:27:04 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2008/08/22/odbc-trace-not-collecting-logs/</guid>
      <description><![CDATA[If you are trying to run ODBC trace and do not see data being collected or log file being generated....]]></description>
      <content:encoded><![CDATA[<p>If you are trying to run ODBC trace and do not see data being collected or log file being generated. Try following steps.</p>  <p>1. From your registry key <b>HKEY_LOCAL_MACHINE\Software\ODBC\ODBC.ini\ODBC </b>make sure that the<b> </b>value for entry<b> Trace is 1.</b></p>  <p>2. Re-Start your computer.</p>  <p>3. After your computer re-starts, Launch the application against which you want to collect ODBC logs and execute the activity to be logged.</p>  <p>4. Go to ODBC Administrator from Start -&gt;Run -&gt; odbcad32.</p>  <p>5. Go to &#8220;Tracing&#8221; tab and Click &#8220;Stop Tracing Now&#8221;</p>  <p>6. Go to Log file path and view the logs. You should have some information being logged now.</p>  <p><b>Note:</b> If your operating system is 64 bit and application is 32 bit, The application would use 32-bit version of ODBC driver. You could manage 32-bit ODBC trace from c:\windows\syswow32\system32\odbcad32.exe on 64 bit Operating System.</p>]]></content:encoded>
    </item>
    <item>
      <title>ADO.NET 2.0 performance counters</title>
      <link>https://docs.microsoft.com/archive/blogs/runeetv/ado-net-2-0-performance-counters</link>
      <pubDate>Sun, 17 Aug 2008 22:39:09 GMT</pubDate>
      <dc:creator><![CDATA[runeetvashisht]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/runeetv/2008/08/17/ado-net-2-0-performance-counters/</guid>
      <description><![CDATA[ADO.NET 2.0 introduces a new set of performance counters that are specific to each provider. In the...]]></description>
      <content:encoded><![CDATA[<p>ADO.NET 2.0 introduces a new set of performance counters that are specific to each provider. In the Visual Studio 2005 release, the supported providers are the SQL Client and Microsoft&#8217;s Oracle Client managed providers. Those legacy .NET CLR data counters were deprecated in Visual Studio 2005, and they will no longer be populated.</p>  <p>The counters themselves will remain present in the product, however, so that code that checks for their existence doesn&#8217;t fail. For the managed SQL Client and Oracle Client, Ten new counters have been introduced . </p>  <p>The <strong>HardConnectsPerSecond</strong> counter was ported forward from the old ODBC performance counters. It represents the number of actual physical connections per second that are being made to a server. It ignores pooled connections, and only real database connection opens are counted.</p>  <p>The <strong>HardDisconnectsPerSecond</strong> was also ported from the old ODBC counters. It represents the number of actual physical disk connects per second being made to a server. It also ignores pooled connections. Only real database disconnects are counted.</p>  <p>The <strong>NumberOfActiveConnectionPoolGgroups</strong> is new to ADO.NET 2.0. It represents the number of unique connection strings.</p>  <p>The <strong>NumberOfActiveConnectionPools</strong> was ported from the CLR data counters from ADO.NET 1.0. It represents the current number of pools associated with the process or AppDomain.</p>  <p>The <strong>NumberOfInactiveConnectionPoolGroups</strong> is new to ADO.NET 2.0. It represents the number of unique connection strings that are waiting to be pruned by the garbage collector.</p>  <p>The <strong>NumberOfInactiveConnectinPools</strong> is also new in ADO.NET 2.0. It is the current number of pools associated with the process or AppDomain that are waiting to be reclaimed because they are idle. This might be a circumstance where their pool timeout, which is controlled by the connection string parameter, default = 10 minutes, has expired and they are waiting for garbage collection.</p>  <p>The <strong>NumberOfNonPooledConnections</strong> is also new in ADO.NET 2.0. It represents the current number of connections that are not using connection pooling.</p>  <p>The <strong>NumberOfPooledConnections</strong> was ported from the CLR .NET counters from 1.0. It represents the current number of connections in all pools associated with the process or AppDomain.</p>  <p>The <strong>NumberOfReclaimedConnections</strong>. This counter is new to ADO.NET 2.0. It represents the number of emancipated connections. Emancipated connections occur when the object that owns the connection goes out of scope. ADO.NET 2.0 reclaims them, when the pool runs out of connections or during normal thread cleanup.</p>  <p>The <strong>NumberOfStasisConnections.</strong> This counter is also new in ADO.NET 2.0. These would include connections that are enlisted in distributed transactions or are otherwise unavailable.</p>]]></content:encoded>
    </item>
  </channel>
</rss>