<?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>Shimon Krokhmal's blog - NightDuck</title>
    <link>http://www.krokhmal.com/</link>
    <description>medium : .NET | JavaScript | Secure coding | Databases | Sql Server | Oracle | CodeSmith | SPS | Life</description>
    <language>en-us</language>
    <copyright>Shimon Krokhmal</copyright>
    <lastBuildDate>Sat, 14 Jul 2007 07:59:46 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.0.7226.0</generator>
    <managingEditor>Shimonkr@gmail.com</managingEditor>
    <webMaster>Shimonkr@gmail.com</webMaster>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=ba43304c-9ecf-4e34-9b19-b212d14dc411</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,ba43304c-9ecf-4e34-9b19-b212d14dc411.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,ba43304c-9ecf-4e34-9b19-b212d14dc411.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=ba43304c-9ecf-4e34-9b19-b212d14dc411</wfw:commentRss>
      <slash:comments>1</slash:comments>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
          <strong>
            <font size="3">or, What have the latest windows 2003 service pack 2 has done
to my sql server ?</font>
          </strong>
        </p>
        <p>
          <strong>
            <font size="3">
            </font>
          </strong>
          <br />
Today i scheduled for my self some working time on the <a href="http://www.nightduck.com">NightDuck</a> project
(Coming Soon),<br />
but suddenly something went wrong, the sql server, which installed on a physically
different machine than the development rig, gave me the following message:
</p>
        <p>
"<strong>Sql server does not exist or access denied ConnectionOpen(Connect())</strong>"
</p>
        <p>
what could have go wrong ?
</p>
        <p>
the interesting part is when i tried to connect to the server remotely (remote desktop)
and connecting to the Sql server from the localhost, it had no problems what so ever.<br />
Since the sql server machine is not a dependency of a production application or something
like that, i went wild on the experiments to try and fix the problem
</p>
        <ul>
          <li>
Lets restart the sql server service - no good. 
</li>
          <li>
Router configurations and port forwarding - nothing has changed since the last time
i worked on the project, thats not the problem either 
</li>
          <li>
SQL SERVER user - defining a new user did not solved the problem either</li>
        </ul>
        <p>
so i started googling on the subject, and found a few things, like this one for example
at the Microsoft site : 
<br /><a href="http://support.microsoft.com/default.aspx?kbid=328306">Potential causes of
the "SQL Server does not exist or access denied" error message</a><br /><br />
this article has a list of things that may cause this problem (hard to guess by it's
name).<br />
checking the relevant ones, i came across <a href="http://support.microsoft.com/kb/287932/">this</a> article
about ports needed by the sql server.<br />
i made a little test to check if the ports are ok, i tried to telnet the machine
from the dev PC on the 1433 port, but with no luck,<br />
in an effort to isolate the problem i tried that from the localhost of the server,
telneting to the localhost on port 1433, which gave me an error "could not connect...".<br />
this is what i was looking for !<br />
At this point the problem is completely isolated, why ?<br /></p>
        <ul>
          <li>
the router configuration is not an issue (request does not go out from the machine) 
</li>
          <li>
the development rig is not part of the equation anymore 
</li>
          <li>
firewall is not the problem</li>
        </ul>
        <p>
based on these symptoms, I've searched once more, and stumbled upon a <a href="http://www.dbforums.com/t976301.html">forum
thread</a> about a very similar issue, when installing service pack 2 on windows XP
causes the same effect.<br />
Apparently, if you have an out of date version of the file DBNETLIB.dll ,the Service
Pack 2 disables TCP/IP access to MS SQL Server. 
<br />
This is a defense against the Slammer worm. (some ugly work around by Microsoft a
have to say...)<br /></p>
        <p>
the solution is installing the <a href="http://www.microsoft.com/downloads/details.aspx?familyid=9552d43b-04eb-4af9-9e24-6cde4d933600&amp;displaylang=en">SQL
Server 200 security tools</a> , which sets things back to normal.
</p>
        <p>
since the windows 2003 service pack 2 is quite new, i guess this thread will be useful
</p>
        <br />
        <p>
          <b>update :<br /></b>Just wondering how many others encountered this specific problem,<br />
if you find this info useful, please leave a comment.<b><br /></b></p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=ba43304c-9ecf-4e34-9b19-b212d14dc411" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>Why did SQL Server 2000 stopped connecting remotely ?</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,ba43304c-9ecf-4e34-9b19-b212d14dc411.aspx</guid>
      <link>http://www.krokhmal.com/2007/07/14/WhyDidSQLServer2000StoppedConnectingRemotely.aspx</link>
      <pubDate>Sat, 14 Jul 2007 07:59:46 GMT</pubDate>
      <description>&lt;p&gt;
