Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Help with ROLE creation

Author  Topic 

wisertime
Starting Member

28 Posts

Posted - 2008-06-16 : 11:41:52
I am a promotional DBA and need help with some code a developer wrote that errors out.
He is trying to create a role and to my knowledge there is nothing wrong with the syntax but it gives an incorrect syntax error.

CREATE ROLE 'PPS' IDENTIFIED BY 'stressboy';

error: Server: Msg 170, Level 15, State 1, Line 1
Line 1: Incorrect syntax near 'ROLE'.

we tried it with ' ' & "" and without either. I'm sure this is an easy one for you all. Thanks.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-06-16 : 12:11:47
looks t syntax of CREATE ROLE in books online. it doesnt seem to contain IDENTIFIED BY clause

http://msdn.microsoft.com/en-us/library/ms187936.aspx
Go to Top of Page
   

- Advertisement -