<!doctype html public "-//W3C//DTD W3 HTML//EN">
<html><head><style type="text/css"><!--
blockquote, dl, ul, ol, li { padding-top: 0 ; padding-bottom: 0 }
 --></style><title>RE: SDE on SQL Server</title></head><body>
<div>Given that information, I think your CONNECTION and DATA strings
should look like this:</div>
<div><br></div>
<div>CONNECTION
&quot;BILLP4,port:5155,BOUND_SDE,sde,password&quot;</div>
<div>DATA &quot;BOUND_SDE.STATESP020,SHAPE&quot;</div>
<div><br></div>
<div>The 3rd argument there is the dbname, which should be bound_sde.&nbsp;
Also, it is generally bad practice to use the &quot;sde&quot; user for
anything but maintenance, as it can be confusing, and because user
tables can muck up the sde schema (I've never had this cause explicit
trouble, but it can make things messy).</div>
<div><br></div>
<div>If you haven't already seen it, I've put together a document on
the wiki that outlines some more of this stuff.&nbsp; &lt;<font
face="Lucida Grande" size="-4"
color="#000000"
>http://mapserver.gis.umn.edu/cgi-bin/wiki.pl?MapServerSDE</font>&gt;
</div>
<div><br></div>
<div>Howard</div>
<div><br></div>
<div><br></div>
<blockquote type="cite" cite>Hi Howard.<br>
<br>
No, the database name is BOUND_SDE, the username is
&quot;sde&quot;.<br>
<br>
I have also tried:<br>
DATA &quot;BOUND_SDE.STATESP020,SHAPE&quot; as well as<br>
DATA &quot;STATESP020,SHAPE&quot;<br>
<br>
The client is windows, and I am not *yet* using FastCGI. (Though
that<br>
will likely change, based on one of your recent posts :)<br>
<br>
I also believe service packs are in sync, if that has any bearing.<br>
<br>
Thanks,<br>
<br>
Bill<br>
<br>
<br>
<br>
&gt; -----Original Message-----<br>
&gt; From: Howard Butler [mailto:hobu@iastate.edu]<br>
&gt; Sent: Tuesday, March 15, 2005 9:25 AM<br>
&gt; To: Bill Tenbroeck<br>
&gt; Cc: MAPSERVER-USERS@LISTS.UMN.EDU<br>
&gt; Subject: Re: SDE on SQL Server<br>
&gt;<br>
&gt; Bill,<br>
&gt;<br>
&gt; I have confirmed by looking through the code that the
&quot;database&quot;<br>
&gt; argument *is* being passed into the connection creation function,
so<br>
&gt; I don't think that is the problem.&nbsp; Is the name of your
&quot;single<br>
&gt; database model&quot; database actually &quot;sde&quot;?<br>
&gt;<br>
&gt; Is the client windows or unix (this shouldn't make much of a<br>
&gt; difference)?&nbsp; Are there any complicating factors like
FastCGI going<br>
&gt; on here too?<br>
&gt;<br>
&gt; Howard<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; &gt;Has anyone had any luck connecting using the &quot;Single
database Model&quot;<br>
on<br>
&gt; SQL<br>
&gt; &gt;Server. (Each DB stands alone and has its own service and
port<br>
number.)<br>
&gt; &gt;<br>
&gt; &gt;I have 2 servers set up, one using the &quot;multiple
database model&quot; and<br>
can<br>
&gt; &gt;connect to Mapserver successfully. Against the single
database model<br>
&gt; server<br>
&gt; &gt;I'm getting the following error:<br>
&gt; &gt;<br>
&gt; &gt;msSDELayerOpen(): SDE error. SE_connection_create(): Invalid
database<br>
&gt; name.<br>
&gt; &gt;(-162)<br>
&gt; &gt;<br>
&gt; &gt;I am using the following in the layer definition:<br>
&gt; &gt;<br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTIONTYPE SDE<br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; CONNECTION
&quot;BILLP4,port:5155,sde,xxx,xxx&quot;<br>
&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; DATA
&quot;BOUND_SDE.SDE.STATESP020,SHAPE&quot;<br>
&gt; &gt;<br>
&gt; &gt;On the DATA line I have tried every permutation I can think
of; the<br>
&gt; example<br>
&gt; &gt;shown is the way it shows up in ArcExplorer.</blockquote>
<div><br></div>
</body>
</html>