RE: [PHP-WIN] Anybody have an example of connecting MSSQL?
| From: | Erik H. Mathy | Date: | Mon, 13 Aug 2001 15:33:02 +0000 |
| Subject: | RE: [PHP-WIN] Anybody have an example of connecting MSSQL? | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8812@lists.php.net to get a copy of this message | ||
Welcome to the free world! ;)
$db = mssql_connect("ServerName","Account","Password");
- Erik
P.S. I did .ASP for a while before I went to PHP3. PHP was a revelation
compared to whacking .ASP code. I enjoy PHP. I do not enjoy coding .ASP. All
IMHO, of course!!
> -----Original Message-----
> From: Jeff Howard [mailto:jeff.howard@berry-hinckley.com]
> Sent: Monday, August 13, 2001 10:31 AM
> To: php-windows@lists.php.net
> Subject: [PHP-WIN] Anybody have an example of connecting MSSQL?
>
>
> I have been extremely successful using ASP and MS-SQL for a long time, but
> am making a transition to PHP. I've tried connecting to the SQL Server
> database, but have been unsuccessful. The way a data source is called in
> ASP is:
>
> database.open "Provider=SQLOLEDB;User Id=user;Password=password;Initial
> Catalog=mydatabase;Data Source=DATABASESERVER\SQLSERVER"
>
> How can I translate this into PHP?
>
>
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net
> For additional commands, e-mail: php-windows-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>