Hi, could someone please check where the sytax error is in these statements. $sqlstmt= "EXEC sp_addlogin ".$adduser." , ".$addpass; $sqlstmt1= "EXEC sp_adduser @loginame= ".$adduser." , @name_in_db= ".$adduser; $sqlstmt2= "GRANT CREATE TABLE TO ".$adduser; $sql=mssql_query($sqlstmt); $sql1=mssql_query($sqlstmt1); $sql2=mssql_query($sqlstmt2); thanks babu --------------------------------- Yahoo! Messenger NEW - crystal clear PC to PCcalling worldwide with voicemail