:(

229:[Microsoft][SQL Server Native Client 10.0][SQL Server]The SELECT permission was denied on the object 'Category', database 'artproduct', schema 'dbo'. [ SQL语句 ] : SELECT T1.* FROM (SELECT thinkphp.*, ROW_NUMBER() OVER ( ORDER BY rand()) AS ROW_NUMBER FROM (SELECT [CategoryId],[Description],[ParentId],[Spell] FROM [Category] WHERE [Status] = 1 AND [Spell] = 'category' ) AS thinkphp) AS T1 WHERE (T1.ROW_NUMBER BETWEEN 1 AND 1)

错误位置

FILE: E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Db\Driver.class.php  LINE: 351

TRACE

#0 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Db\Driver.class.php(351): E('229:[Microsoft]...')
#1 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Db\Driver.class.php(181): Think\Db\Driver->error()
#2 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Db\Driver.class.php(947): Think\Db\Driver->query('SELECT T1.* FRO...', false)
#3 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Model.class.php(759): Think\Db\Driver->select(Array)
#4 E:\web\pre.yushibao.com\Application\Home\Controller\CategoryController.class.php(450): Think\Model->find()
#5 E:\web\pre.yushibao.com\Application\Home\Controller\CategoryController.class.php(25): Home\Controller\CategoryController->getCatId('category')
#6 [internal function]: Home\Controller\CategoryController->index()
#7 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\CategoryController))
#8 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\CategoryController), 'index')
#9 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#10 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#11 E:\web\pre.yushibao.com\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#12 E:\web\pre.yushibao.com\index.php(27): require('E:\\web\\pre.yush...')
#13 {main}