Meldung 515, Ebene 16, Status 2, Zeile 1
Der Wert NULL kann in die 'm_nDiMode'-Spalte, 'CHARACTER_01_DBF.dbo.CHARACTER_TBL'-Tabelle nicht eingefügt werden. Die Spalte lässt NULL-Werte nicht zu. Fehler bei UPDATE.
Die Anweisung wurde beendet.
UPDATE CHARACTER_TBL SET m_nDiMode = 0
ALTER TABLE CHARACTER_TBL ADD CONSTRAINT DF_CHARACTER_TBL_m_nDiMode DEFAULT(0) FOR m_nDiMode;
ALTER COLUMN m_nDiMode INT NOT NULL
Keine Ahnung, ob 0 ein korrekter Wert ist, so sollte es aber gehen.
Meldung 156, Ebene 15, Status 1, Zeile 4 Falsche Syntax in der Nähe des 'DEFAULT'-Schlüsselworts.
Ist das ein bullshit....xD
Code:
UPDATE CHARACTER_TBL SET m_nDiMode = 0
ALTER TABLE CHARACTER_TBL ADD CONSTRAINT DF_CHARACTER_TBL_m_nDiMode DEFAULT(0) FOR m_nDiMode;
ALTER COLUMN m_nDiMode INT NOT NULL
Versuchs mal damit, hatte in dem Moment nicht die Syntax im Kopf.
Meldung 156, Ebene 15, Status 1, Zeile 4
Falsche Syntax in der Nähe des 'COLUMN'-Schlüsselworts.
Versteh ich net warum es bei dir geht und bei mir net -.-"
Code:
UPDATE CHARACTER_TBL SET m_nDiMode = 0
ALTER TABLE CHARACTER_TBL ADD CONSTRAINT DF_CHARACTER_TBL_m_nDiMode DEFAULT(0) FOR m_nDiMode;
ALTER TABLE CHARACTER_TBL
ALTER COLUMN m_nDiMode INT NOT NULL
UPDATE CHARACTER_TBL SET m_nDiMode = 0
ALTER TABLE CHARACTER_TBL ADD CONSTRAINT DF_CHARACTER_TBL_m_nDiMode DEFAULT(0) FOR m_nDiMode;
ALTER TABLE CHARACTER_TBL
ALTER COLUMN m_nDiMode INT NOT NULL
#2 go to resdata.inc and find the APP_LOGIN? or whatever change the address with this 0x610000
#4 go to sql->tools>options->designers->table and database designers and uncheck the prevent saving changes that require table re-creation then you can go
#5 go to sfx editor put the wings on the head, save and then try it