este es mi registro.php
Código PHP:
if ($Error!=1){
$msquery2 = "SET IDENTITY_INSERT Datos1.dbo.REGISTRO ON";
$msquery3 = "INSERT INTO Datos1.dbo.REGISTRO (memb_guid,memb,memb__pwd)
VALUES ('1','$ps_loginname','$ps_password')";
$msquery4 = "SET IDENTITY_INSERT Datos2.dbo.REGISTRO ON";
$msquery5 = "INSERT INTO Datos2.dbo.REGISTRO (memb_guid,memb,memb__pwd)
VALUES ('1','$ps_loginname','$ps_password')";
$msquery6 = "SET IDENTITY_INSERT Datos3.dbo.REGISTRO ON";
$msquery7 = "INSERT INTO Datos3.dbo.REGISTRO (memb_guid,memb,memb__pwd)
VALUES ('1','$ps_loginname','$ps_password')";
$msresults= mssql_query($msquery2);
$msresults= mssql_query($msquery3);
$msresults= mssql_query($msquery4);
$msresults= mssql_query($msquery5);
$msresults= mssql_query($msquery6);
$msresults= mssql_query($msquery7);
?>
El error que me sale es bastante:
Código PHP:
Cannot insert explicit value for identity column in table 'REGISTRO' when IDENTITY_INSERT is set to OFF.
Table 'Datos3.dbo.REGISTRO' does not have the identity property. Cannot perform SET operation. (severity 16) in .....
saludos