 | News Feed |
 | Jobs Feed |
Sections
|
| feed this: |  |
Brian Swan's Blog: MSSQL vs. SQLSRV What's the Difference? (Part 2)
by Chris Cornutt March 12, 2010 @ 09:37:44
Brian Swan has posted the second part of his series looking at the difference between the MSSQL driver and the SQLSRV drivers for connecting to SQL Server databases from PHP (part one can be found here). He gets a bit more detailed in this second post.
I'm aiming to provide a high-level comparison that you might use if you were considering moving to the SQLSRV extension, but I think there is also some interesting information if you are just curious about the differences. [...] In cases where a short note wasn't enough (and there were several of these), I've provided relevant links to topics in the SQLSRV documentation.
He talks about things that one offers that the other doesn't, like prepared statements (sqlsrv) and working with stored procedures (mssql). He also mentions error handlng, persistent connections and scrollable cursors in sqlsrv. Finally he gets into a one-to-one function comparison of the two drivers with the sqlsrv function list coming up a bit short compared to the features of the more recend (and well-supported) mssql driver.
voice your opinion now!
mssql driver sqlsrv microsoft sqlserver compare
Brian Swan's Blog: SQL Server Driver for PHP Cheat Sheet
by Chris Cornutt March 03, 2010 @ 09:14:55
Following in the steps of some of his previous posts looking at the combination of PHP and SQL Server, Brian Swan has a new post to his MSDN blog today - a SQL Server driver cheat sheet.
You might think that I would know the driver API by heart at this point, but alas, my many trips back to the documentation are proof that my brain is like a fixed length queue - if something new goes in, something else must go out. So, I've created a cheat sheet that saves me some of those trips to the documentation. I'm hoping that others might find it helpful too
He mentions a few things that make the sheet particularly useful - signatures for the functions are included but not the type info for the parameters, a list of PHPTYPE constants, FETCH constants (for the return type) and CURSOR constants (for defining cursor return type). You can see a preview of it here (as a PNG) and grab the actual sheet here as a PDF.
voice your opinion now!
sqlserver driver cheatsheet reference pdf
Brian Swan's Blog: SQL Server Driver for PHP Understanding Windows Authentication
by Chris Cornutt February 12, 2010 @ 08:47:31
Continuing in his SQL Server driver series, Brian Swan has a new post to his MSDN blog about handling authentication with the integrated Windows support that makes connecting to a server simpler.
I must confess that when I first tried using Windows authentication with the driver, I was puzzled. I was logged in to my computer as Microsoftbrian.swan, and I know that is a valid login for my database server. [...] he syntax for using Windows Authentication with the driver was easy, but understanding what identity was being used in the connection attempt was confusing.
He finally figured it out, though - the identity of the user on the connection would always be the user the web server was running as. With this knowledge, he was then able to look into other options that he could use to fine tune the connection with the FastCGI component and its impersonation abilities.
voice your opinion now!
sqlserver authentication driver windows
Brian Swan's Blog: Getting Started with the SQL Server Driver for PHP
by Chris Cornutt February 10, 2010 @ 10:32:17
Brian Swan has posted a new guide for those wanting to get started using the SQL Server driver for PHP in their application development. His target of choice for the example is a SQL Server Express database.
I'll build a web page that exposes enough of the driver functionality for you to understand the basics of connecting to a server, inserting and retrieving data, and handling errors. A quick note about simplicity: The web page I'll build in this post is very simple '" it's just a simple form, really. It collects information about people who are registering for some fictional event. I'm intentionally keeping it very simple so I can focus on the PHP code for using the driver.
He walks you through the full process - everything from the installation of the driver to creating the database and, finally, building the page that connects to the SQL Server database and inserts/selects data from the sample table.
voice your opinion now!
sqlserver driver tutorial express database
|
Community Events
Don't see your event here? Let us know!
|