首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

为啥会显示“Incorrect syntax near 'L2'”

2013-01-01 
为什么会显示“Incorrect syntax near 'L2'.”create login L2 with password123,sp_addsrvrol

为什么会显示“Incorrect syntax near 'L2'.”
create login L2 with password='123',
sp_addsrvrolemember 'L2','dbcreator'
[解决办法]
create login L2 with password='123'
go
 sp_addsrvrolemember 'L2','dbcreator' 

热点排行