CodeCharge Studio
search Register Login  

Web Reports

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Server-Side Connections for PHP with MS Sql Server 2008

Print topic Send  topic

Author Message
rajibc

Posts: 3
Posted: 12/12/2009, 11:42 PM

I am using the lastest version of codecharge. while connecting to MS SQL server 2008 bypasssing the DSN ( not creating ) , I am not able to access the database, below the way i have set the connecting string in common.php file.


//Connection Settings @0-91A0449C
$CCConnectionSettings = array (
"database" => array(
"Type" => "SQLSERVER",
"DBLib" => "MSSQL",
"Database" => "internet", //Db is properly created in SQL server 2008 with windows authentication.
"Host" => "localhost",
"Port" => "",
"User" => "",
"Password" => "",
"UseODBCCursor" => "",
"Persistent" => false,
"DateFormat" => array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"),
"BooleanFormat" => array("true", "false", ""),
"Uppercase" => false
)
);
//End Connection Settings

let me know how to resolve it asap.

I would like the database information to be given in the connection string without creating a system DSN as the code would needed to be port to Windows Azure cloud.


Rajib Chakraborty
View profile  Send private message
damian

Posts: 838
Posted: 12/13/2009, 2:58 AM

i assume you have actually specified a username and password?
_________________
if you found this post useful take the time to help someone else.... :)
View profile  Send private message
rajibc

Posts: 3
Posted: 12/13/2009, 6:21 AM

Windows authentication doesn't require username and password to be given explicitly, anyway , i have tried with user name and password also but still it didn't work .
View profile  Send private message
datadoit
Posted: 12/13/2009, 11:30 AM

What are you setting in the connection dialogs? Don't hack at the
Common.php file directly.
rajibc

Posts: 3
Posted: 12/14/2009, 4:33 AM

I have insterted values from connection setting

here is the DB setting in common.php file. Do I need to change anything in php.ini file to connect SQL Server 2008 Enterprise ?

//Connection Settings @0-E3992D24
$CCConnectionSettings = array (
"internet" => array(
"Type" => "MSSQLServer",
"DBLib" => "MSSQL",
"Database" => "internet",
"Host" => "localhost",
"Port" => "",
"User" => "administrator",
"Password" => "Password1",
"Persistent" => true,
"DateFormat" => array("yyyy", "-", "mm", "-", "dd", " ", "HH", ":", "nn", ":", "ss"),
"BooleanFormat" => array(1, 0, ""),
"Uppercase" => false
)
);
View profile  Send private message
Benjamin Krajmalnik
Posted: 12/16/2009, 4:52 PM

Yes, but the security context is such that your IIS user probably does not
have access to the database, nor would you want to grant it.

"rajibc" <rajibc@forum.codecharge> wrote in message
news:54b24f85d6a6c4@news.codecharge.com...
> Windows authentication doesn't require useranem and password to be given
> explicitly, anyway , i have tried with user name and password also but
> still it
> didn't work .
> ---------------------------------------
> Sent from YesSoftware forum
> http://forums.codecharge.com/
>


Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.