Code | SQL Server Performance Forums

SQL Server Performance Forum – Threads Archive

Code

Can the primary key, foreign key and relationship between them be set up in C++/Java program and not directly in the database? If yes, please explain to me as much as possible.
Thanks.

While this should be possible, it is neither adviseable nor desirable.
This is job of the DB, not the app. The app could easily be bypassed, and then data integrity will be shot.
You might have a look at Codd’s rule #10. For example here:http://www.sqlservercentral.com/columnists/fkalis/coddsrules.asp ———————–
–Frank
http://www.insidesql.de
———————–

…which might be the case when I read your other thread on 1:1 relations. ———————–
–Frank
http://www.insidesql.de
———————–

]]>