<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: But I don't want to learn .NET!</title>
	<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET/</link>
	<description>Comments on Ask MetaFilter post But I don't want to learn .NET!</description>
	<pubDate>Thu, 20 Mar 2008 16:14:45 -0800</pubDate>
	<lastBuildDate>Thu, 20 Mar 2008 16:14:45 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: But I don&apos;t want to learn .NET!</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET</link>	
		<description>How can I connect to a SQL Server 2005 database using windows authentication with PHP?   &lt;br /&gt;&lt;br /&gt; I&apos;m working on a small PHP/MSSQL application at work, but I can only connect to the database server using windows authentication and I can&apos;t figure out how to make that happen.  Is it even possible?</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2008:site.86682</guid>
		<pubDate>Thu, 20 Mar 2008 16:01:23 -0800</pubDate>
		<dc:creator>logic vs love</dc:creator>
		
			<category>database</category>
		
			<category>php</category>
		
			<category>mssql</category>
		
	</item> <item>
		<title>By: SpecialK</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1278909</link>	
		<description>Nope, it&apos;s not. You need to set up a user that has SQL Server authentication.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1278909</guid>
		<pubDate>Thu, 20 Mar 2008 16:14:45 -0800</pubDate>
		<dc:creator>SpecialK</dc:creator>
	</item><item>
		<title>By: patrickje</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1278931</link>	
		<description>Of course it&apos;s possible.&lt;br&gt;
&lt;br&gt;
Google:&lt;br&gt;
&lt;a href=&quot;http://www.google.com/search?q=sql+server+and+php+windows+authentication&quot;&gt;SQL Server and PHP windows authentication&lt;/a&gt;&lt;br&gt;
&lt;br&gt;
The more difficult thing is setting up the account that either IIS or Apache will login in as.  I&apos;m assuming your database server is distinct from your web server, which means your IIS or Apache process will have to login as a domain user that can be authenticated against.&lt;br&gt;
&lt;br&gt;
But of course it&apos;s possible, there&apos;s a whole mssql library for PHP.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1278931</guid>
		<pubDate>Thu, 20 Mar 2008 16:36:48 -0800</pubDate>
		<dc:creator>patrickje</dc:creator>
	</item><item>
		<title>By: devilsbrigade</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1278956</link>	
		<description>In particular, read: http://msdn2.microsoft.com/en-us/library/cc296205.aspx&lt;br&gt;
&lt;br&gt;
Keep in mind that this is meant for IIS, and may not work nicely with Apache.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1278956</guid>
		<pubDate>Thu, 20 Mar 2008 17:25:09 -0800</pubDate>
		<dc:creator>devilsbrigade</dc:creator>
	</item><item>
		<title>By: mphuie</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1278961</link>	
		<description>I have done this.&lt;br&gt;
&lt;br&gt;
What you want is the &lt;a href=&quot;http://msdn2.microsoft.com/en-us/data/cc299381.aspx&quot;&gt;MS SQL Server Driver for PHP&lt;/a&gt;.  Register one of the two DLLs, then add a reference to it in PHP.ini.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1278961</guid>
		<pubDate>Thu, 20 Mar 2008 17:32:14 -0800</pubDate>
		<dc:creator>mphuie</dc:creator>
	</item><item>
		<title>By: SpecialK</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1278962</link>	
		<description>Patrickje, you&apos;re half right and half not right. &lt;br&gt;
&lt;br&gt;
Using the default PHP driver for MSSQL, documented on php.net, you&apos;re actually using the FreeTDS drivers that were written before Microsoft got all snippety with their licensing and started suing people. The php_mssql extension is no longer compiled/shipped by default because of microsoft&apos;s lawyers, although I see now that Microsoft . FreeTDS &lt;b&gt;cannot&lt;/b&gt; use Windows Authentication with MS-SQL. (Trust me, I used to struggle with this daily.) &lt;br&gt;
&lt;br&gt;
Microsoft has released a &lt;a href=&quot;http://www.microsoft.com/sql/technologies/php/default.mspx&quot;&gt;PHP Driver for SQL Server 2005&lt;/a&gt; as a community preview... in other words, it&apos;s not production-ready code. This PHP driver *can* use Windows Authentication.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1278962</guid>
		<pubDate>Thu, 20 Mar 2008 17:33:09 -0800</pubDate>
		<dc:creator>SpecialK</dc:creator>
	</item><item>
		<title>By: purephase</title>
		<link>http://ask.metafilter.com/86682/But-I-dont-want-to-learn-NET#1279010</link>	
		<description>You can take an older ntwdblib.dll from a SQL 2000. if you&apos;re using IIS, you simply setup the site to run as a user with the necessary access to the database (you can do this with Apache as well, run the service as the user) and set mssql.secure_connection to &quot;on&quot; (1).&lt;br&gt;
&lt;br&gt;
Run all my sites this way and it works fine.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2008:site.86682-1279010</guid>
		<pubDate>Thu, 20 Mar 2008 18:43:27 -0800</pubDate>
		<dc:creator>purephase</dc:creator>
	</item>
	</channel>
</rss>
