blob: f58b5bd04130cfa3622bc657cd8cc1838be584a9 [file] [log] [blame]
Alex Bilbie84445d02011-03-10 16:43:39 +00001<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2/**
3 * CodeIgniter
4 *
5 * An open source application development framework for PHP 5.1.6 or newer
6 *
Derek Jonesf4a4bd82011-10-20 12:18:42 -05007 * NOTICE OF LICENSE
8 *
9 * Licensed under the Open Software License version 3.0
10 *
11 * This source file is subject to the Open Software License (OSL 3.0) that is
12 * bundled with this package in the files license.txt / license.rst. It is
13 * also available through the world wide web at this URL:
14 * http://opensource.org/licenses/OSL-3.0
15 * If you did not receive a copy of the license and are unable to obtain it
16 * through the world wide web, please send an email to
17 * licensing@ellislab.com so we can send you a copy immediately.
18 *
Alex Bilbie84445d02011-03-10 16:43:39 +000019 * @package CodeIgniter
Derek Jonesf4a4bd82011-10-20 12:18:42 -050020 * @author EllisLab Dev Team
21 * @copyright Copyright (c) 2008 - 2011, EllisLab, Inc. (http://ellislab.com/)
22 * @license http://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
Alex Bilbie84445d02011-03-10 16:43:39 +000023 * @link http://codeigniter.com
24 * @since Version 1.0
25 * @filesource
26 */
27
28// ------------------------------------------------------------------------
29
30/**
Alex Bilbie01ab0042011-03-18 19:24:30 +000031 * SQLSRV Utility Class
Alex Bilbie84445d02011-03-10 16:43:39 +000032 *
33 * @category Database
Derek Jonesf4a4bd82011-10-20 12:18:42 -050034 * @author EllisLab Dev Team
Alex Bilbie84445d02011-03-10 16:43:39 +000035 * @link http://codeigniter.com/user_guide/database/
36 */
Alex Bilbie01ab0042011-03-18 19:24:30 +000037class CI_DB_sqlsrv_utility extends CI_DB_utility {
Alex Bilbie84445d02011-03-10 16:43:39 +000038
39 /**
40 * List databases
41 *
42 * @access private
43 * @return bool
44 */
45 function _list_databases()
46 {
47 return "EXEC sp_helpdb"; // Can also be: EXEC sp_databases
48 }
49
50 // --------------------------------------------------------------------
51
52 /**
53 * Optimize table query
54 *
55 * Generates a platform-specific query so that a table can be optimized
56 *
57 * @access private
58 * @param string the table name
59 * @return object
60 */
61 function _optimize_table($table)
62 {
63 return FALSE; // Is this supported in MS SQL?
64 }
65
66 // --------------------------------------------------------------------
67
68 /**
69 * Repair table query
70 *
71 * Generates a platform-specific query so that a table can be repaired
72 *
73 * @access private
74 * @param string the table name
75 * @return object
76 */
77 function _repair_table($table)
78 {
79 return FALSE; // Is this supported in MS SQL?
80 }
81
82 // --------------------------------------------------------------------
83
84 /**
85 * MSSQL Export
86 *
87 * @access private
88 * @param array Preferences
89 * @return mixed
90 */
91 function _backup($params = array())
92 {
93 // Currently unsupported
94 return $this->db->display_error('db_unsuported_feature');
95 }
96
97}
98
99/* End of file mssql_utility.php */
100/* Location: ./system/database/drivers/mssql/mssql_utility.php */