&lt;strong&gt;&lt;font size="3"&gt;or, What have the latest windows 2003 service pack 2 has done
to my sql server ?&lt;/font&gt;&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;&lt;font size="3"&gt;&lt;/font&gt;&lt;/strong&gt;
&lt;br&gt;
Today i scheduled for my self some working time on the &lt;a href="http://www.nightduck.com"&gt;NightDuck&lt;/a&gt; project
(Coming Soon),&lt;br&gt;
but suddenly something went wrong, the sql server, which installed on a physically
different machine than the development rig, gave me the following message:
&lt;/p&gt;
&lt;p&gt;
"&lt;strong&gt;Sql server does not exist or access denied ConnectionOpen(Connect())&lt;/strong&gt;"
&lt;/p&gt;
&lt;p&gt;
what could have go wrong ?
&lt;/p&gt;
&lt;p&gt;
the interesting part is when i tried to connect to the server remotely (remote desktop)
and connecting to the Sql server from the localhost, it had no problems what so ever.&lt;br&gt;
Since the sql server machine is not a dependency of a production application or something
like that, i went wild on the experiments to try and fix the problem
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
Lets restart the sql server service - no good. 
&lt;/li&gt;
&lt;li&gt;
Router configurations and port forwarding - nothing has changed since the last time
i worked on the project, thats not the problem either 
&lt;/li&gt;
&lt;li&gt;
SQL SERVER user - defining a new user did not solved the problem either&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
so i started googling on the subject, and found a few things, like this one for example
at the Microsoft site : 
&lt;br&gt;
&lt;a href="http://support.microsoft.com/default.aspx?kbid=328306"&gt;Potential causes of
the "SQL Server does not exist or access denied" error message&lt;/a&gt;
&lt;br&gt;
&lt;br&gt;
this article has a list of things that may cause this problem (hard to guess by it's
name).&lt;br&gt;
checking the relevant ones, i came across &lt;a href="http://support.microsoft.com/kb/287932/"&gt;this&lt;/a&gt;&amp;nbsp;article
about ports needed by the sql server.&lt;br&gt;
i made&amp;nbsp;a little test to check if the ports are ok, i tried to telnet the machine
from the dev PC on the 1433 port, but with no luck,&lt;br&gt;
in an effort to isolate the problem i tried that from the localhost of the server,
telneting to the localhost on port 1433, which gave me an error "could not connect...".&lt;br&gt;
this is what i was looking for !&lt;br&gt;
At this point the problem is completely isolated, why ?&lt;br&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
the router configuration is not an issue (request does not go out from the machine) 
&lt;/li&gt;
&lt;li&gt;
the development rig is not part of the equation anymore 
&lt;/li&gt;
&lt;li&gt;
firewall is not the problem&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
based on these symptoms, I've searched once more, and stumbled upon a &lt;a href="http://www.dbforums.com/t976301.html"&gt;forum
thread&lt;/a&gt; about a very similar issue, when installing service pack 2 on windows XP
causes the same effect.&lt;br&gt;
Apparently, if you have an out of date version of the file DBNETLIB.dll ,the Service
Pack 2 disables TCP/IP access to MS SQL Server. 
&lt;br&gt;
This is a defense against the Slammer worm. (some ugly work around by Microsoft a
have to say...)&lt;br&gt;
&lt;/p&gt;
&lt;p&gt;
the solution is installing the &lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=9552d43b-04eb-4af9-9e24-6cde4d933600&amp;amp;displaylang=en"&gt;SQL
Server 200 security tools&lt;/a&gt;&amp;nbsp;, which sets things back to normal.
&lt;/p&gt;
&lt;p&gt;
since the windows 2003 service pack 2 is quite new, i guess this thread will be useful
&lt;/p&gt;
&lt;br&gt;
&lt;p&gt;
&lt;b&gt;update :&lt;br&gt;
&lt;/b&gt;Just wondering how many others encountered this specific problem,&lt;br&gt;
if you find this info useful, please leave a comment.&lt;b&gt;
&lt;br&gt;
&lt;/b&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=ba43304c-9ecf-4e34-9b19-b212d14dc411" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,ba43304c-9ecf-4e34-9b19-b212d14dc411.aspx</comments>
      <category>Microsoft/Windows/Windows 2003 server</category>
      <category>NightDuck</category>
      <category>Sql Server 2000</category>
    </item>
    <item>
      <trackback:ping>http://www.krokhmal.com/Trackback.aspx?guid=cf8c1f95-d0cd-4dc4-acdd-75355936f76c</trackback:ping>
      <pingback:server>http://www.krokhmal.com/pingback.aspx</pingback:server>
      <pingback:target>http://www.krokhmal.com/PermaLink,guid,cf8c1f95-d0cd-4dc4-acdd-75355936f76c.aspx</pingback:target>
      <dc:creator>Shimon krokhmal</dc:creator>
      <wfw:comment>http://www.krokhmal.com/CommentView,guid,cf8c1f95-d0cd-4dc4-acdd-75355936f76c.aspx</wfw:comment>
      <wfw:commentRss>http://www.krokhmal.com/SyndicationService.asmx/GetEntryCommentsRss?guid=cf8c1f95-d0cd-4dc4-acdd-75355936f76c</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
