How to set up ColdFusion 10 with MS SQL Server 2012 Express
These are the steps I followed to set it up. I found I had to use SQL server's "sa" account in order to get it working properly, but I would not recommend doing this on anything which requires security.- Install MS SQL Server, choose the option to install a 'New SQL stand-alone installation...'
- Choose the option to customise each feature and select the features as shown below.
- In the Database Engine Configuration page, choose Mixed Mode and create a password as well as adding the current Windows user account (to easily allow access with SQL Server Management Studio).
- Complete the installation and then open the SQL Server Configuration Manager.
- On the side panel, expand SQL Server Network Configuration, and select Protocols for SQLEXPRESS. Enable TCP/IP and click properties.
- In the properties tab, set the port number for each field in the IP Addresses tab, I used port 3306.
- Again on the side panel, select SQL Server Services and restart SQL Server (SQLEXPRESS).
- Open MS SQL Server Management Studio and login using Windows authentication.
- Expand security > logins, right click properties on "sa". Set the password.
- Open ColdFusion Administrator and select the Data Sources tab.
- Enter the name you wish to use to refer to the data source, and select MS SQL Server for the driver.
- Enter the database name, server IP address and port set in step 6, and username "sa" with the password set in step 9 and submit. If all is well, ColdFusion should display a confirmation message in green text.
I hope you found this helpful. Please leave me a comment.
Nice
ReplyDeleteYou have to use the instance name on the server parameter, normally that would be:
ReplyDelete192.168.0.10\sqlexpress for your example. Then you can use security and db user as usual.
thaks!
ReplyDeleteI can confirm that changing the server (I have both CF and SQL on the same box) to 127.0.0.1\sqlexpress did the trick for me.
ReplyDeletethanks.
This comment has been removed by a blog administrator.
ReplyDeleteDetailed and descriptive articles written in this blog is really very helpful for me as well as for other who seeking such kind of knowledge. It is definitely going to become useful in coming future.
ReplyDeletevSan 6 for Remote Office Branch Office