mssql_connect( "eddysrv", "sa", "123" );
mssql_select_db(config);
$resultat = mssql_query ("insert into compteuser (loginuser,password,attribut) values ('$login','$pass','$attribut')" );
mssql_connect( "eddysrv", "sa", "123" );
mssql_select_db(config);
$resultat = mssql_query ("sp_addlogin '$login ','$pass ','config'" );
mssql_connect("eddysrv","sa","123" );
mssql_select_db(config);
$resultat = mssql_query ("sp_adduser '$login','$login','db_owner'" );
mssql_connect("eddysrv","sa","123" );
mssql_select_db(config);
$resultat = mssql_query ("sp_addsrvrolemember '$login','sysadmin '" );
mssql_connect("eddysrv","sa","123" );
mssql_select_db(config);