Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Problems running Cakephp2.1.1 with SQL Server 2008
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  6 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Felipe Roman  
View profile  
 More options Apr 12 2012, 12:34 pm
From: Felipe Roman <roman.fel...@gmail.com>
Date: Thu, 12 Apr 2012 13:34:32 -0300
Local: Thurs, Apr 12 2012 12:34 pm
Subject: Problems running Cakephp2.1.1 with SQL Server 2008
Hi,

Do you know if the CakePHP 2.1.1 is compatible with SQL Server 2008 ?
If yes could you please send me some how to ?

I configured my local development environment (PHP 5.3.10 and Apache
2.2.21 on Windows 7)

I loaded the extensions pdo_sqlsrv  and sqlsrv (on PHP 32 bits, I
could not load on PHP 64 bits)

I also download and copied the files dbo_sqlsrv.php and DboSource.php
into my app/Model/Datasource folder but I'm getting the follow error:

Fatal error: Class 'DboSource' not found in
C:\wamp\www\project\app\Model\Datasource\dbo_sqlsrv.php on line 29

Is the dbo_sqlsrv.php compatible with Cake 2.1.1 ?

Thanks

--
Best Regards,
Felipe Roman
Phone 55 51 8454 8110
LinkedIn http://au.linkedin.com/in/feliperoman


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felipe Roman  
View profile  
 More options Apr 12 2012, 12:39 pm
From: Felipe Roman <roman.fel...@gmail.com>
Date: Thu, 12 Apr 2012 13:39:23 -0300
Local: Thurs, Apr 12 2012 12:39 pm
Subject: Re: Problems running Cakephp2.1.1 with SQL Server 2008
I forgot to say that I'm able to connect and run queries using one
test.php file I created without any frameworks (I mean using
sqlsrv_connect() direct) so I think the environment configuration is
Ok.

thanks again

--
Best Regards,
Felipe Roman
Phone 55 51 8454 8110
LinkedIn http://au.linkedin.com/in/feliperoman

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
stork  
View profile  
 More options Apr 12 2012, 1:27 pm
From: stork <lubomir.st...@gmail.com>
Date: Thu, 12 Apr 2012 10:27:07 -0700 (PDT)
Local: Thurs, Apr 12 2012 1:27 pm
Subject: Re: Problems running Cakephp2.1.1 with SQL Server 2008

> I also download and copied the files dbo_sqlsrv.php and DboSource.php

> into my app/Model/Datasource folder but I'm getting the follow error:

1. file dbo_sqlsrv.php is for CakePHP 1.x, for 2.x you need this one
https://github.com/cakephp/datasources/blob/2.0/Model/Datasource/Data...

2. You shouldn't need to use custom DboSource.php imho.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
euromark  
View profile  
 More options Apr 12 2012, 1:57 pm
From: euromark <dereurom...@googlemail.com>
Date: Thu, 12 Apr 2012 10:57:09 -0700 (PDT)
Local: Thurs, Apr 12 2012 1:57 pm
Subject: Re: Problems running Cakephp2.1.1 with SQL Server 2008

did you see my post from yesterday?
https://groups.google.com/forum/?fromgroups#!topic/cake-php/8y2Y511krEU

had the same issue, but on linux.
on windows I got it to run with the included SqlServer datasource (you need
to follow the instructions from microsoft)
http://msdn.microsoft.com/de-de/library/cc296170(v=sql.90).aspx
install the native client, put the dlls in its places and somehow it works
:)

don't make the same mistake I did and forget to install the SDK, as well
(if you are prompted for it, select everything).

for the linux version I still have to try the Mssql datasource from rchavik

Am Donnerstag, 12. April 2012 19:27:07 UTC+2 schrieb stork:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Felipe Roman  
View profile  
 More options Apr 12 2012, 2:06 pm
From: Felipe Roman <roman.fel...@gmail.com>
Date: Thu, 12 Apr 2012 15:06:23 -0300
Local: Thurs, Apr 12 2012 2:06 pm
Subject: Re: Problems running Cakephp2.1.1 with SQL Server 2008
Hi Stork,

I replaced the dbo_sqlsrv.php by Sqlsrv.php into
app/models/datasources and I also replace the database.php settings :

from

        public $default = array(
                'datasource' => 'dbo_sqlserver',

to

        public $default = array(
                'datasource' => 'Database/Sqlserver',

and it is working fine now ;-)

Thank you very much

--
Best Regards,
Felipe Roman
Phone 55 51 8454 8110
LinkedIn http://au.linkedin.com/in/feliperoman

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jorge  
View profile  
 More options Jul 30 2012, 2:59 am
From: Jorge <jorge.e...@gmail.com>
Date: Sun, 29 Jul 2012 23:59:13 -0700 (PDT)
Local: Mon, Jul 30 2012 2:59 am
Subject: Re: Problems running Cakephp2.1.1 with SQL Server 2008

hi, i have the same problem, but i copy the file Sqlserver.php into my
directory,
and i receive this messagge: *Error: * Class 'DboSource' not found
And you said "You shouldn't need to use custom DboSource.php imho."
how and where can i configure this??

Thaks for all!!!!!

El jueves, 12 de abril de 2012 12:27:07 UTC-5, stork escribió:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »