<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:D="DAV:" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:st="&#1;" xmlns="http://www.w3.org/TR/REC-html40"
xmlns:ns0="http://schemas.microsoft.com/sharepoint/soap/workflow/"
xmlns:ns1="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:ns2="http://schemas.microsoft.com/office/2004/12/omml"
xmlns:ns3="http://schemas.openxmlformats.org/package/2006/relationships"
xmlns:ns4="http://schemas.microsoft.com/exchange/services/2006/types"
xmlns:ns5="http://schemas.microsoft.com/exchange/services/2006/messages"
xmlns:ns6="urn:schemas-microsoft-com:">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--a:link
        {mso-style-priority:99;}
span.MSOHYPERLINK
        {mso-style-priority:99;}
a:visited
        {mso-style-priority:99;}
span.MSOHYPERLINKFOLLOWED
        {mso-style-priority:99;}
p
        {mso-style-priority:99;}

 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal;
        font-family:Calibri;
        color:#1F497D;}
span.EmailStyle19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:484854539;
        mso-list-type:hybrid;
        mso-list-template-ids:252341244 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l0:level1
        {mso-level-tab-stop:.5in;
        mso-level-number-position:left;
        text-indent:-.25in;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am a bit confused. First off I have
tried both the port and the service name.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The section that I found referencing the
etc\services file<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&#8220;The direct way is simply the
listener port and protocol. The syntax is
&#8220;&lt;port&gt;/&lt;protocol&gt;&#8221;, for example,
&#8220;5151/tcp&#8221;. <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>The indirect way is a symbolic name, for
example, &#8220;esri_sde_oracle.&#8221; The ArcSDE provider translates the
symbolic name into a port and protocol by looking the symbolic name up in the
C:\WINDOWS\System32\drivers\etc\services file. An example of an entry in the
services file is esri_sde_oracle 5151/tcp. &#8220;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Still wants a port number in the services
file. Just a bit earlier in the same page it states&#8230; &#8220;When you
install an ArcSDE server, you configure it to listen on a port for database
connect requests. Each ArcSDE server listens on its own dedicated listener
port.&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>However a forum reply talking directly to
esri and asking directly about arcsde workgroup I got the following response.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>&#8220;</span></font><font size=3><span
style='font-size:11.5pt'>Workgroup ArcSDE is not, strictly speaking, ArcSDE. It
does not <br>
have a giomgr service process (all connections must be through <br>
Direct Connect), and command-line tools are not supported. <br>
<br>
You can try to use an appropriate Direct Connect connection <br>
string in third-party applications, but this is not supported.&#8221;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'>Also in The Essential FDO it states&#8230;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'>&#8220;It is possible for an ArcSDE client to connect directly to an
Oracle or SQL Server database provided the required drivers are installed. This
type of &#8216;direct&#8217; connection has not been tested with the ArcSDE
Provider, and so is not supported. &#8220;<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'>Cutting through everything I have learned here it seems<o:p></o:p></span></font></p>

<ol style='margin-top:0in' start=1 type=1>
 <li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=3
     face="Times New Roman"><span style='font-size:11.5pt'>arcsde workgroup
     will only connect by direct connect<o:p></o:p></span></font></li>
 <li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=3
     face="Times New Roman"><span style='font-size:11.5pt'>fdo arcsde provider
     does not support direct connect<o:p></o:p></span></font></li>
 <li class=MsoNormal style='mso-list:l0 level1 lfo1'><font size=3
     face="Times New Roman"><span style='font-size:11.5pt'>there seems to be
     some mystery about arcsde workgroups workings<o:p></o:p></span></font></li>
</ol>

<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:11.5pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:11.5pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:11.5pt'>I hope this clarifies the problem a little and I hope
it helps someone see a path to solution for me.<o:p></o:p></span></font></p>

<p class=MsoNormal style='margin-left:.25in'><font size=3 face="Times New Roman"><span
style='font-size:11.5pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'>Thanks<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
11.5pt'>Brad<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
fdo-users-bounces@lists.osgeo.org [mailto:fdo-users-bounces@lists.osgeo.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Robert Fortin<br>
<b><span style='font-weight:bold'>Sent:</span></b> Thursday, October 09, 2008
10:34 AM<br>
<b><span style='font-weight:bold'>To:</span></b> FDO Users Mail List<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [fdo-users] SDE
Connection Parameters</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Brad,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Have you tried
setting up the etc/services file and using this to conect to ArcSDE instead of
the 5151 port? See <a
href="http://fdo.osgeo.org/files/fdo/docs/FET_TheEssentialFDO/index.html">http://fdo.osgeo.org/files/fdo/docs/FET_TheEssentialFDO/index.html</a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Also is that in
direct connect mode?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'>Robert Fortin<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color="#1f497d" face=Calibri><span
style='font-size:11.0pt;font-family:Calibri;color:#1F497D'><o:p>&nbsp;</o:p></span></font></p>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>
fdo-users-bounces@lists.osgeo.org [mailto:fdo-users-bounces@lists.osgeo.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Brad Nesom<br>
<b><span style='font-weight:bold'>Sent:</span></b> Wednesday, October 01, 2008
1:39 PM<br>
<b><span style='font-weight:bold'>To:</span></b> FDO Users Mail List<br>
<b><span style='font-weight:bold'>Subject:</span></b> RE: [fdo-users] SDE
Connection Parameters<o:p></o:p></span></font></p>

</div>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=2 face=Tahoma><span
style='font-size:10.0pt;font-family:Tahoma'>Good thing Rob,<br>
you didn't happen to come across the same for sde lite and sql server lite did
you<br>
&gt; Date: Wed, 1 Oct 2008 07:13:47 -0700<br>
&gt; From: Rob.Sosnowski@itd.idaho.gov<br>
&gt; To: fdo-users@lists.osgeo.org<br>
&gt; Subject: Re: [fdo-users] SDE Connection Parameters<br>
&gt; <br>
&gt; <br>
&gt; RESOLVED:<br>
&gt; <br>
&gt; IConnectionManager connectionManager =<br>
&gt; FeatureAccessManager.GetConnectionManager();<br>
&gt; IConnection connection =<br>
&gt; connectionManager.CreateConnection(providerName);<br>
&gt; IConnectionPropertyDictionary connectionPropertyDictionary;<br>
&gt; connectionPropertyDictionary =<br>
&gt; connection.ConnectionInfo.ConnectionProperties;<br>
&gt; connectionPropertyDictionary.SetProperty(&quot;Server&quot;,<br>
&gt; &quot;servername&quot;);<br>
&gt; connectionPropertyDictionary.SetProperty(&quot;Instance&quot;,
&quot;5151&quot;);<br>
&gt; connectionPropertyDictionary.SetProperty(&quot;Username&quot;,<br>
&gt; &quot;username&quot;);<br>
&gt; connectionPropertyDictionary.SetProperty(&quot;Password&quot;,<br>
&gt; &quot;password&quot;);<br>
&gt; connectionPropertyDictionary.SetProperty(&quot;Datastore&quot;,<br>
&gt; &quot;database&quot;);<br>
&gt; OSGeo.FDO.Connections.ConnectionState connectState =<br>
&gt; connection.Open();<br>
&gt; <br>
&gt; <br>
&gt; surrounded wrote:<br>
&gt; &gt; <br>
&gt; &gt; Hi,<br>
&gt; &gt; <br>
&gt; &gt; Been using FDO with shapefiles; now I wish to use with SDE layers.
Can<br>
&gt; &gt; someone provide me with the code to make a connection to a SDE
database. <br>
&gt; &gt; Our SDE layers are on MS SQL Server if that is important.<br>
&gt; &gt; <br>
&gt; &gt; Thanks.....Rob<br>
&gt; &gt; <br>
&gt; &gt; <br>
&gt; <br>
&gt; -- <br>
&gt; View this message in context:
http://n2.nabble.com/SDE-Connection-Parameters-tp1129033p1131481.html<br>
&gt; Sent from the FDO Users mailing list archive at Nabble.com.<br>
&gt; <br>
&gt; _______________________________________________<br>
&gt; fdo-users mailing list<br>
&gt; fdo-users@lists.osgeo.org<br>
&gt; http://lists.osgeo.org/mailman/listinfo/fdo-users<o:p></o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'>

<hr size=2 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma'>See how Windows connects the people, information, and fun
that are part of your life. <a
href="http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/"
target="_new">See Now</a><o:p></o:p></span></font></p>

</div>

</body>

</html>