Hello,

I a have SQL Server installed in my system , is am using windows authentication to login in .

But when ever my trying to create a database or try runing script it gives Error as: create permission denied in database master sql server 2008 , Error:262

Any suggestions please.

解决方案You need to give create permissions your user (or all users) - it looks like at present you haven''t done that.

The trouble is that you probably need to log in as a sysadmin in order to give yourself the required authority!

Open SSMS, and login as an administrator: you have probably left the default admin in place, so that''s user "sa", password blank.

Open the "Security" branch of the tree, and double click your PC/User combination. Change the Roles to include sysadmin and save.

While you are here, change the sa password to something a little more secure!

You should now be able to create a DB from your usual log in.

Logo

DAMO开发者矩阵,由阿里巴巴达摩院和中国互联网协会联合发起,致力于探讨最前沿的技术趋势与应用成果,搭建高质量的交流与分享平台,推动技术创新与产业应用链接,围绕“人工智能与新型计算”构建开放共享的开发者生态。

更多推荐