C
C#4mo ago
Muaazz

✅ need help in database

No description
7 Replies
Salman
Salman4mo ago
isn't your foreign key EmployeeID need to be INT or is it string or GUI ? also what's the error
Muaazz
MuaazzOP4mo ago
i tried INT but not working also the error is i cant add the FOREIGN KEY
Buddy
Buddy4mo ago
Are you sure there are no visible error messages? If it can detect the errors it should also show the error message(s)
Marvin
Marvin4mo ago
you have to execute to see errors
Muaazz
MuaazzOP4mo ago
it error is visible but i tried all the thing i know yes i execute its saying Incorrect syntax near 'AUTO_INCREMENT'
Pobiega
Pobiega4mo ago
because thats not valid T-SQL ID_column INT NOT NULL IDENTITY(1,1) PRIMARY KEY, SQL isnt just SQL, there are many dialects MSSQL and SQL Express use T-SQL this is not the same as mysql dialect, or postgres
Muaazz
MuaazzOP4mo ago
thanks now its working
Want results from more Discord servers?
Add your server