Welcome, Guest
Username: Password: Remember me

TOPIC: Using component creator with MS SQL Server

Using component creator with MS SQL Server 30 Apr 2013 14:41 #7107

  • tlegens
  • tlegens's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
I've been given a requirement to create a component for a project. The server provided is a Windows server with IIS7 and MS SQL Server as the DB. No budging on the environment.

My question is, can this tool be used to create the component and integrate with the MS SQL server? I have successfully installed the environment using web matrix and the website runs great on IIS including SEF URL features.
Last Edit: 02 May 2013 12:20 by tlegens.
The administrator has disabled public write access.

Re: Using component creator with MS SQL Server 08 May 2013 11:57 #7154

  • tlegens
  • tlegens's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
So, I've given this 8 days and still not a peep. Can I at least get some feedback? Even a you can't use it would do. Is anyone out there?
The administrator has disabled public write access.

Re: Using component creator with MS SQL Server 08 May 2013 12:58 #7155

  • admin
  • admin's Avatar
  • Online
  • Administrator
  • Chef
  • Posts: 3711
  • Thank you received: 984
  • Karma: 140
On my own I never tried Joomla on Sql Server. In the past I worked with it, but since I am a Joomla addict, I never did any project with Windows servers.

I think it is a general Joomla question.
Cook is not specialy designer for that, but I would not think it a problem.

When you instance your DB in the table and in the model, just change database driver from those supported by Joomla.

If you want to use only for one particular table, then override the __constructor of your both models.
Change the $options in parameters. (By memory, because I do not have much time to check)

Do the same, when you want to catch a table outside of your component (or another MySql DB) and drive it with your own MVC structure.

That's it.
If you cannot do it I cam come back with more detailled explainations...
Coding is now a piece of cake
The administrator has disabled public write access.

Re: Using component creator with MS SQL Server 08 May 2013 13:12 #7156

  • tlegens
  • tlegens's Avatar
  • Offline
  • New Member
  • Posts: 3
  • Karma: 0
One of the issues is the script doesn't install the database. I changed the driver in the xml file to use the Sqlsrv driver but I think it's in the syntax of the install script.

I manually added the tables to the MS SQL database and didn't receive an error but nothing was getting entered into the tables.

I'm not sure what you mean by overriding the constructors. What folders/file are you speaking of?
The administrator has disabled public write access.

Re: Using component creator with MS SQL Server 08 May 2013 16:12 #7157

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Think Joomla3 is multi db, so version 2 of cook will be cool
The administrator has disabled public write access.
Time to create page: 0.100 seconds

Get Started