:(

229:[Microsoft][SQL Server Native Client 10.0][SQL Server]The SELECT permission was denied on the object 'BrandCategoryRelation', database 'artproduct', schema 'dbo'. [ SQL语句 ] : SELECT T1.* FROM (SELECT thinkphp.*, ROW_NUMBER() OVER ( ORDER BY SortOrder asc) AS ROW_NUMBER FROM (SELECT [Id],[BrandId],[CategoryId],[ChildCategoryId],[Status],[SortOrder] FROM [BrandCategoryRelation] WHERE [Status] = 1 AND [BrandId] = 1 ) AS thinkphp) AS T1 WHERE (T1.ROW_NUMBER BETWEEN 1 AND 10)

错误位置

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(579): Think\Db\Driver->select(Array)
#4 E:\web\pre.yushibao.com\Application\Home\Controller\IndexController.class.php(26): Think\Model->select()
#5 [internal function]: Home\Controller\IndexController->index()
#6 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(173): ReflectionMethod->invoke(Object(Home\Controller\IndexController))
#7 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(110): Think\App::invokeAction(Object(Home\Controller\IndexController), 'index')
#8 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#9 E:\web\pre.yushibao.com\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#10 E:\web\pre.yushibao.com\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#11 E:\web\pre.yushibao.com\index.php(27): require('E:\\web\\pre.yush...')
#12 {main}