{"id":7297,"date":"2012-08-16T17:22:29","date_gmt":"2012-08-16T12:52:29","guid":{"rendered":"http:\/\/blog.iranhostdir.ir\/?p=7297"},"modified":"2025-04-29T19:18:50","modified_gmt":"2025-04-29T15:48:50","slug":"%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d8%a7%d8%b1%d8%aa%d8%a8%d8%a7%d8%b7-%d9%88%d8%a8-%d8%b3%d8%a7%db%8c%d8%aa-%d8%a8%d8%a7-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d8%b2-%d8%b7%d8%b1%db%8c%d9%82","status":"publish","type":"post","link":"https:\/\/iranhost.com\/blog\/%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d8%a7%d8%b1%d8%aa%d8%a8%d8%a7%d8%b7-%d9%88%d8%a8-%d8%b3%d8%a7%db%8c%d8%aa-%d8%a8%d8%a7-%d8%af%db%8c%d8%aa%d8%a7%d8%a8%db%8c%d8%b3-%d8%a7%d8%b2-%d8%b7%d8%b1%db%8c%d9%82\/","title":{"rendered":"\u062a\u0646\u0638\u06cc\u0645 \u0627\u0631\u062a\u0628\u0627\u0637 \u0648\u0628 \u0633\u0627\u06cc\u062a \u0628\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0645\u0627\u0698\u0648\u0644 connection string \u062f\u0631 IIS 7.5"},"content":{"rendered":"<p dir=\"RTL\" style=\"text-align: justify;\">\u0647\u0646\u06af\u0627\u0645 \u0627\u062a\u0635\u0627\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u00a0\u06cc\u0627 \u0641\u0627\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u060c ADO \u06cc\u0627 ADO.Net \u0627\u0632 \u0633\u0631\u0648\u06cc\u0633 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 provider \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f\u0647 \u062a\u0627 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0631\u0627 \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u0645\u0627\u06cc\u062f \u0648 \u0627\u06cc\u0646 \u0627\u0631\u062a\u0628\u0627\u0637 \u0645\u0633\u062a\u0644\u0632\u0645 \u0622\u0646 \u0627\u0633\u062a \u06a9\u0647 provider \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0644\u0627\u0632\u0645 \u062c\u0647\u062a \u0627\u06cc\u0646 \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f . connection string \u062d\u0627\u0648\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 provider \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644 \u00a0\u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u06cc\u0627 \u0641\u0627\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f.<\/p>\n<p dir=\"RTL\" style=\"text-align: justify;\">\u06cc\u06a9 connection String \u00a0\u0627\u0632 \u062a\u0639\u062f\u0627\u062f\u06cc \u06a9\u0644\u0645\u0647 \u06a9\u0644\u06cc\u062f\u06cc \u0648 \u0645\u0642\u062f\u0627\u0631 \u062a\u0634\u06a9\u06cc\u0644 \u0634\u062f\u0647 \u0627\u0633\u062a \u00a0\u0648 \u062a\u0648\u0633\u0637 (=) \u0645\u0642\u0627\u062f\u06cc\u0631 \u0628\u0647 \u06a9\u0644\u0645\u0627\u062a \u06a9\u0644\u06cc\u062f\u06cc \u0627\u0646\u062a\u0633\u0627\u0628 \u0645\u06cc\u0627\u0628\u0646\u062f \u0648 \u0647\u0631 \u062c\u0641\u062a \u0627\u0632 \u06a9\u0644\u0645\u0627\u062a \u06a9\u0644\u06cc\u062f\u06cc \u0648 \u0645\u0642\u062f\u0627\u0631 \u0645\u062a\u0646\u0627\u0638\u0631 \u0622\u0646 \u062a\u0648\u0633\u0637 (;) \u0627\u0632 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u062c\u062f\u0627 \u0645\u06cc \u0634\u0648\u0646\u062f. (\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 key1 =value 1)<\/p>\n<p dir=\"RTL\">[irp posts=&#8221;10057&#8243; name=&#8221;\u0686\u06af\u0648\u0646\u06af\u06cc \u0627\u0631\u062a\u0628\u0627\u0637 \u0628\u0627 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u0648 \u0646\u062d\u0648\u0647 \u0646\u0648\u0634\u062a\u0646 connection string \u062f\u0631 ASP.Net&#8221;]\n<p dir=\"RTL\">\u062f\u0631 \u0632\u06cc\u0631 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u0646\u0645\u0648\u0646\u0647 \u0627\u06cc \u0627\u0632 \u06a9\u0644\u0645\u0627\u062a \u06a9\u0644\u06cc\u062f\u06cc \u06cc\u0627 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0647\u0627\u06cc \u0645\u062a\u062f\u0627\u0648\u0644 \u062f\u0631 Connection String \u0628\u0631\u0627\u06cc \u0628\u0627\u0646\u06a9 \u0647\u0627\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0645\u062e\u062a\u0644\u0641 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u0622\u0646 \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<ul>\n<li><strong>Initial Catalog<\/strong> : \u0646\u0627\u0645 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc SQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Database <\/strong>:\u00a0\u0646\u0627\u0645 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc MySQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Data Source<\/strong> :\u0633\u0631\u0648\u06cc\u0633 \u062f\u0647\u0646\u062f\u0647 \u06cc\u0627 \u0633\u0631\u0648\u0631 SQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Server <\/strong>:\u00a0\u0633\u0631\u0648\u06cc\u0633 \u062f\u0647\u0646\u062f\u0647 \u06cc\u0627 \u0633\u0631\u0648\u0631 MySQL \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>User ID<\/strong> :\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc Sql Server \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Uid :\u00a0<\/strong>\u0646\u0627\u0645 \u06a9\u0627\u0631\u0628\u0631\u06cc \u00a0MySQL Server \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Password<\/strong> : \u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u00a0\u00a0Sql Server \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Pwd :<\/strong>\u00a0\u0631\u0645\u0632 \u0639\u0628\u0648\u0631\u00a0\u00a0MySQL Server \u0631\u0627 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f.<\/li>\n<li><strong>Integrated Security \u06cc\u0627 Trusted Connection<\/strong> : \u062c\u0647\u062a \u0628\u0631\u0642\u0631\u0627\u0631\u06cc \u06cc\u06a9 \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u06cc\u0645\u0646 \u0628\u06a9\u0627\u0631 \u0645\u06cc\u0631\u0648\u062f \u0648 \u0645\u06cc\u062a\u0648\u0627\u0646\u062f \u0645\u0642\u0627\u062f\u06cc\u0631\u06cc \u0686\u0648\u0646 False ,True, SSPI \u0631\u0627 \u0628\u0647 \u062e\u0648\u062f \u0627\u062e\u062a\u0635\u0627\u0635 \u062f\u0647\u062f. \u062f\u0631 \u062d\u0627\u0644\u062a False \u0628\u0631\u0627\u06cc \u0627\u062d\u0631\u0627\u0632 \u0647\u0648\u06cc\u062a \u06a9\u0627\u0631\u0628\u0631 \u0627\u0632 \u062d\u0633\u0627\u0628 \u06a9\u0627\u0631\u0628\u0631\u06cc Windows \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u0634\u0648\u062f \u0648 \u062f\u0631 \u062d\u0627\u0644\u062a True , SSIP \u06a9\u0647 \u0645\u0639\u0627\u062f\u0644 \u06cc\u06a9\u062f\u06cc\u06af\u0631 \u0647\u0633\u062a\u0646\u062f User ID ,Password \u062f\u0631 Connection String \u0630\u06a9\u0631 \u0645\u06cc\u06af\u0631\u062f\u062f.<\/li>\n<li><strong>Encryption<\/strong> : \u06a9\u0647 \u06cc\u06a9 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u062f\u0631 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc MySQL \u0627\u0633\u062a \u0648 \u0628\u0627 \u06af\u0631\u0641\u062a\u0646 \u0645\u0642\u062f\u0627\u0631 True \u0627\u0631\u062a\u0628\u0627\u0637\u06cc \u0627\u0645\u0646 \u0627\u0632 \u0646\u0648\u0639 SSL \u0631\u0627 \u0628\u0631\u0627\u06cc \u0647\u0645\u0647 \u06cc \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0627\u0646\u062a\u0642\u0627\u0644 \u06cc\u0627\u0641\u062a\u0647 \u0628\u06cc\u0646 \u0633\u0631\u0648\u06cc\u0633 \u06af\u06cc\u0631\u0646\u062f\u0647 \u0648 \u0633\u0631\u0648\u0631 \u0628\u0631\u0642\u0631\u0627\u0631 \u0645\u06cc \u0633\u0627\u0632\u062f.<\/li>\n<li><strong>Connection TimeOut \u06cc\u0627 Connect TimeOut<\/strong> : \u06a9\u0647 \u0632\u0645\u0627\u0646 \u0627\u0646\u062a\u0638\u0627\u0631 \u0628\u0631\u0627\u06cc \u0628\u0631\u0642\u0631\u0627\u0631\u06cc \u0628\u0627 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0631\u0627 \u0628\u0631\u062d\u0633\u0628 \u062b\u0627\u0646\u06cc\u0647 \u0645\u0634\u062e\u0635 \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f \u0648 \u0628\u0647 \u0635\u0648\u0631\u062a \u067e\u06cc\u0634 \u0641\u0631\u0636 \u06f1\u06f5 \u062b\u0627\u0646\u06cc\u0647 \u062a\u0639\u0631\u06cc\u0641 \u0645\u06cc\u0634\u0648\u062f.<\/li>\n<\/ul>\n<p>\u0628\u0647 \u0634\u0645\u0627 \u067e\u06cc\u0634\u0646\u0647\u0627\u062f \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0628\u0631\u0627\u06cc \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062f\u0631 \u0645\u0648\u0631\u062f <a href=\"https:\/\/iranhost.com\/blog\/%DA%86%D9%8A%D8%B3%D8%AA-%D8%9F-microsoft-sql-server\/\">sql server \u0686\u06cc\u0633\u062a<\/a> \u0645\u0642\u0627\u0644\u0647 \u0645\u0627 \u0631\u0627 \u0645\u0637\u0627\u0644\u0639\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<div>\u062f\u0631 \u0632\u06cc\u0631 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u00a0\u0646\u0645\u0648\u0646\u0647 \u0627\u06cc \u0627\u0632 Connection String \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0628\u0647 \u0647\u0645\u0631\u0627\u0647 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0647\u0627\u06cc \u0622\u0646\u0647\u0627 \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/div>\n<p style=\"text-align: left;\">[pre]\n<div dir=\"ltr\" style=\"text-align: left;\">Data Source=myServerAddress;Initial Catalog=myDataBase;Integrated Security=SSPI;<\/div>\n<p style=\"text-align: left;\">[\/pre]\n<div style=\"text-align: right;\">\u062f\u0631 \u0645\u062b\u0627\u0644 \u0628\u0627\u0644\u0627 \u0646\u0645\u0648\u0646\u0647 \u0627\u06cc Connection String \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc SQL 2008 \u0627\u0632 \u0646\u0648\u0639 \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u06cc\u0645\u0646 SSPI \u0648 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0628\u0627 \u0646\u0627\u0645 &#8220;myDataBase&#8221; \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a.\u0645\u06cc\u062a\u0648\u0627\u0646 \u0622\u0646 \u0631\u0627 \u0628\u0647 \u06af\u0648\u0646\u0647 \u0627\u06cc \u062f\u06cc\u06af\u0631 \u0646\u06cc\u0632 \u0647\u0645\u0627\u0646\u0646\u062f \u0632\u06cc\u0631 \u062a\u0639\u0631\u06cc\u0641 \u06a9\u0631\u062f:<\/div>\n<p style=\"text-align: left;\">[pre]\n<div dir=\"ltr\" style=\"text-align: left;\">Server=myServerAddress;Database=myDataBase;Trusted_Connection=True;<\/div>\n<p style=\"text-align: left;\">[\/pre]\n<p>&nbsp;<\/p>\n<p>\u062f\u0631 \u0632\u06cc\u0631 \u0646\u06cc\u0632 \u0645\u06cc\u062a\u0648\u0627\u0646\u06cc\u062f \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 \u0627\u0632 connection String \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc MySQL \u0631\u0627 \u0645\u0634\u0627\u0647\u062f\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p style=\"text-align: left;\">[pre]\n<p dir=\"ltr\" style=\"text-align: left;\">Server=myServerAddress;Database=myDataBase;Uid=myUsername;Pwd=myPassword;Encryption=true;<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\">[\/pre]\n<p style=\"text-align: right;\">\u00a0\u062f\u0631 \u0645\u062b\u0627\u0644 \u0641\u0648\u0642 \u060c Connection String \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc MySQL \u0627\u0632 \u0646\u0648\u0639 \u0627\u0631\u062a\u0628\u0627\u0637 \u0627\u06cc\u0645\u0646 \u00a0\u0648 \u0628\u0631\u0627\u06cc \u00a0\u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0628\u0627 \u0646\u0627\u0645 &#8220;myDataBase&#8221; \u0648 \u0633\u0631\u0648\u06cc\u0633 \u062f\u0647\u0646\u062f\u0647 \u0628\u0627 \u0622\u062f\u0631\u0633 &#8220;myServerAddress&#8221;\u00a0\u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<div style=\"text-align: right;\"><strong>\u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0631\u0627\u0628\u0637 \u06a9\u0627\u0631\u0628\u0631\u06cc\u00a0<\/strong><strong>IIS Manager<\/strong><strong>\u00a0\u0648\u00a0<\/strong><strong>\u0633\u0627\u062e\u062a<\/strong><strong>\u00a0<\/strong><strong>connection string<\/strong><strong>\u00a0<\/strong><strong>:<\/strong><\/div>\n<p dir=\"RTL\">\u0645\u0627\u0698\u0648\u0644 connection Strings \u00a0\u062c\u0647\u062a \u0630\u062e\u06cc\u0631\u0647 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u062a\u0645\u0627\u0633 \u0628\u0631\u0646\u0627\u0645\u0647 \u062a\u062d\u062a \u067e\u0644\u062a\u0641\u0631\u0645 asp.net \u00a0\u0648 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0645\u0631\u0628\u0648\u0637\u0647 \u060c \u0645\u0648\u0631\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u06af\u06cc\u0631\u062f.<\/p>\n<p dir=\"RTL\">\u0627\u06af\u0631 \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u06cc\u0631\u0627\u0646 \u0647\u0627\u0633\u062a \u0645\u06cc \u0628\u0627\u0634\u062f \u062c\u0647\u062a \u0627\u0634\u0646\u0627\u06cc\u06cc \u0628\u0627 \u0646\u062d\u0648\u0647 \u06cc \u0627\u062a\u0635\u0627\u0644 \u0628\u0647\u00a0 IIS manager \u0628\u0647 \u0644\u06cc\u0646\u06a9 \u0632\u06cc\u0631 \u0645\u0631\u0627\u062c\u0639\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f :<\/p>\n<p dir=\"RTL\" style=\"text-align: left;\" align=\"right\"><a href=\"https:\/\/support.iranhost.com\/kb\/a153\/iis-.aspx\">https:\/\/support.iranhost.com\/kb\/a153\/iis-.aspx<\/a><\/p>\n<p dir=\"RTL\">\u0628\u0639\u062f \u0627\u0632 \u0644\u0627\u06af\u06cc\u0646 \u0628\u0647 IIS \u0628\u0631 \u0631\u0648\u06cc \u0622\u06cc\u06a9\u0646 connection string\u00a0 \u06a9\u0644\u06cc\u06a9\u00a0 \u0646\u0645\u0627\u06cc\u06cc\u062f \u0648 \u062f\u0631 \u067e\u0646\u0644 \u0633\u0645\u062a \u0631\u0627\u0633\u062a \u0631\u0648\u06cc \u06af\u0632\u06cc\u0646\u0647 Add \u06a9\u0644\u06cc\u06a9 \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u062f\u0631 \u067e\u0646\u062c\u0631\u0647 \u06cc Add Connection String \u06cc\u06a9 \u0646\u0627\u0645 \u0628\u0631\u0627\u06cc \u0622\u0646 \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u0628\u0627 \u0627\u0646\u062a\u062e\u0627\u0628 \u06af\u0632\u06cc\u0646\u0647 \u06cc Sql Server \u060c \u0622\u062f\u0631\u0633 \u0633\u0631\u0648\u0631\u06cc \u06a9\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0634\u0645\u0627 \u0631\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0645\u06cc\u0646\u0645\u0627\u06cc\u062f \u062f\u0631 \u0642\u0633\u0645\u062a Server \u0648 \u062f\u0631 \u0642\u0633\u0645\u062a Database \u0646\u0627\u0645 \u062f\u06cc\u062a\u0627\u0628\u06cc\u0633 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u0646\u0645\u0627\u06cc\u06cc\u062f.<\/p>\n<p dir=\"RTL\">\u0628\u0644\u0627\u0641\u0627\u0635\u0644\u0647 \u067e\u0633 \u0627\u0632 \u0627\u0641\u0632\u0648\u062f\u0646 connection string \u00a0\u062a\u06af &lt;connectionStrings&gt; \u062f\u0631 \u0641\u0627\u06cc\u0644 web.config \u00a0\u00a0\u0628\u0647 \u0647\u0645\u0631\u0627\u0647 CS \u0645\u0631\u0628\u0648\u0637\u0647 \u0627\u06cc\u062c\u0627\u062f \u062e\u0648\u0627\u0647\u062f \u0634\u062f:<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\" align=\"right\">[pre]\n<p style=\"text-align: left;\">&lt;connectionStrings&gt;<\/p>\n<p style=\"text-align: left;\">&lt;add name=&#8221;myConnectionString&#8221; connectionString=&#8221;server=localhost;database=myDb;uid=myUser;password=myPass;&#8221; \/&gt;<\/p>\n<p style=\"text-align: left;\">&lt;\/connectionStrings&gt;<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\" align=\"right\">[\/pre]\n<p dir=\"RTL\">\u0648 \u0645\u06cc\u062a\u0648\u0627\u0646 \u0628\u0631\u0627\u06cc \u062e\u0648\u0627\u0646\u062f\u0646 connection string \u00a0\u0641\u0648\u0642 \u0627\u0632 \u06a9\u0644\u0627\u0633 ConfigurationSettings \u0648 \u0642\u0637\u0639\u0647 \u06a9\u062f \u0646\u0645\u0648\u0646\u0647 \u0632\u06cc\u0631 \u062f\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0647\u0627\u06cc \u062a\u062d\u062a \u067e\u0644\u062a\u0641\u0631\u0645 asp.net \u00a0\u060c \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f:<\/p>\n<p dir=\"ltr\">[pre]\n<p dir=\"ltr\" style=\"text-align: left;\" align=\"right\">string connStr = ConfigurationManager.ConnectionStrings[&#8220;myConnectionString&#8221;].ConnectionString;<\/p>\n<p dir=\"ltr\" style=\"text-align: left;\" align=\"right\">\u00a0[\/pre]\n<p dir=\"RTL\"><strong>\u0645\u0634\u0627\u0647\u062f\u0647 \u06cc \u0644\u06cc\u0633\u062a<\/strong><strong>\u00a0<\/strong><strong>connection string<\/strong><strong>\u00a0<\/strong><strong>\u0647\u0627\u06cc \u0633\u0627\u062e\u062a\u0647 \u0634\u062f\u0647 :<\/strong><\/p>\n<p dir=\"RTL\">\u0628\u0627 \u0644\u06cc\u0633\u062a \u06a9\u0631\u062f\u0646 \u0622\u0646\u0647\u0627 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0631\u0634\u062a\u0647 \u0647\u0627\u06cc connection string \u0631\u0627 \u062f\u0631 \u0633\u0637\u062d config \u062f\u0644\u062e\u0648\u0627\u0647 \u0645\u0631\u062a\u0628 \u0646\u0645\u0627\u06cc\u06cc\u062f. \u0627\u06cc\u0646 \u0644\u06cc\u0633\u062a \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u0631 \u062d\u0633\u0628 \u0646\u0627\u0645 \u060c \u0631\u0634\u062a\u0647 \u0648 \u0646\u0648\u0639 \u0633\u062a\u0648\u0646 \u0645\u0631\u062a\u0628 \u06af\u0631\u062f\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646\u0647\u0627 \u0631\u0627 \u062f\u0631 \u06af\u0631\u0648\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 \u0637\u0628\u0642\u0647 \u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062f\u0627\u0646\u06cc\u062f \u06a9\u062f\u0627\u0645\u06cc\u06a9 \u062f\u0631 \u0633\u0637\u062d local \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0627\u0646\u062f \u00a0\u0648 \u06a9\u062f\u0627\u0645\u06cc\u06a9 \u0627\u0632 parent \u0627\u0631\u062b \u0628\u0631\u06cc \u062f\u0627\u0631\u0646\u062f.<\/p>\n<p dir=\"RTL\">\u0628\u0631\u0627\u06cc \u0622\u0634\u0646\u0627\u06cc\u06cc \u0628\u0627 \u0641\u0631\u0645\u062a connection string \u0628\u0631\u0627\u06cc \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641 (sqlserver,mysql,oracle,informix) \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0633\u0627\u06cc\u062a \u0632\u06cc\u0631 \u0645\u0631\u0627\u062c\u0639\u0647 \u0646\u0645\u0627\u06cc\u06cc\u062f:<\/p>\n<p><a href=\"https:\/\/www.connectionstrings.com\/\" rel=\"nofollow noopener\" target=\"_blank\">https:\/\/www.connectionstrings.com\/<\/a><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0647\u0646\u06af\u0627\u0645 \u0627\u062a\u0635\u0627\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 \u00a0\u06cc\u0627 \u0641\u0627\u06cc\u0644 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u060c ADO \u06cc\u0627 ADO.Net \u0627\u0632 \u0633\u0631\u0648\u06cc\u0633 \u0645\u0631\u0628\u0648\u0637 \u0628\u0647 provider \u062e\u0648\u062f \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u0645\u0648\u062f\u0647 \u062a\u0627 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0628\u0627\u0646\u06a9 \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc \u0631\u0627 \u0628\u0631\u0642\u0631\u0627\u0631 \u0646\u0645\u0627\u06cc\u062f \u0648 \u0627\u06cc\u0646 \u0627\u0631\u062a\u0628\u0627\u0637 \u0645\u0633\u062a\u0644\u0632\u0645 \u0622\u0646 \u0627\u0633\u062a \u06a9\u0647 provider \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0644\u0627\u0632\u0645 \u062c\u0647\u062a \u0627\u06cc\u0646 \u0627\u062a\u0635\u0627\u0644 \u0631\u0627 \u062f\u0631 \u0627\u062e\u062a\u06cc\u0627\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f . connection string \u062d\u0627\u0648\u06cc \u0627\u0637\u0644\u0627\u0639\u0627\u062a\u06cc &hellip;<\/p>\n","protected":false},"author":64,"featured_media":7300,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"class_list":["post-7297","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\/7297","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=7297"}],"version-history":[{"count":0,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/posts\/7297\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/media?parent=7297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/categories?post=7297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/iranhost.com\/blog\/wp-json\/wp\/v2\/tags?post=7297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}