The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MS SQL for User Spice?
#1
Hi guys,

I'm trying to implement User Spice for a webpage that is using MS SQL to store data. I'm wondering if it is possible to use User Spice with MS SQL?

Thanks!
  Reply
#2
Hi...I'm sorry I missed this question. It SHOULD be possible to use UserSpice with Ms SQL, although I haven't tried it.

UserSpice is written with all the DB connections running through PDO. The great thing about that is that PDO abstracts the database calls and essentially makes them pretty universal. That said, there might be something special that you have to do to make the initial connection. When I look at
http://php.net/manual/en/ref.pdo-dblib.php I see it talking about port numbers etc. I wonder if you just need to do a little more configuration.
  Reply
#3
Hi Mudmin,

Thank you very much for the reply! I'm thinking of replacing the mysqli connection in userspice with the code below. Is there anything else I need to do in order not to break anything?

$serverName = "serverName\sqlexpress"; //serverName\instanceName

// Since UID and PWD are not specified in the $connectionInfo array,
// The connection will be attempted using Windows Authentication.
$connectionInfo = array( "Database"=>"dbName");
$conn = sqlsrv_connect( $serverName, $connectionInfo);


Thanks a lot!
Angel
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)