.net - Create a sql user from database project Visual Studio 2010 -


i have database project , have script create database user. struggling set password of user.

create user [baruser]     default_schema = dbo, password='password', default_database=[foo], check_expiration=off, check_policy=on 

gives exception

error   420 sql80001: incorrect syntax near 'n'password''.  expecting id, or quoted_id. 

its works if run query in sql management studio. cant seem find information creating users using database projects, appriciated.

your sql command creating login , user, 2 separate sql objects. this stackoverflow question contains solution should you.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -