Skip to content
Advertisement

Tag: sql-server

MSSQL DATABASE CONNECTION WITH PHP

Please i am trying to connect to an mssql database on a different machine. Below is my code but i just keep getting a blank page. I dont know what the issue may be. i have installed php and the mssql drivers. Answer I would suggest that you display the connection error using sqlsrv_errors(). Load the PHP drivers in php.ini

codeigniter add N in sql Query INSERT unicode text

I am working with codeigniter / SQL. Where I want to insert unicode string with ‘N’ Prefix the insert. How can I achieve it in regular insert. Regular Code: INSERT Trying to Achieve: Is there any way to achive the above insert instead of manually writing the Query.? Answer This is the simplest way to do it. Or, if the

Laravel connect to a SQL Server 2008 named instance

I am trying to connect an SQL server from an Ubuntu machine, everythings works great except for named instances: this works this doesn’t I always end up with this error: I have tried every possible combination: host INSTANCE host / INSTANCE host \ INSTANCE Can someone help me ? Edit: Because I have also tried without instance name (as

Advertisement