No, I'm no retiring from the coding field...<br />
actually I'm in the opposite direction.<br />
the last few months I've been working on a new system thats about to go online in
the next few months.<br />
busy as hell in architecture issues, coding issues and more...<br />
i decided to take the opportunity of this project and Finlay get into the asp.net
2.0 .<br />
so i tried to do some coding here
</p>
        <p class="HighlightedCode">
          <span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;">Convert.ToDotNet2(Shimon);</span>
        </p>
        <p>
but that only returned an exception of InvalidCasting.<br />
so, i sat on my bottom and started to learn all that is to know to introduce myself
to the new features (yes, i know it's about time).
</p>
        <p>
from what i can see, asp.net 2.0 will introduce to the world a lot of "drag&amp;drop"
programmers.<br />
take for example the login controls that come built-in:<br /></p>
        <ul>
          <li>
it's great for the beginner programmer. 
</li>
          <li>
this is one well of a !#@#!!# for an architect.</li>
        </ul>
        <p>
i mean, they coupled a GUI to a "generic" DB structure, Why ???<br />
what if i want to manage my roles and permissions in other manner (say hierarchical
roles...),<br />
or just manage the user in my DB with all the other tables so i can do some easy data
mining ?<br />
to do that i need to write some providers to the controls that equals to implementing
the business logic from scratch.<br />
i will extent later on that matter (some other post...)
</p>
        <p>
building this project as a one man show gave me an oppertunity of a vast view on a
system besides playing with one module.<br />
from now on, i'll continue update here the progress of the project.
</p>
        <p>
 
</p>
        <img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=cf8c1f95-d0cd-4dc4-acdd-75355936f76c" />
        <br />
        <hr />
Shimon krokhmal, a part of the Krokhmal family</body>
      <title>Why did Shimon stoped posting ?</title>
      <guid isPermaLink="false">http://www.krokhmal.com/PermaLink,guid,cf8c1f95-d0cd-4dc4-acdd-75355936f76c.aspx</guid>
      <link>http://www.krokhmal.com/2007/06/09/WhyDidShimonStopedPosting.aspx</link>
      <pubDate>Sat, 09 Jun 2007 21:51:44 GMT</pubDate>
      <description>&lt;p&gt;
No, I'm no retiring from the coding field...&lt;br&gt;
actually I'm in the opposite direction.&lt;br&gt;
the last few months I've been working on a new system thats about to go online in
the next few months.&lt;br&gt;
busy as hell in architecture issues, coding issues and more...&lt;br&gt;
i decided to take the opportunity of this project and Finlay get into the asp.net
2.0 .&lt;br&gt;
so i tried to do some coding here
&lt;/p&gt;
&lt;p class="HighlightedCode"&gt;
&lt;span style="font-size: 11px; color: black; font-family: Courier New; background-color: transparent;"&gt;Convert.ToDotNet2(Shimon);&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
but that only returned an exception of InvalidCasting.&lt;br&gt;
so, i sat on my bottom and started to learn all that is to know to introduce myself
to the new features (yes, i know it's about time).
&lt;/p&gt;
&lt;p&gt;
from what i can see, asp.net 2.0 will introduce to the world a lot of "drag&amp;amp;drop"
programmers.&lt;br&gt;
take for example the login controls that come built-in:&lt;br&gt;
&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
it's great for the beginner programmer. 
&lt;/li&gt;
&lt;li&gt;
this is one well of a !#@#!!# for an architect.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;
i mean, they coupled a GUI to a "generic" DB structure, Why ???&lt;br&gt;
what if i want to manage my roles and permissions in other manner (say hierarchical
roles...),&lt;br&gt;
or just manage the user in my DB with all the other tables so i can do some easy data
mining ?&lt;br&gt;
to do that i need to write some providers to the controls that equals to implementing
the business logic from scratch.&lt;br&gt;
i will extent later on that matter (some other post...)
&lt;/p&gt;
&lt;p&gt;
building this project as a one man show gave me an oppertunity of a vast view on a
system besides playing with one module.&lt;br&gt;
from now on, i'll continue update here the progress of the project.
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.krokhmal.com/aggbug.ashx?id=cf8c1f95-d0cd-4dc4-acdd-75355936f76c" /&gt;
&lt;br /&gt;
&lt;hr /&gt;Shimon krokhmal, a part of the Krokhmal family</description>
      <comments>http://www.krokhmal.com/CommentView,guid,cf8c1f95-d0cd-4dc4-acdd-75355936f76c.aspx</comments>
      <category>.Net 2.0</category>
      <category>Architectural solutions</category>
      <category>Life</category>
      <category>NightDuck</category>
    </item>
  </channel>
</rss>