Forums
This topic is locked
Mac OS X and DWMX - database connection
12 Jun 2003 21:12:57 A. B. posted:
I am having so many problems trying to connect to a SQL Server db via my Mac. I'm using DSN-less connections.I know the connection string works because I havr no connection problems on a pc.
Is there anyone out there who uses a Mac who can help me????
Thank you in advance...
Andrea
Replies
Replied 13 Jun 2003 01:58:28
13 Jun 2003 01:58:28 Charles Stratton replied:
hey, i had problems with sql server also. try this connection string, but change it in web.confing file. here is two one is to my local sqlserver and the other is to a remote on the network. hope this helps<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
<pre id=code><font face=courier size=2 id=code>
<appSettings>
<add key="MM_CONNECTION_HANDLER_connStr" value="sqlserver.htm" />
<add key="MM_CONNECTION_STRING_connStr" value="Trusted_Connection=yes;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Userarea;Data Source=Userarea;workstation id=user-601455" />
<add key="MM_CONNECTION_DATABASETYPE_connStr" value="SQLServer" />
<add key="MM_CONNECTION_SCHEMA_connStr" value="" />
<add key="MM_CONNECTION_CATALOG_connStr" value="" />
<add key="MM_CONNECTION_HANDLER_connlocal" value="sqlserver.htm" />
<add key="MM_CONNECTION_STRING_connlocal" value="Trusted_Connection=yes;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=(local);workstation id=user-601455" />
<add key="MM_CONNECTION_DATABASETYPE_connlocal" value="SQLServer" />
<add key="MM_CONNECTION_SCHEMA_connlocal" value="" />
<add key="MM_CONNECTION_CATALOG_connlocal" value="" />
</appSettings>
</font id=code></pre id=code>
leave out the workstation id if your not on a network.
Edited by - crstratton on 13 Jun 2003 02:00:30
<pre id=code><font face=courier size=2 id=code>
<appSettings>
<add key="MM_CONNECTION_HANDLER_connStr" value="sqlserver.htm" />
<add key="MM_CONNECTION_STRING_connStr" value="Trusted_Connection=yes;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Userarea;Data Source=Userarea;workstation id=user-601455" />
<add key="MM_CONNECTION_DATABASETYPE_connStr" value="SQLServer" />
<add key="MM_CONNECTION_SCHEMA_connStr" value="" />
<add key="MM_CONNECTION_CATALOG_connStr" value="" />
<add key="MM_CONNECTION_HANDLER_connlocal" value="sqlserver.htm" />
<add key="MM_CONNECTION_STRING_connlocal" value="Trusted_Connection=yes;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind;Data Source=(local);workstation id=user-601455" />
<add key="MM_CONNECTION_DATABASETYPE_connlocal" value="SQLServer" />
<add key="MM_CONNECTION_SCHEMA_connlocal" value="" />
<add key="MM_CONNECTION_CATALOG_connlocal" value="" />
</appSettings>
</font id=code></pre id=code>
leave out the workstation id if your not on a network.
Edited by - crstratton on 13 Jun 2003 02:00:30
Replied 13 Jun 2003 02:11:17
13 Jun 2003 02:11:17 A. B. replied:
Thank you so much for your response.
Pardon my ignorance, but what web.config file are you talking about? Does this go in my connections .asp file?
Thanks again.
Andrea
Pardon my ignorance, but what web.config file are you talking about? Does this go in my connections .asp file?
Thanks again.
Andrea
Replied 13 Jun 2003 18:14:31
13 Jun 2003 18:14:31 Charles Stratton replied:
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>
ok, so you are using asp and not asp.net. this is what I have used for asp for sqlserver. if this does not work?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> <pre id=code><font face=courier size=2 id=code><%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_ConnUserarea_STRING
MM_ConnUserarea_STRING = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Userarea;Data Source=Userarea;workstation id=user-601455"
%>
</font id=code></pre id=code>
ok, so you are using asp and not asp.net. this is what I have used for asp for sqlserver. if this does not work?
<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> <pre id=code><font face=courier size=2 id=code><%
' FileName="Connection_ado_conn_string.htm"
' Type="ADO"
' DesigntimeType="ADO"
' HTTP="false"
' Catalog=""
' Schema=""
Dim MM_ConnUserarea_STRING
MM_ConnUserarea_STRING = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Userarea;Data Source=Userarea;workstation id=user-601455"
%>
</font id=code></pre id=code>