{"id":187664,"date":"2013-07-24T17:45:03","date_gmt":"2013-07-24T13:45:03","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=187664"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=187664","title":{"rendered":"<span class=\"post_title\">\u0418\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0434\u0430\u043d\u043d\u044b\u0435. \u0412 \u043f\u043e\u0438\u0441\u043a\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0440\u0435\u0448\u0435\u043d\u0438\u044f<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0418\u0441\u0441\u043b\u0435\u0434\u0443\u044f \u043e\u0431\u0448\u0438\u0440\u043d\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0442\u0440\u0443\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435 \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 asp.net c# \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u00ab\u0441\u0432\u0438\u043d\u043d\u044b\u0445 \u0443\u0448\u0435\u0439\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c-\u043f\u043e\u0442\u043e\u043c\u043e\u043a \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0431\u0430\u0437\u0430 \u0432 SQL Server 2008, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u041e\u0422\u0412(CTE \u2014 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u044b).<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0412 \u043c\u043e\u0435\u0439 \u0441\u0438\u0441\u0442\u0435\u043c\u0435 \u0441\u0442\u0440\u043e\u0438\u0442\u0441\u044f \u043c\u043e\u0434\u0435\u043b\u044c \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0434\u043e\u043b\u0436\u043d\u0430 \u0443\u0434\u043e\u0432\u043b\u0435\u0442\u0432\u043e\u0440\u044f\u0442\u044c \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u0443 SADT \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043e \u043d\u0438\u0436\u0435 \u043d\u0430 \u0440\u0438\u0441\u0443\u043d\u043a\u0435 1.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/d99\/49c\/5a3\/d9949c5a3bb5ee7508c952b2d527fd23.png\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 1. \u041c\u043e\u0434\u0435\u043b\u044c<\/p>\n<p>  \u0417\u0434\u0435\u0441\u044c BPNumber \u2014 \u0447\u0438\u0441\u043b\u043e \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0437\u0443\u0435\u0442 \u043f\u043e\u0440\u044f\u0434\u043e\u043a \u0431\u0438\u0437\u043d\u0435\u0441-\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u043d\u0430 \u0441\u0432\u043e\u0435\u043c \u0443\u0440\u043e\u0432\u043d\u0435 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0438. \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0438\u0434\u0435\u0442 \u043f\u043e\u0434\u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0423\u0423(\u00ab\u0423\u0447\u0435\u0431\u043d\u043e\u0435 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u00bb) -1, \u00ab\u041a\u0430\u0444\u0435\u0434\u0440\u0430\u00bb \u2014 2, \u0430 \u0437\u0430\u0442\u0435\u043c \u00ab\u0414\u0435\u043a\u0430\u043d\u0430\u0442\u00bb \u2014 3(\u0440\u0438\u0441. 2).<\/p>\n<p>  \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u043e\u043b\u0436\u0435\u043d \u0432\u044b\u0433\u043b\u044f\u0434\u0435\u0442\u044c \u043f\u0440\u0438\u0431\u043b\u0438\u0437\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0430\u043a:<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/47e\/c1c\/017\/47ec1c017f43bf914d7dc0f1cf95b1bf.png\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 2. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442<\/p>\n<p>  \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u043f\u0440\u0438\u043c\u0435\u0440\u044b \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438, \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0435 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0430\u0432\u0442\u043e\u0440\u0430\u043c\u0438, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0441\u043f\u0440\u0430\u0432\u043a\u0438 \u0441 msdn \u0430\u0432\u0442\u043e\u0440 \u043f\u0440\u0438\u0448\u043b\u0430 \u043a \u0432\u044b\u0432\u043e\u0434\u0443, \u0447\u0442\u043e \u0432\u044b\u0442\u0430\u0441\u043a\u0438\u0432\u0430\u0442\u044c \u0432\u0441\u0435 \u043e\u0434\u043d\u0438\u043c \u0441\u043f\u0438\u0441\u043a\u043e\u043c \u0432 \u041e\u0422\u0412 \u0438 \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u0442\u043e\u043c \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 asp.net \u043b\u0438\u0448\u043d\u044f\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u0441 \u0440\u0435\u043a\u0443\u0440\u0441\u0438\u0435\u0439, \u0434\u0430 \u0438 \u043e\u0431\u043e\u0439\u0442\u0438 \u0435\u0435 \u0432\u044b\u0441\u0442\u0440\u043e\u0438\u0432 xml \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u0432 \u0434\u0435\u0440\u0435\u0432\u043e \u0432\u0441\u0435 \u0440\u0430\u0432\u043d\u043e \u043d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043c\u043d\u043e\u0433\u043e\u0447\u0438\u0441\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434. \u041d\u0435 \u043e\u043f\u0442\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u043f\u043e\u0434\u0443\u043c\u0430\u043b\u0430 \u044f.<br \/>  \u0420\u0435\u0448\u0438\u0432, \u0447\u0442\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c\u0438 t-sql \u043d\u0435 \u043a\u043e\u0440\u043e\u0442\u043a\u043e, \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0438\u043b\u0430 \u043f\u043e\u0438\u0441\u043a \u0443\u0436\u0435 \u0432 \u0434\u0440\u0443\u0433\u0438\u0445 \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f\u0445. \u0418 \u043d\u0430\u0448\u043b\u0430 \u0432\u043e\u0442 \u044d\u0442\u0443 \u0441\u0442\u0430\u0442\u044c\u044e <a href=\"http:\/\/www.gotdotnet.ru\/blogs\/sadomovalex\/8845\/\">\u0440\u0430\u0431\u043e\u0442\u0430 \u0441 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 asp.net mvc<\/a>. \u041c\u043e\u0436\u0435\u0442 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043a\u043e\u043c\u0443-\u0442\u043e \u043f\u043e\u043c\u043e\u0436\u0435\u0442?<\/p>\n<p>  \u0410 \u0432\u043e\u0442 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0435 \u0437\u0434\u0435\u0441\u044c <a href=\"http:\/\/techbrij.com\/display-hierarchical-data-with-treeview-in-asp-net\">Display Hierarchical Data with TreeView in ASP.NET 2.0<\/a> \u043f\u043e\u0440\u0430\u0437\u0438\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u043e\u0439 \u0438 \u0432\u0437\u044f\u0432 \u0435\u0433\u043e \u0437\u0430 \u043e\u0441\u043d\u043e\u0432\u0443 \u044f \u0440\u0435\u0448\u0438\u043b\u0430 \u043f\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u044b\u0448\u0435 \u0437\u0430\u0434\u0430\u0447\u0443 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0433\u043e \u043a\u0430\u043a \u043d\u0430\u0434\u043e \u0441\u043f\u0438\u0441\u043a\u0430. \u0414\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f NULL \u0432 -1 \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c:<\/p>\n<pre><code class=\"cs\">SqlCommand dbCommand = new SqlCommand(&quot;SELECT  [BusinessProcessID], [BPName], [ProjectID], case when [BusinessProcessIDTOP] IS NULL  then -1 else [BusinessProcessIDTOP] end as [BusinessProcessIDTOP] FROM [BusinessProcess] WHERE ([ProjectID] = &quot; + HiddenField1.Value.ToString() + &quot;) order by BPNumber&quot;, myConn); <\/code><\/pre>\n<p>  \u041b\u0438\u0441\u0442\u0438\u043d\u0433 1. \u041f\u043e\u0438\u0441\u043a \u0432\u0435\u0440\u0445\u043d\u0435\u0433\u043e \u0443\u0437\u043b\u0430<br \/>  \u041d\u0443 \u0430 \u0432\u0435\u0441\u044c \u043b\u0438\u0441\u0442\u0438\u043d\u0433 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u0432\u043e\u0442 \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c  <\/p>\n<pre><code class=\"cs\">using System.Data.SqlClient;   public partial class bptree : System.Web.UI.Page {     DataTable dtTree = new DataTable();     protected void Page_Load(object sender, EventArgs e)     {                 String strConnect = SqlDataSource1.ConnectionString;         SqlConnection myConn = new SqlConnection(strConnect);         myConn.Open();         SqlCommand dbCommand = new SqlCommand(&quot;SELECT  [BusinessProcessID], [BPName], [ProjectID], case when [BusinessProcessIDTOP] IS NULL  then -1 else [BusinessProcessIDTOP] end as [BusinessProcessIDTOP] FROM [BusinessProcess] WHERE ([ProjectID] = &quot; + HiddenField1.Value.ToString() + &quot;) order by BPNumber&quot;, myConn);         SqlDataAdapter da = new SqlDataAdapter(dbCommand);         da.Fill(dtTree);         da.Dispose();         dbCommand.Dispose();         myConn.Dispose();         if (!IsPostBack)         AddNodes(-1, TreeView1.Nodes);             }     void AddNodes(int id, TreeNodeCollection tn)     {         foreach (DataRow dr in dtTree.Select(&quot;BusinessProcessIDTOP = &quot; + id))         {             TreeNode sub = new TreeNode(dr[&quot;BPName&quot;].ToString(), dr[&quot;BusinessProcessID&quot;].ToString());             tn.Add(sub);             AddNodes(Convert.ToInt32(sub.Value), sub.ChildNodes);         }     }  } <\/code><\/pre>\n<p>  \u041b\u0438\u0441\u0442\u0438\u043d\u0433 2. \u0420\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0432 2 \u043c\u0435\u0442\u043e\u0434\u0430\u0445<\/p>\n<p>  \u041d\u0443 \u0430 \u0447\u0442\u043e \u0436\u0435 \u043a\u0430\u0441\u0430\u0435\u0442\u0441\u044f \u041e\u0422\u0412. \u0422\u043e \u0434\u043b\u044f \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u044b\u0445 \u043d\u0438\u0436\u0435 \u0437\u0430\u0434\u0430\u0447 \u0434\u0443\u043c\u0430\u044e \u043e\u043d\u0438 \u043f\u043e\u0434\u0445\u043e\u0434\u044f\u0442 \u043b\u0443\u0447\u0448\u0435:  <\/p>\n<ul>\n<li>\u041f\u043e\u0438\u0441\u043a \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0443\u0437\u043b\u0430 <\/li>\n<li>\u0412\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u0443\u0442\u0438(\u043a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u0441 \u0444\u0430\u0439\u043b\u0430\u043c\u0438) <\/li>\n<li>\u041d\u0430\u0445\u043e\u0436\u0434\u0435\u043d\u0438\u044f \u0443\u0437\u043b\u043e\u0432, \u0438\u043c\u0435\u044e\u0449\u0438\u0445 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u044b\u0445 \u043f\u0440\u0435\u0434\u043a\u043e\u0432 <\/li>\n<li>\u041d\u0443 \u0438 \u043c\u0430\u0441\u0441\u043e\u0432\u044b\u0435 \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u044b \u0432\u043e \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u0435<\/li>\n<\/ul>\n<p>  \u041a \u043f\u0440\u0438\u043c\u0435\u0440\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u043a\u043e\u0434 t-sql \u0441 \u041e\u0422\u0412:<\/p>\n<pre><code class=\"sql\">\/****** \u0421\u0446\u0435\u043d\u0430\u0440\u0438\u0439 \u0434\u043b\u044f \u041e\u0422\u0412  ******\/ with cte_bp([BusinessProcessID]       ,[BPName],[BusinessProcessIDTOP], level ,paths)       as (SELECT  [BusinessProcessID]       ,[BPName]       ,[BusinessProcessIDTOP], 0 as level, CAST([BPName]as nvarchar(max))+'\/'          FROM [cmk].[dbo].[BusinessProcess]   where [ProjectID]=1 and BusinessProcessIDTOP is null    UNION ALL SELECT  [BusinessProcess].[BusinessProcessID]       ,[BusinessProcess].[BPName]       ,[BusinessProcess].[BusinessProcessIDTOP], level+1, d.paths +cast([BusinessProcess].[BPName] as nvarchar(max))+'\/'          FROM [cmk].[dbo].[BusinessProcess]   Inner join cte_bp as d on d.BusinessProcessID=BusinessProcess.BusinessProcessIDTOP  ) -- Statement using the CTE SELECT *, SPACE(level)+BPName as ch FROM cte_bp order by paths,BusinessProcessID <\/code><\/pre>\n<p>  \u041b\u0438\u0441\u0442\u0438\u043d\u0433 3. \u0420\u0430\u0431\u043e\u0442\u0430 \u0441 \u041e\u0422\u0412<\/p>\n<p>  \u0412\u043e\u0442 \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0435\u043d\u043d\u044b\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442:<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/storage2\/9d7\/6bc\/8e8\/9d76bc8e86a2b3264023ea941c94e750.png\"\/><br \/>  \u0420\u0438\u0441\u0443\u043d\u043e\u043a 3. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0430<\/p>\n<p>  \u0414\u0443\u043c\u0430\u044e \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u043d\u044b\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u0442\u0435\u043c, \u043a\u0442\u043e \u043a\u0430\u043a \u0438 \u0430\u0432\u0442\u043e\u0440 \u044d\u0442\u043e\u0433\u043e \u0442\u043e\u043f\u0438\u043a\u0430 \u0438\u0449\u0435\u0442 \u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u043e\u0435 \u0438 \u0431\u044b\u0441\u0442\u0440\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0434\u0430\u043d\u043d\u044b\u0445, \u0445\u0440\u0430\u043d\u044f\u0449\u0438\u0445\u0441\u044f \u043d\u0430 SQL Server 2008 \u0438 \u0432\u044b\u0448\u0435. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/187664\/\"> http:\/\/habrahabr.ru\/post\/187664\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0418\u0441\u0441\u043b\u0435\u0434\u0443\u044f \u043e\u0431\u0448\u0438\u0440\u043d\u044b\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u0430 \u0438\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0430 \u043c\u043d\u0435 \u043f\u0440\u0438\u0448\u043b\u043e\u0441\u044c \u043f\u043e\u0442\u0440\u0443\u0434\u0438\u0442\u044c\u0441\u044f \u043d\u0430\u0434 \u0442\u0435\u043c \u043a\u0430\u043a \u0436\u0435 \u0432\u0441\u0435 \u0442\u0430\u043a\u0438 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u043d\u0435 \u0442\u044f\u0436\u0435\u043b\u043e\u0432\u0435\u0441\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0430 asp.net c# \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0442\u0430\u043a \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u044b\u0445 \u00ab\u0441\u0432\u0438\u043d\u043d\u044b\u0445 \u0443\u0448\u0435\u0439\u00bb, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u0442 \u043a\u043b\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u043e\u0434\u0435\u043b\u044c \u0440\u043e\u0434\u0438\u0442\u0435\u043b\u044c-\u043f\u043e\u0442\u043e\u043c\u043e\u043a \u0432 \u0431\u0430\u0437\u0435 \u0434\u0430\u043d\u043d\u044b\u0445. \u0421\u0440\u0430\u0437\u0443 \u043e\u0433\u043e\u0432\u043e\u0440\u044e\u0441\u044c \u0431\u0430\u0437\u0430 \u0432 SQL Server 2008, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u0436\u0435 \u0438\u043c\u0435\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0438\u0435\u0440\u0430\u0440\u0445\u0438\u0447\u0435\u0441\u043a\u0438\u043c\u0438 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0432 \u041e\u0422\u0412(CTE \u2014 \u0430\u043d\u0433\u043b\u0438\u0439\u0441\u043a\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0430\u0431\u0431\u0440\u0435\u0432\u0438\u0430\u0442\u0443\u0440\u044b).  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-187664","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=187664"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/187664\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=187664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=187664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=187664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}