{"id":9227,"date":"2012-09-18T04:39:05","date_gmt":"2012-09-18T00:09:05","guid":{"rendered":"http:\/\/blog.iranhostdir.ir\/?p=9227"},"modified":"2025-04-29T19:18:22","modified_gmt":"2025-04-29T15:48:22","slug":"%d8%ad%d9%81%d8%b8-%db%8c%da%a9%d9%be%d8%a7%d8%b1%da%86%da%af%db%8c-%d8%af%d8%a7%d8%af%d9%87-%d9%87%d8%a7-%d8%aa%d9%88%d8%b3%d8%b7-data-integrity-%d8%af%d8%b1-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c","status":"publish","type":"post","link":"https:\/\/iranhost.com\/blog\/%d8%ad%d9%81%d8%b8-%db%8c%da%a9%d9%be%d8%a7%d8%b1%da%86%da%af%db%8c-%d8%af%d8%a7%d8%af%d9%87-%d9%87%d8%a7-%d8%aa%d9%88%d8%b3%d8%b7-data-integrity-%d8%af%d8%b1-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c\/","title":{"rendered":"Data integrity \u0686\u06cc\u0633\u062a\u060c \u0646\u0642\u0634 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0627\u06cc SQL Server"},"content":{"rendered":"<p dir=\"RTL\" style=\"text-align: justify;\">\u062f\u0631 \u0633\u0627\u062e\u062a \u0648 \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0627\u06cc SQL Server\u060c \u062d\u0641\u0638 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u060c \u0627\u0639\u062a\u0628\u0627\u0631 \u0648 \u0646\u0638\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u0628\u0633\u06cc\u0627\u0631 \u0628\u0627\u0644\u0627\u06cc\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0645\u06cc \u062e\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0648 \u06cc\u0627 Data Integrity \u0686\u06cc\u0633\u062a \u0648 \u0686\u0647 \u062a\u0627\u062b\u06cc\u0631\u06cc \u0628\u0631 \u0631\u0648\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 SQL Server \u062f\u0627\u0631\u062f.<\/p>\n<h2 dir=\"RTL\" style=\"text-align: justify;\">Data integrity \u0686\u06cc\u0633\u062a\u061f<\/h2>\n<p dir=\"RTL\" style=\"text-align: justify;\">Data integrity \u06cc\u0627 \u0647\u0645\u0627\u0646 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u060c \u0627\u0632 \u0635\u062d\u062a \u06a9\u06cc\u0641\u06cc\u062a \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f \u0648 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0628\u0647 \u0634\u0645\u0627 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f \u062a\u0627 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u062e\u0648\u062f \u0631\u0627 \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0648 \u0645\u0646\u062d\u0635\u0631 \u0628\u0641\u0631\u062f \u062d\u0641\u0638 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u0637\u0631\u0627\u062d \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062f\u0631 \u0632\u0645\u0627\u0646 \u0633\u0627\u062e\u062a \u0627\u0648\u0644\u06cc\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u062e\u0648\u062f \u0628\u0627 \u062a\u0648\u062c\u0647 \u0628\u0647 \u062a\u062d\u0644\u06cc\u0644 \u0628\u0647 \u062f\u0633\u062a \u0622\u0645\u062f\u0647 \u0627\u0632 \u067e\u0631\u0648\u0698\u0647 \u062e\u0648\u062f\u060c \u062a\u0645\u0647\u06cc\u062f\u0627\u062a \u0645\u0646\u0627\u0633\u0628\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0627\u06cc\u0646 \u0627\u0645\u0631 \u062f\u0631 \u0646\u0638\u0631 \u0646\u06af\u06cc\u0631\u062f\u060c \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0627\u0648 \u0628\u0639\u062f \u0647\u0627 \u0628\u0647 \u0645\u0634\u06a9\u0644\u0627\u062a \u0628\u0632\u0631\u06af\u06cc \u0628\u0631 \u062e\u0648\u0627\u0647\u062f \u062e\u0648\u0631\u062f. \u06cc\u06a9\u06cc \u0627\u0632 \u0631\u0627\u0647 \u0647\u0627\u06cc \u062d\u0641\u0638 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062a\u06a9\u0646\u06cc\u06a9 \u0647\u0627\u06cc Data Integrity \u0645\u06cc \u0628\u0627\u0634\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0631\u0627\u0647 \u0647\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 (Data Integrity) \u0634\u0631\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<h2 dir=\"RTL\" style=\"text-align: justify;\">\u0631\u0648\u0634 \u0647\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0686\u06cc\u0633\u062a\u061f<\/h2>\n<p style=\"text-align: justify;\">\u062d\u0627\u0644 \u0628\u0627 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0622\u0634\u0646\u0627 \u0634\u062f\u0647 \u0627\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0628\u062f\u0627\u0646\u06cc\u062f \u0631\u0648\u0634 \u0647\u0627\u06cc \u0627\u0639\u0645\u0627\u0644 Data Integrity \u06a9\u062f\u0627\u0645\u0646\u062f\u061f<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f1- Data Type<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u06cc \u062a\u0648\u0627\u0646 \u0645\u0637\u0645\u0626\u0646 \u0628\u0648\u062f \u062a\u0627 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u062f\u0631 \u0633\u062a\u0648\u0646 \u0647\u0627\u06cc \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0645\u0648\u0631\u062f \u0642\u0628\u0648\u0644 \u0648\u0627\u0642\u0639 \u0645\u06cc \u0634\u0648\u0646\u062f \u0648 \u0647\u06cc\u0686 \u0634\u062e\u0635\u06cc \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0631\u0627 \u062e\u0627\u0631\u062c \u0627\u0632 \u0645\u062d\u062f\u0648\u062f\u0647 \u0645\u0634\u062e\u0635 \u0634\u062f\u0647 \u0648\u0627\u0631\u062f \u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u06cc\u06a9 \u062c\u062f\u0648\u0644 \u0628\u0627 \u0646\u0648\u0639 Integer \u0647\u06cc\u0686 \u06af\u0627\u0647 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0646\u0648\u0639 String \u0631\u0627 \u0642\u0628\u0648\u0644 \u06a9\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-34693\" src=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/sql-server-data-types.png\" alt=\"\u0628\u0631\u0631\u0633\u06cc Data Type \u062f\u0631 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0631 SQL server\" width=\"600\" height=\"187\" srcset=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/sql-server-data-types.png 1017w, https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/sql-server-data-types-300x94.png 300w, https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/sql-server-data-types-768x239.png 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f2- Not Null<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062a\u0639\u0631\u06cc\u0641 Not Null \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f \u06a9\u0647 \u06cc\u06a9 \u0633\u062a\u0648\u0646 \u0646\u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0645\u0642\u062f\u0627\u0631 Null \u06cc\u0627 \u062e\u0627\u0644\u06cc \u0631\u0627 \u0628\u0647 \u062e\u0648\u062f \u0628\u06af\u06cc\u0631\u062f. \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc \u062a\u0648\u0627\u0646 \u06a9\u0627\u0631\u0628\u0631 \u06cc\u0627 \u0634\u062e\u0635 \u0648\u0627\u0631\u062f \u06a9\u0646\u0646\u062f\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0631\u0627 \u0645\u062c\u0627\u0628 \u0646\u0645\u0648\u062f \u06a9\u0647 \u0628\u0647 \u0647\u06cc\u0686 \u0648\u062c\u0647 \u0633\u062a\u0648\u0646 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u062e\u0627\u0644\u06cc \u0631\u0647\u0627 \u0646\u06a9\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f3- Default<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062a\u0639\u0631\u06cc\u0641 Default \u0645\u0634\u062e\u0635 \u0645\u06cc \u06a9\u0646\u062f\u060c \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0645\u0642\u062f\u0627\u0631 \u062e\u0627\u0635\u06cc \u0631\u0627 \u0628\u0631\u0627\u06cc \u0633\u062a\u0648\u0646 \u062a\u0639\u0631\u06cc\u0641 \u0646\u06a9\u0631\u062f\u060c \u0628\u0631\u0646\u0627\u0645\u0647 \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u062f\u0631 \u0646\u0638\u0631 \u0628\u06af\u06cc\u0631\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc\u06a9\u0647 \u06a9\u0627\u0631\u0628\u0631 \u0647\u06cc\u0686 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0631\u0627 \u062f\u0631 \u0633\u062a\u0648\u0646 \u0647\u0627\u06cc \u0646\u0648\u0639 Integer \u0648\u0627\u0631\u062f \u0646\u06a9\u0646\u062f\u060c \u0645\u0642\u062f\u0627\u0631 \u0622\u0646 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0635\u0641\u0631 \u062f\u0631 \u0646\u0638\u0631 \u06af\u0631\u0641\u062a\u0647 \u0645\u06cc \u0634\u0648\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f4- Identity<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0645\u0634\u062e\u0647 Identity \u0645\u06cc \u062a\u0648\u0627\u0646 \u06cc\u06a9\u06cc \u0627\u0632 \u0633\u062a\u0648\u0646 \u0647\u0627 \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0646\u0627\u0633\u0647 (Identifier) \u062a\u0639\u0631\u06cc\u0641 \u0646\u0645\u0648\u062f. \u067e\u0633 \u0627\u0632 \u0627\u0646\u062a\u062e\u0627\u0628 \u0633\u062a\u0648\u0646 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0648 \u062a\u0639\u0631\u06cc\u0641 \u0622\u0646 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0634\u0646\u0627\u0633\u0647\u060c \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u06cc\u0633\u062a\u0645\u06cc \u0628\u0647 \u0635\u0648\u0631\u062a \u0627\u062a\u0648\u0645\u0627\u062a\u06cc\u06a9 \u062f\u0631 \u062f\u0627\u062e\u0644 \u0622\u0646 \u0642\u0631\u0627\u0631 \u0645\u06cc \u06af\u06cc\u0631\u062f \u0648 \u0627\u06cc\u0646 \u0639\u0645\u0644 \u0628\u0647 \u0645\u0646\u062d\u0635\u0631 \u0628\u0641\u0631\u062f \u0646\u06af\u0647\u062f\u0627\u0634\u062a\u0646 \u0631\u062f\u06cc\u0641 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f5- Constraint<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0627\u06cc\u0646 \u0645\u0634\u062e\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646 \u0633\u062a\u0648\u0646 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0645\u062c\u0627\u0632 \u0628\u0647 \u0642\u0628\u0648\u0644 \u0647\u0645\u0647 \u0646\u0648\u0639 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0648 \u062d\u062a\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0646\u0627\u0645\u0639\u062a\u0628\u0631 \u0646\u06cc\u0632 \u0646\u0645\u0648\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062d\u0627\u0644\u062a Foreign Key Check \u0645\u06cc \u062a\u0648\u0627\u0646 \u0627\u0632 \u0648\u0627\u0631\u062f \u0634\u062f\u0646 \u062f\u0627\u062f\u0647 \u062f\u0631 \u0633\u062a\u0648\u0646\u06cc \u062e\u0627\u0635 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f6- Rules<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0642\u0627\u0628\u0644\u06cc\u062a Rules \u0628\u0631 \u0639\u06a9\u0633 Check \u0639\u0645\u0644 \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f \u0648 \u0628\u0631\u0627\u06cc \u0645\u062d\u062f\u0648\u062f \u06a9\u0631\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u06a9\u0627\u0631\u0628\u0631\u062f \u062f\u0627\u0631\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f7- Triggers<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u062a\u0631\u06cc\u06af\u0631\u0647\u0627 \u0645\u062c\u0645\u0648\u0639\u0647 \u0627\u06cc \u0627\u0632 \u06a9\u062f\u0647\u0627\u06cc \u0639\u0645\u0644\u06cc\u0627\u062a\u06cc \u0647\u0633\u062a\u0646\u062f \u06a9\u0647 \u062f\u0631 \u0632\u0645\u0627\u0646 Insert, Update \u00a0\u0648 \u06cc\u0627 Delete \u0628\u0631 \u0631\u0648\u06cc \u0628\u0631\u062e\u06cc \u0627\u0632 \u062c\u062f\u0627\u0648\u0644 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u0646\u062f. Trigger\u0647\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0648 \u0628\u0631\u062e\u06cc \u0627\u0648\u0642\u0627\u062a \u062a\u0628\u062f\u06cc\u0644 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u0628\u0627 \u0641\u0631\u0645\u0648\u0644\u06cc \u062e\u0627\u0635 \u0628\u0631 \u0631\u0648\u06cc \u0622\u0646 \u0647\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc \u06af\u0631\u062f\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f8- Constants<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u0634\u062e\u0647 Constant \u0627\u0632 \u062b\u0627\u0628\u062a \u0628\u0648\u062f\u0646 \u062f\u0627\u062f\u0647 \u0647\u0627 \u062f\u0631 \u062c\u062f\u0627\u0648\u0644 \u06cc\u0627 \u0633\u062a\u0648\u0646 \u0647\u0627\u06cc\u06cc \u062e\u0627\u0635 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u062d\u0627\u0635\u0644 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0647 \u0631\u0648\u0646\u062f Data Integrity \u06a9\u0645\u06a9 \u0642\u0627\u0628\u0644 \u062a\u0648\u062c\u0647\u06cc\u06cc \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f9- Index<\/strong><\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0631\u062f\u06cc\u0641 \u062e\u0627\u0635\u06cc \u0631\u0627 \u0627\u0632 \u0628\u06cc\u0646 \u062c\u062f\u0627\u0648\u0644 \u062f\u0627\u062f\u0647 \u0627\u06cc \u0627\u06cc\u0646\u062f\u06a9\u0633 \u0634\u062f\u0647 \u062c\u0633\u062a\u062c\u0648 \u0645\u06cc \u0646\u0645\u0627\u06cc\u06cc\u0645\u060c \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0644\u06cc\u0633\u062a \u0627\u06cc\u0646\u062f\u06a9\u0633 \u062e\u0648\u062f \u0631\u0627 \u062a\u0647\u06cc\u0647 \u0645\u06cc \u0646\u0645\u0627\u06cc\u062f.<\/p>\n<h2 dir=\"RTL\" style=\"text-align: justify;\"><strong>\u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641 <\/strong><strong>Data Integrity<\/strong><\/h2>\n<p style=\"text-align: justify;\">\u0627\u0646\u0648\u0627\u0639 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u0647 \u0634\u0631\u062d \u0632\u06cc\u0631 \u0627\u0633\u062a:<\/p>\n<h3>\u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0641\u06cc\u0632\u06cc\u06a9\u06cc(Physical Integrity):<\/h3>\n<p>\u0645\u062d\u0627\u0641\u0638\u062a \u0627\u0632 \u062a\u0645\u0627\u0645\u06cc\u062a \u0648 \u0635\u062d\u062a \u062f\u0627\u062f\u0647\u200c\u0647\u0627 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0630\u062e\u06cc\u0631\u0647 \u0648 \u0628\u0627\u0632\u06cc\u0627\u0628\u06cc \u0631\u0627 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0641\u06cc\u0632\u06cc\u06a9\u06cc \u0645\u06cc \u06af\u0648\u06cc\u0646\u062f.<\/p>\n<h3>\u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0645\u0646\u0637\u0642\u06cc(Logical Integrity):<\/h3>\n<p>\u062f\u0631 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0645\u0646\u0637\u0642\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0628\u062f\u0648\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u0628\u0627\u0642\u06cc \u0645\u06cc \u0645\u0627\u0646\u0646\u062f \u0648 \u06f4 \u0646\u0648\u0639 \u0645\u062e\u062a\u0644\u0641 \u062f\u0627\u0631\u062f \u06a9\u0647 \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0645\u06cc \u062e\u0648\u0627\u0646\u06cc\u062f.<\/p>\n<h3 dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f1- \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0646\u0647\u0627\u062f (Entity Integrity)<\/strong><\/h3>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u0645\u0641\u0647\u0648\u0645 integrity \u062f\u0631 \u0646\u0648\u0639 <strong>Entity <\/strong>\u0628\u0647 \u0627\u06cc\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u0631\u062f\u06cc\u0641 \u0647\u0627 (Row) \u062f\u0631 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0645\u0648\u0627\u0631\u0647 \u0628\u0647 \u0635\u0648\u0631\u062a \u0645\u0646\u062d\u0635\u0631 \u0628\u0641\u0631\u062f \u062a\u0648\u0633\u0637 \u0634\u0646\u0627\u0633\u0647 \u062e\u0648\u062f \u062d\u0641\u0638 \u0645\u06cc \u06af\u0631\u062f\u0646\u062f. \u0627\u06cc\u0646 \u0639\u0645\u0644 \u062a\u0648\u0633\u0637 Primary Keys \u0648 \u0633\u0627\u06cc\u0631 \u0634\u0646\u0627\u0633\u0647 \u0647\u0627\u06cc \u0645\u0646\u062d\u0635\u0631 \u0628\u0641\u0631\u062f \u0627\u0646\u062c\u0627\u0645 \u0645\u06cc \u06af\u0631\u062f\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><img decoding=\"async\" class=\"size-full wp-image-34694 aligncenter\" src=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/Entity-Integrity.gif\" alt=\"\u0646\u0648\u0639\u06cc \u0627\u0632 data integrity \u0628\u0646\u0627\u0645 Entity Integrity\" width=\"347\" height=\"299\" \/><\/p>\n<h3 dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f2- \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u0645\u0646\u0647 (Domain Integrity)<\/strong><\/h3>\n<p dir=\"RTL\" style=\"text-align: justify;\"><a href=\"https:\/\/www.lifewire.com\/database-domain-definition-1019170\" target=\"_blank\" rel=\"noopener noreferrer nofollow\">\u0645\u0632\u0627\u06cc\u0627\u06cc \u0642\u0627\u0628\u0644\u06cc\u062a <strong>Domain Integrity<\/strong><\/a>\u060c \u0628\u0631\u0631\u0633\u06cc \u0645\u0639\u062a\u0628\u0631 \u0628\u0648\u062f\u0646 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0633\u062a\u0648\u0646 \u0647\u0627 \u0627\u0633\u062a. \u0642\u0627\u0628\u0644\u06cc\u062a\u0647\u0627\u06cc\u06cc \u0645\u0627\u0646\u0646\u062f Foreign Key\u060c Check \u0648 Not NULL \u0627\u0632 \u062c\u0645\u0644\u0647 \u0632\u06cc\u0631 \u0645\u062c\u0645\u0648\u0639\u0647 \u0622\u0646 \u0645\u06cc \u0628\u0627\u0634\u0646\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\"><img decoding=\"async\" class=\"aligncenter wp-image-34695\" src=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/Domain-Integrity.jpg\" alt=\"Domain Integrity\" width=\"600\" height=\"248\" srcset=\"https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/Domain-Integrity.jpg 894w, https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/Domain-Integrity-300x124.jpg 300w, https:\/\/iranhost.com\/blog\/wp-content\/uploads\/2012\/09\/Domain-Integrity-768x318.jpg 768w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/p>\n<h3 dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f3- \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u0645\u0631\u062c\u0639 (Referential Integrity)<\/strong><\/h3>\n<p dir=\"RTL\" style=\"text-align: justify;\">referential integrity \u0686\u06cc\u0633\u062a\u061f \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u0628\u0647 \u062d\u0641\u0638 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u062c\u062f\u0627\u0648\u0644 \u062f\u0631 \u0647\u0646\u06af\u0627\u0645 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0646 \u06cc\u0627 \u067e\u0627\u06a9 \u0634\u062f\u0646 \u0631\u062f\u06cc\u0641 \u0647\u0627\u06cc \u062c\u062f\u06cc\u062f \u06cc\u0627 \u0642\u062f\u06cc\u0645\u06cc \u06a9\u0645\u06a9 \u0645\u06cc \u06a9\u0646\u062f. \u0645\u0639\u0645\u0648\u0644\u0627 Foreign Key \u0647\u0627 \u0628\u0631\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u06cc\u0646 \u062c\u062f\u0627\u0648\u0644 \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u0646\u062f.<\/p>\n<h3 dir=\"RTL\" style=\"text-align: justify;\"><strong>\u06f4- \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u06a9\u0627\u0631\u0628\u0631(User- Defined Integrity)<\/strong><\/h3>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u00a0\u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u0627\u0632 \u0646\u0627\u0645 \u0622\u0646 \u0646\u06cc\u0632 \u0645\u0634\u062e\u0635 \u0645\u06cc \u0628\u0627\u0634\u062f\u060c \u0627\u06cc\u0646 \u0642\u0627\u0628\u0644\u06cc\u062a \u06cc\u06a9\u067e\u0627\u0631\u0686\u0647 \u0633\u0627\u0632\u06cc \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u00a0\u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0648 Rule \u0647\u0627\u06cc \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u062a\u0648\u0633\u0637 \u06a9\u0627\u0631\u0628\u0631 \u0627\u0633\u062a. \u062f\u0633\u062a\u0648\u0631\u0627\u062a\u06cc \u0645\u0627\u0646\u0646\u062f \u06a9\u0646\u062a\u0631\u0644 \u062f\u0633\u062a\u0647 \u0628\u0646\u062f\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627 \u0648 \u06cc\u0627 \u062a\u0628\u062f\u06cc\u0644 \u06af\u0631\u0648\u0647\u06cc \u062e\u0627\u0635 \u0627\u0632 \u062f\u0627\u062f\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0641\u0631\u0645\u0648\u0644 \u0627\u0632 \u0642\u0628\u0644 \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647. Procedure\u0647\u0627 \u0648 Trigger\u0647\u0627 \u0646\u0645\u0648\u0646\u0647 \u0647\u0627\u06cc \u0627\u0632 \u0627\u0628\u0632\u0627\u0631\u0647\u0627\u06cc \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062f\u0631 \u0627\u06cc\u0646 \u06af\u0631\u0648\u0647 \u0645\u06cc \u0628\u0627\u0634\u0646\u062f.<\/p>\n<h2 dir=\"RTL\">\u0639\u0648\u0627\u0645\u0644 \u062a\u0627\u062b\u06cc\u0631\u06af\u0630\u0627\u0631 \u0628\u0631 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627:<\/h2>\n<ul>\n<li dir=\"RTL\">\u062e\u0637\u0627\u06cc \u0627\u0646\u0633\u0627\u0646\u06cc<\/li>\n<li dir=\"RTL\">\u062e\u0637\u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644<\/li>\n<li dir=\"RTL\">\u0648\u06cc\u0631\u0648\u0633 \u0647\u0627 \u0648 \u0628\u062f\u0627\u0641\u0632\u0627\u0631\u0647\u0627<\/li>\n<li dir=\"RTL\">\u062e\u0631\u0627\u0628\u06cc \u0633\u062e\u062a \u0627\u0641\u0632\u0627\u0631<\/li>\n<li dir=\"RTL\">\u062e\u0637\u0627\u0647\u0627\u06cc \u0641\u0646\u06cc<\/li>\n<\/ul>\n<p><script type=\"application\/ld+json\">\n    {\n    \"@context\": \"http:\/\/schema.org\/\",\n    \"@type\": \"CreativeWorkSeason\",\n    \"name\": \"Data integrity \u0686\u06cc\u0633\u062a\",\n    \"aggregateRating\": {\n    \"@type\": \"AggregateRating\",\n    \"ratingValue\": \"5\",\n    \"reviewCount\": \"785\"\n    }\n}\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0633\u0627\u062e\u062a \u0648 \u0637\u0631\u0627\u062d\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0647\u0627\u06cc SQL Server\u060c \u062d\u0641\u0638 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u060c \u0627\u0639\u062a\u0628\u0627\u0631 \u0648 \u0646\u0638\u0645 \u062f\u0627\u062f\u0647 \u0647\u0627 \u0627\u0632 \u0627\u0647\u0645\u06cc\u062a \u0628\u0633\u06cc\u0627\u0631 \u0628\u0627\u0644\u0627\u06cc\u06cc \u0628\u0631\u062e\u0648\u0631\u062f\u0627\u0631 \u0627\u0633\u062a. \u062f\u0631 \u0627\u06cc\u0646 \u0645\u0642\u0627\u0644\u0647 \u0645\u06cc \u062e\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0648 \u06cc\u0627 Data Integrity \u0686\u06cc\u0633\u062a \u0648 \u0686\u0647 \u062a\u0627\u062b\u06cc\u0631\u06cc \u0628\u0631 \u0631\u0648\u06cc \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 SQL Server \u062f\u0627\u0631\u062f. Data integrity \u0686\u06cc\u0633\u062a\u061f Data integrity \u06cc\u0627 \u0647\u0645\u0627\u0646 \u06cc\u06a9\u067e\u0627\u0631\u0686\u06af\u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u060c \u0627\u0632 \u0635\u062d\u062a &hellip;<\/p>\n","protected":false},"author":64,"featured_media":34692,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-9227","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-general"],"_links":{"self":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/9227","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/users\/64"}],"replies":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/comments?post=9227"}],"version-history":[{"count":0,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/9227\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media\/34692"}],"wp:attachment":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media?parent=9227"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/categories?post=9227"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/tags?post=9227"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}