Setting up config.php using local MS SQL Server connection
Setting up config.php using local MS SQL Server connection
I am having trouble setting up the demo examples connecting to a local SQL Server.
I have a connection string that works in some generic php code, but I cannot translate this into the config.php to make the exampoles work.
PDO string that works:
("sqlsrv:Server=PROGAMMER01-201\SQLEXPRESS2014;Database=3rdParty_DB;ConnectionPooling=0", "usrX","pw")
What does the config.php look like using these parameters?
I saw in the forums that you can add just a PDO string entry in the config,
What would that look like using these parameters?
"pdo" => "??"
Thanks...
This question has accepted answers - jump to:
Answers
should do it.
Allan
I missed part 2 - you can use:
Allan
Allan,
Thanks for part 1.. That’s pretty straight forward.. So I must be another issue... I will research more...
Part 2, What u wrote was the format I read in the forums.. I just neeed help in converting the connection string provided in this example to that object.. The quotes in the string were messing me up.. I think.. or.. as I mentioned in part 1... I might have a different issue. If u could show me the correct value. Then at least I know that’s right..
Thanks!!
Sorry yes, that wasn't very clear from my post. Hopefully this helps:
Allan
Cool thanks... Stil a novice with php object oriented stuff.. learned something new w your example..
As a side note..
I used your first example and everything started working.. So, I started to change up some parameters to see if were it broke. And once I broke it.. I couldn’t get it to work again... So I cleared my cache.. closed the browser and rebooted the PC.. Then after a bit.. it stated widking again..
It’s working and I am leaving it alone!! Lol
On to some real coding!!
Thanks so much for the support! Very helpful!!
Interesting. The Editor server-side components don't have their own configuration cache, so I'm not 100% sure what happened there. However, if its working now, on to bigger and better things... .
Allan