<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-9040797442182018325</id><updated>2024-09-11T22:12:29.660+05:30</updated><category term="SQL Server Express 2012"/><category term="SQLEXPRESS"/><category term="MSSQL"/><category term="ASP.Net"/><category term="Database"/><category term="MicrosoftReportViewer"/><category term="PrintButton"/><category term="ReportViewer"/><category term="Stored Procedure"/><category term="AjaxControlToolkit"/><category term="Autoincrement"/><category term="C#"/><category term="Copy Database"/><category term="MaintainScrollPositiononPostBack"/><category term="Math.Ceiling"/><category term="Math.Floor"/><category term="Math.Round"/><category term="PrintIssue"/><category term="PrintProblem in Report Viewer"/><category term="RDLC"/><category term="Shortcut Virus"/><category term="table size"/><title type='text'>Solomon Tech Blog</title><subtitle type='html'>Technical Lead with 9+ years of IT experience in application system design and development using Microsoft technology.&#xa;Worked in Onsite / Offshore setup. Excellent communication skills bridging Client Interaction and Team Management.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>28</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-1589159365151836726</id><published>2021-04-01T13:40:00.001+05:30</published><updated>2021-04-01T13:40:20.057+05:30</updated><title type='text'>C# file crashed in Visual Studio not able to recover.</title><content type='html'>&lt;p&gt;&amp;nbsp;Hi Please find the Solution in the URL given below.&lt;br /&gt;&lt;br /&gt;https://www.samnoble.co.uk/2014/11/30/visual-studio-crashes-and-a-corrupted-cs-file/&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;For me Solution 4 has worked.&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/1589159365151836726/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/1589159365151836726' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1589159365151836726'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1589159365151836726'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2021/04/c-file-crashed-in-visual-studio-not.html' title='C# file crashed in Visual Studio not able to recover.'/><author><name>I&#39;m Solomon</name><uri>http://www.blogger.com/profile/05233514525691957397</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-6764707103188377036</id><published>2020-01-21T15:42:00.001+05:30</published><updated>2020-01-21T15:42:34.273+05:30</updated><title type='text'>Use LUIS (Language Understanding Intelligent Service) in ChatBot</title><content type='html'>&lt;iframe allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;270&quot; src=&quot;https://www.youtube.com/embed/m7ry-PqGlkg&quot; width=&quot;480&quot;&gt;&lt;/iframe&gt;</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/6764707103188377036/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/6764707103188377036' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/6764707103188377036'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/6764707103188377036'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2020/01/use-luis-language-understanding.html' title='Use LUIS (Language Understanding Intelligent Service) in ChatBot'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://img.youtube.com/vi/m7ry-PqGlkg/default.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-3689998796958297552</id><published>2018-10-03T18:49:00.002+05:30</published><updated>2018-10-03T18:49:44.521+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Express 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLEXPRESS"/><title type='text'>Find table size in SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi There,&lt;br /&gt;
&lt;br /&gt;
Worried about how to find which table contains more records, Which table consuming more space in your database.&lt;br /&gt;
&lt;br /&gt;
Just simply run the Query given below. Your problem solved.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
SELECT&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; t.NAME AS TableName,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; s.Name AS SchemaName,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; p.rows AS RowCounts,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; SUM(a.total_pages) * 8 AS TotalSpaceKB,&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; CAST(ROUND(((SUM(a.total_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS TotalSpaceMB,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; SUM(a.used_pages) * 8 AS UsedSpaceKB,&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; CAST(ROUND(((SUM(a.used_pages) * 8) / 1024.00), 2) AS NUMERIC(36, 2)) AS UsedSpaceMB,&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; (SUM(a.total_pages) - SUM(a.used_pages)) * 8 AS UnusedSpaceKB,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; CAST(ROUND(((SUM(a.total_pages) - SUM(a.used_pages)) * 8) / 1024.00, 2) AS NUMERIC(36, 2)) AS UnusedSpaceMB&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
FROM&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; sys.tables t&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
INNER JOIN&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; sys.indexes i ON t.OBJECT_ID = i.object_id&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
INNER JOIN&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; sys.partitions p ON i.object_id = p.OBJECT_ID AND i.index_id = p.index_id&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
INNER JOIN&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; sys.allocation_units a ON p.partition_id = a.container_id&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
LEFT OUTER JOIN&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; sys.schemas s ON t.schema_id = s.schema_id&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
WHERE&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; t.NAME NOT LIKE &#39;dt%&#39;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; AND t.is_ms_shipped = 0&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; AND i.OBJECT_ID &amp;gt; 255&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
GROUP BY&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; t.Name, s.Name, p.Rows&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
ORDER BY&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; t.Name&lt;/blockquote&gt;
&lt;/blockquote&gt;
&lt;br /&gt;
Hope it will help you!. If yes please give your comment.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Solomon S.&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/3689998796958297552/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/3689998796958297552' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3689998796958297552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3689998796958297552'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2018/10/find-table-size-in-sql-server.html' title='Find table size in SQL Server'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-4913741662307694203</id><published>2018-10-03T18:45:00.000+05:30</published><updated>2018-10-03T18:46:17.534+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><title type='text'>Remove .aspx extension from ASP.Net application page on Runtime</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hey There,&lt;br /&gt;
&lt;br /&gt;
It&#39;s being a long time I havn&#39;t write any thing to this blog. But today I have found very nice trick to avoid .aspx extension from the URL.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
First you have to install a Package (Microsoft.AspNet.FriendlyURL) from Nuget&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;background-color: #002440; color: white; font-family: &amp;quot;consolas&amp;quot; , &amp;quot;menlo&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;courier new&amp;quot; , monospace; font-size: 12.8px;&quot;&gt;Install-Package Microsoft.AspNet.FriendlyUrls -Version 1.0.2&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Then Simple add a Global.asax page in application and write a simple code in Application_Start section.&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp; protected void Application_Start(object sender, EventArgs e)&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; RouteConfig.RegisterRoutes(System.Web.Routing.RouteTable.Routes);&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope it will be helpful for you. Don&#39;r forgot to comment if you face any problem or it resolved your problem.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Solomon Sarkar&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/4913741662307694203/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/4913741662307694203' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4913741662307694203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4913741662307694203'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2018/10/remove-aspx-extension-from-aspnet.html' title='Remove .aspx extension from ASP.Net application page on Runtime'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneswar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-7813489353962863008</id><published>2017-12-16T12:59:00.000+05:30</published><updated>2017-12-16T13:00:43.212+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MicrosoftReportViewer"/><category scheme="http://www.blogger.com/atom/ns#" term="PrintButton"/><category scheme="http://www.blogger.com/atom/ns#" term="PrintIssue"/><category scheme="http://www.blogger.com/atom/ns#" term="PrintProblem in Report Viewer"/><category scheme="http://www.blogger.com/atom/ns#" term="ReportViewer"/><title type='text'>Microsoft Report Viewer Print in Other browser as well as in different OS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
As report viewer need ActiveX control to print the report which was possible in Windows IE only.&lt;br /&gt;
&lt;br /&gt;
But after a long search on google. I have found 2 Solution which will allow you to print in Chrome and FireFox as well.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Solution 1: (&lt;/b&gt;Render content in HTML and call Print Command through JavaScript&lt;b&gt;)&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;
Put this code in Head of the page.&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;lt;script src=&quot;https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js&quot; type=&quot;text/javascript&quot;&amp;gt;&amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;lt;script type=&quot;text/javascript&quot;&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Linking the print function to the print button&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(document).ready(function () {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; $(&#39;#printreport&#39;).click(function () {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //alert(&#39;Hi&#39;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; printReport(&#39;ReportViewer1&#39;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; function printReport(report_ID) {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var rv1 = $(&#39;#&#39; + report_ID);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var iDoc = rv1.parents(&#39;html&#39;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Reading the report styles&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var styles = iDoc.find(&quot;head style[id$=&#39;ReportControl_styles&#39;]&quot;).html();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if ((styles == undefined) || (styles == &#39;&#39;)) {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; iDoc.find(&#39;head script&#39;).each(function () {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var cnt = $(this).html();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var p1 = cnt.indexOf(&#39;ReportStyles&quot;:&quot;&#39;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (p1 &amp;gt; 0) {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p1 += 15;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var p2 = cnt.indexOf(&#39;&quot;&#39;, p1);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; styles = cnt.substr(p1, p2 - p1);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (styles == &#39;&#39;) { alert(&quot;Cannot generate styles, Displaying without styles..&quot;); }&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; styles = &#39;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&#39; + styles + &quot;&amp;lt;/style&amp;gt;&quot;;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Reading the report html&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var table = rv1.find(&quot;div[id$=&#39;_oReportDiv&#39;]&quot;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if (table == undefined) {&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; alert(&quot;Report source not found.&quot;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; return;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // Generating a copy of the report in a new window&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var docType = &#39;&amp;lt;!DOCTYPE HTML PUBLIC &quot;-//W3C//DTD HTML 4.01//EN&quot; &quot;http://www.w3.org/TR/html4/loose.dtd&quot;&amp;gt;&#39;;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var docCnt = styles + table.parent().html();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var docHead = &#39;&amp;lt;style&amp;gt;body{margin:0;padding:0; line-height: 0.5em;} @page { size: A4; margin: 0;} @media print { html, body {&amp;nbsp; width: 210mm; height: 297mm; }} @media print { footer { page-break-after: always; }} td {padding:0;}&amp;lt;/style&amp;gt;&#39;;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var winAttr = &quot;location=yes, statusbar=no, directories=no, menubar=no, titlebar=no, toolbar=no, dependent=no, width=900px, height=700px, resizable=yes, screenX=100, screenY=100, personalbar=no, scrollbars=yes&quot;;;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; var newWin = window.open(&quot;&quot;, &quot;_blank&quot;, winAttr);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeDoc = newWin.document;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeDoc.open();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeDoc.write(docType + &#39;&amp;lt;html&amp;gt;&#39; + docHead + &#39;&amp;lt;body onload=&quot;window.print();&quot;&amp;gt;&#39; + docCnt + &#39;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&#39;);&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writeDoc.close();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // The print event will fire as soon as the window loads&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; newWin.focus();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // uncomment to autoclose the preview window when printing is confirmed or canceled.&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; // newWin.close();&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; };&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; });&lt;/b&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;lt;/script&amp;gt;&lt;/b&gt;&lt;/blockquote&gt;
&lt;/blockquote&gt;
&amp;nbsp;Control on Page&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;input id=&quot;printreport&quot; type=&quot;button&quot; value=&quot;Print&quot; /&amp;gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;rsweb:ReportViewer ID=&quot;ReportViewer1&quot; runat=&quot;server&quot; Font-Names=&quot;Verdana&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Font-Size=&quot;8pt&quot; InteractiveDeviceInfos=&quot;(Collection)&quot; ShowExportControls=&quot;true&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WaitMessageFont-Names=&quot;Verdana&quot; WaitMessageFont-Size=&quot;14pt&quot; Height=&quot;600px&quot; Width=&quot;820px&quot; ShowPrintButton=&quot;true&quot;&amp;gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;LocalReport ReportPath=&quot;report.rdlc&quot;&amp;gt;&amp;nbsp; &amp;lt;/LocalReport&amp;gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;/rsweb:ReportViewer&amp;gt;&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;Solution 2 (&lt;/b&gt;Render report content in PDF and call print function.&lt;b&gt;)&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Required itextsharp.dll version 5.0&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;asp:ImageButton ID=&quot;btnPrint&quot; runat=&quot;server&quot; OnClick=&quot;btnPrint_Click&quot; ImageUrl=&quot;https://cdn3.iconfinder.com/data/icons/black-easy/512/535129-print_512x512.png&quot; Height=&quot;50px&quot;&amp;nbsp; /&amp;gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;rsweb:ReportViewer ID=&quot;ReportViewer1&quot; runat=&quot;server&quot; Font-Names=&quot;Verdana&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Font-Size=&quot;8pt&quot; InteractiveDeviceInfos=&quot;(Collection)&quot; ShowExportControls=&quot;true&quot;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; WaitMessageFont-Names=&quot;Verdana&quot; WaitMessageFont-Size=&quot;14pt&quot; Height=&quot;600px&quot; Width=&quot;820px&quot; ShowPrintButton=&quot;true&quot;&amp;gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;LocalReport ReportPath=&quot;report.rdlc&quot;&amp;gt;&amp;nbsp; &amp;lt;/LocalReport&amp;gt;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;lt;/rsweb:ReportViewer&amp;gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp;using System.IO;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
using iTextSharp.text.pdf;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
using iTextSharp.text;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
using Microsoft.Reporting.WebForms;&amp;nbsp;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
protected void btnPrint_Click(object sender, ImageClickEventArgs e)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Warning[] warnings;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string[] streamids;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string mimeType;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string encoding;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; string extension;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; byte[] bytes = ReportViewer1.LocalReport.Render(&quot;PDF&quot;, null, out mimeType,&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;out encoding, out extension, out streamids, out warnings);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FileStream fs = new FileStream(HttpContext.Current.Server.MapPath(&quot;output.pdf&quot;), FileMode.Create);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fs.Write(bytes, 0, bytes.Length);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; fs.Close();&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Open exsisting pdf&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Document document = new Document(PageSize.A4);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfReader reader = new PdfReader(HttpContext.Current.Server.MapPath(&quot;output.pdf&quot;));&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Getting a instance of new pdf wrtiter&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfWriter writer = PdfWriter.GetInstance(document, new FileStream(&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;HttpContext.Current.Server.MapPath(&quot;Print.pdf&quot;), FileMode.Create));&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.Open();&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfContentByte cb = writer.DirectContent;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int i = 0;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int p = 0;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; int n = reader.NumberOfPages;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Rectangle psize = reader.GetPageSize(1);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float width = psize.Width;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; float height = psize.Height;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Add Page to new document&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; while (i &amp;lt; n)&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; {&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.NewPage();&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; p++;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; i++;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfImportedPage page1 = writer.GetImportedPage(reader, i);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; cb.AddTemplate(page1, 0, 0);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Attach javascript to the document&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; PdfAction jAction = PdfAction.JavaScript(&quot;this.print(true);\r&quot;, writer);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; writer.AddJavaScript(jAction);&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; document.Close();&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;br /&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; //Attach pdf to the iframe&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; frmPrint.Attributes[&quot;src&quot;] = &quot;Print.pdf&quot;;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; }&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
This solution has been checked in Windows, Mac &amp;amp; Ubuntu with Chrome &amp;amp; FireFox Browser&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/7813489353962863008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/7813489353962863008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/7813489353962863008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/7813489353962863008'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2017/12/microsoft-report-viewer-print-in-other.html' title='Microsoft Report Viewer Print in Other browser as well as in different OS'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneswar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-3167827463206489479</id><published>2017-12-11T11:47:00.001+05:30</published><updated>2017-12-11T11:47:43.243+05:30</updated><title type='text'>Error : Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
While we are trying to upload Excel Sheet in the database through ASP.Net application, we normally found the error&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
Microsoft.ACE.OLEDB.12.0&#39; provider is not registered on the local machine&lt;/blockquote&gt;
And we google for it and download&amp;nbsp;&amp;nbsp;2007 Office System Driver: Data Connectivity Components and install it on the server but the problem never solved because its 32 Bits application you need to download 64 Bit Driver.&lt;br /&gt;
&lt;br /&gt;
URL is&amp;nbsp;&lt;a href=&quot;https://www.microsoft.com/en-us/download/details.aspx?id=13255&quot;&gt;https://www.microsoft.com/en-us/download/details.aspx?id=13255&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
And the problem solved.&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/3167827463206489479/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/3167827463206489479' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3167827463206489479'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3167827463206489479'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2017/12/error-microsoftaceoledb120-provider-is.html' title='Error : Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-4469042311545700075</id><published>2016-07-29T12:01:00.001+05:30</published><updated>2016-07-29T12:01:36.172+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Express 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLEXPRESS"/><title type='text'>How to change schema of all tables, views and stored procedures in MSSQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;Yes, it is possible.&lt;/strong&gt;&lt;br /&gt;


To change the schema of a database object you need to run the following SQL script:&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;ALTER&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;SCHEMA&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; NewSchemaName TRANSFER OldSchemaName&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;ObjectName&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Where ObjectName can be the name of a table, a view or a stored 
procedure. The problem seems to be getting the list of all database 
objects with a given shcema name. Thankfully, there is a system table 
named sys.Objects that stores all database objects. The following query 
will generate all needed SQL scripts to complete this task:&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;pre class=&quot;lang-sql prettyprint prettyprinted&quot;&gt;&lt;code&gt;&lt;span class=&quot;kwd&quot;&gt;SELECT&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;ALTER SCHEMA NewSchemaName TRANSFER [&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; SysSchemas&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Name &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;].[&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; DbObjects&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Name &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;+&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;];&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;FROM&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; sys&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Objects DbObjects
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;INNER&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;JOIN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; sys&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Schemas SysSchemas &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;ON&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; DbObjects&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;schema_id &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; SysSchemas&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;schema_id
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;WHERE&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; SysSchemas&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Name &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;OldSchemaName&#39;&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;
&lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;AND&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;DbObjects&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt;Type &lt;/span&gt;&lt;span class=&quot;kwd&quot;&gt;IN&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;U&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;P&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;,&lt;/span&gt;&lt;span class=&quot;pln&quot;&gt; &lt;/span&gt;&lt;span class=&quot;str&quot;&gt;&#39;V&#39;&lt;/span&gt;&lt;span class=&quot;pun&quot;&gt;))&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;/blockquote&gt;
Where type &#39;U&#39; denotes user tables, &#39;V&#39; denotes views and &#39;P&#39; denotes stored procedures.&lt;br /&gt;
&lt;br /&gt;
Now you can run all these generated queries to complete the transfer operation.&lt;br /&gt;
&lt;br /&gt;
Reference : &lt;a href=&quot;http://stackoverflow.com/questions/17571233/how-to-change-schema-of-all-tables-views-and-stored-procedures-in-mssql&quot;&gt;http://stackoverflow.com/questions/17571233/how-to-change-schema-of-all-tables-views-and-stored-procedures-in-mssql&lt;/a&gt; &lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/4469042311545700075/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/4469042311545700075' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4469042311545700075'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4469042311545700075'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2016/07/how-to-change-schema-of-all-tables.html' title='How to change schema of all tables, views and stored procedures in MSSQL'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneswar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-2676122640096041573</id><published>2015-07-08T17:02:00.001+05:30</published><updated>2015-07-08T17:02:11.674+05:30</updated><title type='text'>Setup Database Mail in SQL Server 2012 Express</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 28px;&quot;&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;SQL Server 2012 Express still supports Database Mail (DB Mail), but it’s well hidden.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One should enable Database mail on the server, before setting up the database mail profile and accounts, Either can be done by using Transact SQL to enable Database Mail. Run the following statement in the SQl Server Management Studio.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
use master&lt;br /&gt;go&lt;br /&gt;sp_configure &#39;show advanced options&#39;,1&lt;br /&gt;go&lt;br /&gt;reconfigure with override&lt;br /&gt;go&lt;br /&gt;sp_configure &#39;Database Mail XPs&#39;,1&lt;br /&gt;--go&lt;br /&gt;--sp_configure &#39;SQL Mail XPs&#39;,0&lt;br /&gt;go&lt;br /&gt;reconfigure&lt;br /&gt;go&lt;/blockquote&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;One can enable the Configuration Component Database account by using the sysmail_add_account procedure.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;EXECUTE msdb.dbo.sysmail_add_account_sp&lt;br /&gt;@account_name = &#39;TestMailAccount&#39;,&lt;br /&gt;@description = &#39;Mail account for Database Mail&#39;,&lt;br /&gt;@email_address = &#39;tanmaya@mydomain.com&#39;,&lt;br /&gt;@display_name = &#39;MyAccount&#39;,&lt;br /&gt;@username=&#39;tanmaya@mydomain.com&#39;,&lt;br /&gt;@password=&#39;1qwe432&#39;,&lt;br /&gt;@mailserver_name = &#39;mail.mydomain.com&#39;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 3&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Now one should create a Mail profile.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;EXECUTE msdb.dbo.sysmail_add_profile_sp&lt;br /&gt;@profile_name = &#39;TestMailProfile&#39;,&lt;br /&gt;@description = &#39;Profile needed for database mail&#39;&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 4&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;Next will be the sysmail_add_profileaccount procedure, to include the Database Mail account which is created in step 2, along with the Database Mail profile in step 3.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;EXECUTE msdb.dbo.sysmail_add_profileaccount_sp&lt;br /&gt;@profile_name = &#39;TestMailProfile&#39;,&lt;br /&gt;@account_name = &#39;TestMailAccount&#39;,&lt;br /&gt;@sequence_number = 1&lt;/span&gt;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 5&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;EXECUTE msdb.dbo.sysmail_add_principalprofile_sp&lt;br /&gt;@profile_name = &#39;TestMailProfile&#39;,&lt;br /&gt;@principal_name = &#39;public&#39;,&lt;br /&gt;@is_default = 1 ;&lt;/span&gt;&lt;/blockquote&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
UPDATE msdb.dbo.sysmail_server SET enable_ssl=1&amp;nbsp;&lt;/blockquote&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 6&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;After all these settings done, try to send a test mail from MSSQL Server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;declare @body1 varchar(100)&lt;br /&gt;set @body1 = &#39;Server :&#39;+@@servername+ &#39; Test DB Email &#39;&lt;br /&gt;EXEC msdb.dbo.sp_send_dbmail @recipients=&#39;tanmaya@mydomain.com&#39;,&lt;br /&gt;@subject = &#39;Test&#39;,&lt;br /&gt;@body = @body1,&lt;br /&gt;@body_format = &#39;HTML&#39; ;&lt;/span&gt;&lt;/blockquote&gt;
&lt;div&gt;
&lt;div&gt;
&lt;b&gt;&lt;span style=&quot;font-family: inherit;&quot;&gt;Step 7&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You can review the logs linked to Database Mail.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;You’d execute the below query.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;font-family: inherit;&quot;&gt;SELECT * FROM msdb.dbo.sysmail_event_log&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
&lt;span style=&quot;color: #574d4d; font-family: Droid Serif, Times New Roman, serif;&quot;&gt;&lt;span style=&quot;background-color: white; font-size: 14px; line-height: 28px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/2676122640096041573/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/2676122640096041573' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/2676122640096041573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/2676122640096041573'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2015/07/setup-database-mail-in-sql-server-2012.html' title='Setup Database Mail in SQL Server 2012 Express'/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/blank.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-3294489499486074169</id><published>2015-03-04T11:34:00.001+05:30</published><updated>2015-03-10T10:34:15.770+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Express 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLEXPRESS"/><category scheme="http://www.blogger.com/atom/ns#" term="table size"/><title type='text'>Listing all tables in a MSSQL Database and their row counts and space uses</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: Arial, Helvetica, sans-serif; font-size: 1em; font-style: normal; font-variant: normal; font-weight: bold; letter-spacing: normal; line-height: 20.9919986724854px; margin-bottom: 10px; margin-left: 0px; margin-top: 30px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Using sp_spaceused&lt;/h2&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: #212121; display: inline !important; float: none; font-family: Arial, Helvetica, sans-serif; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20.9919986724854px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;sp_spaceused without parameters displays the disk space reserved and used by the whole database. However by specifying a table name as the first parameter it will display the number of rows, disk space used and reserved by a table. We can use this with the sp_MSForEachTable procedure mentioned above to get results for every table. An advantage to this approach is that it also shows the space used each table (data and index).&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: #212121; display: inline !important; float: none; font-family: Arial, Helvetica, sans-serif; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20.9919986724854px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;CREATE&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;TABLE&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;#RowCountsAndSizes&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;TableName&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;NVARCHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;128&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;CHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;11&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;reserved&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;data&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;index_size&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;),&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;unused&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;VARCHAR&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;18&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;))&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;EXEC&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: maroon; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;sp_MSForEachTable&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: red; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&#39;INSERT INTO #RowCountsAndSizes EXEC sp_spaceused &#39;&#39;?&#39;&#39; &#39;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SELECT&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;TableName&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: magenta;&quot;&gt;CONVERT&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;bigint&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;rows&lt;/span&gt;&lt;span style=&quot;color: grey;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue;&quot;&gt;AS&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;NumberOfRows&lt;span style=&quot;color: grey;&quot;&gt;,&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: magenta; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;CONVERT&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;bigint&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;,left(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;reserved&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: magenta; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;len&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;reserved&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;)-&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;3&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;))&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;AS&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;SizeinKB&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;FROM&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #RowCountsAndSizes&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;ORDER&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;BY&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&amp;nbsp;&amp;nbsp; NumberOfRows&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;DESC&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SizeinKB&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;DESC&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: grey; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;TableName&lt;/span&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;br style=&quot;-webkit-text-stroke-width: 0px; color: #212121; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;DROP&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; color: blue; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;TABLE&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #ffffe1; color: #212121; display: inline !important; float: none; font-family: &#39;Courier New&#39;, Courier, monospace; font-size: 13.1199998855591px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;#RowCountsAndSizes&lt;/span&gt;&lt;/span&gt;&lt;/blockquote&gt;
&lt;br /&gt;
Hope the content is helpful.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/3294489499486074169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/3294489499486074169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3294489499486074169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/3294489499486074169'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2015/03/listing-all-tables-in-mssql-database.html' title='Listing all tables in a MSSQL Database and their row counts and space uses'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-1481716009439478019</id><published>2015-01-09T16:22:00.004+05:30</published><updated>2015-01-09T16:22:41.842+05:30</updated><title type='text'>Generate Random Password in SQL Server Store Procedure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;Sometimes there is a need to reset a password using a temporary password or generate a random password for a new user. This simple store procedure is creating it.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;create proc [dbo].uspRandChars
    @len int,
    @min tinyint = 48,
    @range tinyint = 74,
    @exclude varchar(50) = &#39;0:;&amp;lt;=&amp;gt;?@O[]`^\/&#39;,
    @output varchar(50) output
as 
    declare @char char
    set @output = &#39;&#39;
 
    while @len &amp;gt; 0 begin
       select @char = char(round(rand() * @range + @min, 0))
       if charindex(@char, @exclude) = 0 begin
           set @output += @char
           set @len = @len - 1
       end
    end
;
go&lt;/pre&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;
&lt;/pre&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;&lt;ol style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;
&lt;li&gt;&lt;strong&gt;LEN&lt;/strong&gt;&amp;nbsp;- specifies the length of the result (required)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;MIN&lt;/strong&gt;&amp;nbsp;- sets the starting&amp;nbsp;&lt;a href=&quot;http://www.asciitable.com/&quot; target=&quot;_blank&quot;&gt;ASCII code&lt;/a&gt;&amp;nbsp;(optional: defaults to &quot;48&quot;: which is the number zero)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;RANGE&lt;/strong&gt;&amp;nbsp;- determines the range of how many ASCII characters to include (optional: defaults to &quot;74&quot;&amp;nbsp; (48 + 74 = 122) where 122 is a lowercase &quot;z&quot;)&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;EXCLUDE&lt;/strong&gt;&amp;nbsp;- a string of characters to exclude from the final output (optional: defaults include zero, capital &quot;O&quot;, and these punctuation marks :;&amp;lt;=&amp;gt;?@[]`^\/)&lt;/li&gt;
&lt;/ol&gt;
&lt;/pre&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;To use the stored procedure issue commands such as the following.&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;pre style=&quot;font-size: 12px;&quot;&gt;&lt;pre&gt;declare @newpwd varchar(20)


-- all values between ASCII code 48 - 122 excluding defaults
exec [dbo].uspRandChars @len=8, @output=@newpwd out
select @newpwd


-- all lower case letters excluding o and l
exec [dbo].uspRandChars @len=10, @min=97, @range=25, @exclude=&#39;ol&#39;, @output=@newpwd out
select @newpwd


-- all upper case letters excluding O
exec [dbo].uspRandChars @len=12, @min=65, @range=25, @exclude=&#39;O&#39;, @output=@newpwd out
select @newpwd


-- all numbers between 0 and 9
exec [dbo].uspRandChars @len=14, @min=48, @range=9, @exclude=&#39;&#39;, @output=@newpwd out
select @newpwd&lt;/pre&gt;
&lt;pre&gt;
&lt;/pre&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;Here is sample output from the above commands:&lt;/span&gt;&lt;/pre&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;http://www.mssqltips.com/tipimages2/2534_sampleoutput.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;http://www.mssqltips.com/tipimages2/2534_sampleoutput.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
Reference : http://www.mssqltips.com/sqlservertip/2534/sql-server-stored-procedure-to-generate-random-passwords/&lt;/div&gt;
&lt;pre&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 13px; white-space: normal;&quot;&gt;
&lt;/span&gt;&lt;/pre&gt;
&lt;/pre&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/1481716009439478019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/1481716009439478019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1481716009439478019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1481716009439478019'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2015/01/generate-random-password-in-sql-server.html' title='Generate Random Password in SQL Server Store Procedure'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-382545351605142061</id><published>2014-12-26T17:04:00.002+05:30</published><updated>2014-12-26T17:04:25.062+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Copy Database"/><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><title type='text'>How to make a copy of a existing database into new database</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
This feature is not available in Express version.&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;Right Click on database -&amp;gt; Task -&amp;gt; Copy Database.&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
It will open a wizard you have to follow, where you will have to select the source database and enter a new database name to copy whole database objects into the newer one.&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/382545351605142061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/382545351605142061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/382545351605142061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/382545351605142061'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/12/how-to-make-copy-of-existing-database.html' title='How to make a copy of a existing database into new database'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-4625015199243356547</id><published>2014-08-30T15:31:00.002+05:30</published><updated>2014-08-30T15:33:15.544+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="C#"/><category scheme="http://www.blogger.com/atom/ns#" term="Math.Ceiling"/><category scheme="http://www.blogger.com/atom/ns#" term="Math.Floor"/><category scheme="http://www.blogger.com/atom/ns#" term="Math.Round"/><title type='text'>How to round to the nearest whole number in C# ?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
I have Googled for it and found some interesting answers:&lt;br /&gt;
&lt;br /&gt;
My problem was solved by simple using on Math.Ceiling&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 10px; max-height: 600px; orphans: auto; overflow: auto; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: auto; width: auto; word-spacing: 0px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;kwd&quot; style=&quot;background: transparent; border: 0px; color: darkblue; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;var&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; wholeNumber &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;=&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt; &lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;int&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;)&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Math&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ceiling&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;(&lt;/span&gt;&lt;span class=&quot;pln&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;fractionalNumber&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;);&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;br /&gt;
And other interesting answers are :&lt;br /&gt;
&lt;br /&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 10px; max-height: 600px; orphans: auto; overflow: auto; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: auto; width: auto; word-spacing: 0px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Math&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Ceiling&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
always rounds up (towards the ceiling)&lt;/div&gt;
&lt;pre class=&quot;lang-cs prettyprint prettyprinted&quot; style=&quot;-webkit-text-stroke-width: 0px; background: rgb(238, 238, 238); border: 0px; color: black; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 10px; max-height: 600px; orphans: auto; overflow: auto; padding: 5px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: auto; width: auto; word-spacing: 0px; word-wrap: normal;&quot;&gt;&lt;code style=&quot;background: rgb(238, 238, 238); border: 0px; font-family: Consolas, Menlo, Monaco, &#39;Lucida Console&#39;, &#39;Liberation Mono&#39;, &#39;DejaVu Sans Mono&#39;, &#39;Bitstream Vera Sans Mono&#39;, &#39;Courier New&#39;, monospace, serif; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Math&lt;/span&gt;&lt;span class=&quot;pun&quot; style=&quot;background: transparent; border: 0px; color: black; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;.&lt;/span&gt;&lt;span class=&quot;typ&quot; style=&quot;background: transparent; border: 0px; color: #2b91af; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Floor&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
always rounds down (towards to floor)&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
References :&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/8666069/decimal-double-to-integer-round-up-not-just-to-nearest&quot;&gt;http://stackoverflow.com/questions/8666069/decimal-double-to-integer-round-up-not-just-to-nearest&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/8844674/how-to-round-to-the-nearest-whole-number-in-c-sharp&quot;&gt;http://stackoverflow.com/questions/8844674/how-to-round-to-the-nearest-whole-number-in-c-sharp&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background: rgb(255, 255, 255); border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/977796/why-does-math-round2-5-return-2-instead-of-3-in-c&quot;&gt;http://stackoverflow.com/questions/977796/why-does-math-round2-5-return-2-instead-of-3-in-c&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/4625015199243356547/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/4625015199243356547' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4625015199243356547'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/4625015199243356547'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/08/how-to-round-to-nearest-whole-number-in.html' title='How to round to the nearest whole number in C# ?'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-1231902041568379883</id><published>2014-08-22T12:44:00.001+05:30</published><updated>2014-08-22T12:45:47.075+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MicrosoftReportViewer"/><category scheme="http://www.blogger.com/atom/ns#" term="PrintButton"/><category scheme="http://www.blogger.com/atom/ns#" term="RDLC"/><category scheme="http://www.blogger.com/atom/ns#" term="ReportViewer"/><title type='text'>Microsoft Report Viewer Print Button not Working / Visible in IE 10 &amp; 11</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20.952383041381836px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #444444; display: inline !important; float: none; font-family: sans-serif; font-size: 15px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 20.952383041381836px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
I had created report in on of my client website using &quot;Microsoft Report Viewer Control&quot; but a very known problem with Report Viewer is Printing is not possible in other browser instead of Internet Explorer.&lt;br /&gt;
&lt;br /&gt;
Today I have faced a new problem that Print Button is not visible in IE 11 when Client updated their&amp;nbsp; Windows 8 to Windows 8.1.&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AXrbErZwG0bPmJKLpitPl-SV2MHr6G3U7S7gJM07-sgUm0q_BuWQPMA8atxuOoxtfj89FBODv6eOs6gc_UTCZs7SFOn9vcWpoRfl1b_7Bz3e_qmEPbHcMtu3VQD22yIgq-WDk986nyZU/s1600/lPb5C.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AXrbErZwG0bPmJKLpitPl-SV2MHr6G3U7S7gJM07-sgUm0q_BuWQPMA8atxuOoxtfj89FBODv6eOs6gc_UTCZs7SFOn9vcWpoRfl1b_7Bz3e_qmEPbHcMtu3VQD22yIgq-WDk986nyZU/s1600/lPb5C.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;&lt;br /&gt;
Then I started goggling and Finally I found&amp;nbsp; that it&#39;s happens because of Active X. And I followed these steps give below.&lt;br /&gt;
&lt;br /&gt;
&lt;ul style=&quot;-webkit-text-stroke-width: 0px; background: transparent; border: 0px; color: #222222; font-family: &#39;Segoe UI&#39;, Tahoma, Arial, Helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 18.211200714111328px; list-style: disc; margin: 0px 0px 18px 30px; orphans: auto; outline: 0px; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;&amp;nbsp;Start Windows Internet Explorer.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;On the Tools menu, click Internet Options.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;On the Security tab, click Local Intranet, and then click Sites&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Click Advanced.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Type the URL of your site in the Add this website to the zone box, and then click Add. &amp;nbsp;(in development mode it will be http://localhost)&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Click Close to close the Local Intranet dialog box, and then click OK.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;On the Security tab, click Custom Level.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Click Enable for each component that is listed under ActiveX controls and plugins.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Click OK to close the Internet Options dialog box.&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Restart Internet Explorer&lt;/li&gt;
&lt;li style=&quot;background: transparent; border: 0px; font-size: 13px; margin: 0px 0px 5px; outline: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Try printing the report.&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
It&#39;s working fine now !!!.&lt;br /&gt;
&lt;br /&gt;
Hope it will help you. :)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/1231902041568379883/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/1231902041568379883' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1231902041568379883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1231902041568379883'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/08/microsoft-report-viewer-print-button.html' title='Microsoft Report Viewer Print Button not Working / Visible in IE 10 &amp; 11'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh7AXrbErZwG0bPmJKLpitPl-SV2MHr6G3U7S7gJM07-sgUm0q_BuWQPMA8atxuOoxtfj89FBODv6eOs6gc_UTCZs7SFOn9vcWpoRfl1b_7Bz3e_qmEPbHcMtu3VQD22yIgq-WDk986nyZU/s72-c/lPb5C.png" height="72" width="72"/><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-8723205705534535838</id><published>2014-05-09T12:06:00.002+05:30</published><updated>2014-05-09T12:06:29.933+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="ASP.Net"/><category scheme="http://www.blogger.com/atom/ns#" term="MaintainScrollPositiononPostBack"/><title type='text'>Maintain Scroll Position on Postback in ASP.NET </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
After a long time googling I have got a good solutions to maintain scroll position. See the post given below.&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;This article shows how to allows pages to automatically maintain the current scroll position across postbacks.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;The&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;outline: none 0px;&quot;&gt;MaintainScrollPositionOnPostback&lt;/strong&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;page directive attribute allows to do that.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;This feature is useful for large pages where scrolling is necessary to view input controls down further on the page.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-bottom: 12pt; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;There are three ways of applying the property to a web page.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;ol style=&quot;outline: none 0px;&quot;&gt;
&lt;li style=&quot;outline: none 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 12pt; outline: none 0px; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;You can set it programmatically&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;outline: none 0px;&quot; /&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;Page.MaintainScrollPositionOnPostBack =&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; outline: none 0px;&quot;&gt;true&lt;/span&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;outline: none 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 12pt; outline: none 0px; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;In the page declaration&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;outline: none 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;&amp;lt;%&lt;span style=&quot;color: blue; outline: none 0px;&quot;&gt;@&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: maroon; outline: none 0px;&quot;&gt;Page&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; outline: none 0px;&quot;&gt;MaintainScrollPositionOnPostback&lt;/span&gt;&lt;span style=&quot;color: blue; outline: none 0px;&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;%&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li style=&quot;outline: none 0px;&quot;&gt;&lt;div style=&quot;margin-bottom: 12pt; outline: none 0px; vertical-align: top;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;Or in the web.configs &amp;lt;system.web&amp;gt; section.&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;outline: none 0px;&quot; /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&quot;color: maroon; font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;pages&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: red; outline: none 0px;&quot;&gt;maintainScrollPositionOnPostBack&lt;/span&gt;&lt;span style=&quot;color: blue; outline: none 0px;&quot;&gt;=&quot;true&quot;&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;color: blue; outline: none 0px;&quot;&gt;/&amp;gt; &lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;I have used 3 point &amp;amp; It&#39;s working absolutely fine.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: Verdana; font-size: 10pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;This feature is an absolute must-have on large web pages built for postback scenarios.&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; display: inline !important; float: none; font-family: &#39;segoe UI&#39;; font-size: x-small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana; font-size: 10pt; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;A simple but very useful feature.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; vertical-align: top; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0in 0in 0pt; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;&lt;span style=&quot;font-size: x-small; outline: none 0px;&quot;&gt;Smartnavigation =&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; font-size: x-small; outline: none 0px;&quot;&gt;true&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;implemented the same feature in 1.1 framework&lt;/span&gt;&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt; SmartNavigation only had &quot;issues&quot; and it only worked in IE but the new MaintainScrollPositionOnPostback apparently works in most common browsers.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0in 0in 0pt; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0in 0in 0pt; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: &#39;segoe UI&#39;; font-size: small; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0in 0in 0pt; orphans: auto; outline: none 0px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-family: Verdana, Arial, Helvetica, sans-serif; outline: none 0px;&quot;&gt;Reference : &lt;a href=&quot;http://www.c-sharpcorner.com/uploadfile/yogesh12/postback12292006050702am/postback.aspx&quot; target=&quot;_blank&quot;&gt;http://www.c-sharpcorner.com/uploadfile/yogesh12/postback12292006050702am/postback.aspx &lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/8723205705534535838/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/8723205705534535838' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8723205705534535838'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8723205705534535838'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/05/maintain-scroll-position-on-postback-in.html' title='Maintain Scroll Position on Postback in ASP.NET '/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-37842355802157857</id><published>2014-03-31T15:13:00.002+05:30</published><updated>2014-03-31T15:18:32.217+05:30</updated><title type='text'>Generate a unique alphanumeric password using SQL</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwvUFxUFPpBm1ruUs1b4pyW17i_q6vTnXCjJAGj3YF_6r9w-eqMpaBx64xq_t4fZLlEB88YKOeHRT2D4RPVjyddHMjU6xZtvsqhgTVSbt1s_Ffc9qvhQiCb3CS6VmRzEf8HFwYmMbIkDpP/s1600/sql.jpg&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwvUFxUFPpBm1ruUs1b4pyW17i_q6vTnXCjJAGj3YF_6r9w-eqMpaBx64xq_t4fZLlEB88YKOeHRT2D4RPVjyddHMjU6xZtvsqhgTVSbt1s_Ffc9qvhQiCb3CS6VmRzEf8HFwYmMbIkDpP/s1600/sql.jpg&quot; height=&quot;280&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;DECLARE @PwdLen SMALLINT,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;@Chr TINYINT,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;@Password VARCHAR(20)&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;-- Seed&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @Chr = RAND(DATEPART(ms, GETDATE())) * 0&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @Password = &#39;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @PwdLen = 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;WHILE @PwdLen &amp;lt; 8&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;BEGIN&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @Chr = RAND() * 62&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @Password = @Password +&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;a class=&quot;kLink&quot; href=&quot;http://www.dbforums.com/#&quot; id=&quot;KonaLink2&quot; style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; background-image: none !important; background-position: initial initial !important; background-repeat: initial initial !important; border: 0px none transparent !important; bottom: 0px; color: blue; cursor: pointer; display: inline !important; font-family: inherit !important; font-size: inherit !important; font-style: normal; font-variant: normal; font-weight: inherit !important; left: 0px; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; outline: none; padding: 0px; position: static; right: 0px; text-align: start; text-decoration: underline !important; text-indent: 0px; text-transform: none; top: 0px; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;&lt;span style=&quot;color: blue; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; position: static;&quot;&gt;&lt;span class=&quot;kLink&quot; style=&quot;background-color: transparent; background-image: none; background-position: initial initial; background-repeat: initial initial; border-bottom-style: solid; border-bottom-width: 1px; border-left-style: none !important; border-left-width: 0px !important; border-right-style: none !important; border-right-width: 0px !important; border-top-style: none !important; border-top-width: 0px !important; color: blue !important; display: inline !important; float: none !important; font-family: inherit !important; font-size: inherit !important; font-weight: inherit !important; padding: 0px 0px 1px !important; position: static; width: auto !important;&quot;&gt;CHAR&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;(&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;CASE WHEN @Chr &amp;lt; 10 THEN @Chr + 48&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;WHEN @Chr BETWEEN 10 AND 35 THEN @Chr + 55&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;ELSE @Chr + 61&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;END)&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SET @PwdLen = @PwdLen + 1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;END&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; /&gt;
&lt;span style=&quot;-webkit-text-stroke-width: 0px; background-color: #fafafa; color: black; display: inline !important; float: none; font-family: verdana, geneva, lucida, &#39;lucida grande&#39;, arial, helvetica, sans-serif; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;SELECT @Password [Password]&lt;/span&gt;&lt;/blockquote&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/37842355802157857/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/37842355802157857' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/37842355802157857'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/37842355802157857'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/03/generate-unique-alphanumeric-password.html' title='Generate a unique alphanumeric password using SQL'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjwvUFxUFPpBm1ruUs1b4pyW17i_q6vTnXCjJAGj3YF_6r9w-eqMpaBx64xq_t4fZLlEB88YKOeHRT2D4RPVjyddHMjU6xZtvsqhgTVSbt1s_Ffc9qvhQiCb3CS6VmRzEf8HFwYmMbIkDpP/s72-c/sql.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-8085827694559788821</id><published>2014-03-19T14:40:00.002+05:30</published><updated>2014-03-19T14:40:47.792+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLEXPRESS"/><title type='text'>SQL statement which will give me all the days of a given month as individual rows</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Hi friends,&lt;br /&gt;
&lt;br /&gt;
I have searched a lot in Google and finally I found that its too easy to get the result. Check the query given below.&lt;br /&gt;
&lt;br /&gt;
&lt;blockquote class=&quot;tr_bq&quot;&gt;
DECLARE @month&amp;nbsp;&amp;nbsp;&amp;nbsp; INT&lt;br /&gt;DECLARE @year&amp;nbsp;&amp;nbsp;&amp;nbsp; INT&lt;br /&gt;SET @month=2&lt;br /&gt;SET @year = 2016&lt;br /&gt;&lt;br /&gt;SELECT CAST(CAST(@year AS VARCHAR) + &#39;-&#39; + CAST(@Month AS VARCHAR) + &#39;-01&#39; AS DATETIME) + Number &#39;date&#39;&lt;br /&gt;FROM master..spt_values WHERE type = &#39;P&#39;&lt;br /&gt;AND&lt;br /&gt;(CAST(CAST(@year AS VARCHAR) + &#39;-&#39; + CAST(@Month AS VARCHAR) + &#39;-01&#39; AS DATETIME) + Number )&lt;br /&gt;&amp;lt;&lt;br /&gt;DATEADD(mm,1,CAST(CAST(@year AS VARCHAR) + &#39;-&#39; + CAST(@Month AS VARCHAR) + &#39;-01&#39; AS DATETIME) )&lt;/blockquote&gt;
&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/8085827694559788821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/8085827694559788821' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8085827694559788821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8085827694559788821'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/03/sql-statement-which-will-give-me-all.html' title='SQL statement which will give me all the days of a given month as individual rows'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-8327750996640731549</id><published>2014-02-22T19:41:00.000+05:30</published><updated>2014-02-22T19:46:29.315+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="MSSQL"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Express 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure"/><title type='text'>Last modified Tables &amp; Stored Procedures details in Microsoft SQL Server </title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Let&#39;s find out the last modified Tables &amp;amp; Stored Procedures details in MSSQL by writting a simple Query. &lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;For User Tables&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #ffe2a5; border: solid 1px #E8C26F; margin: 10px auto; padding: 10px 10px 10px 10px; width: 80%;&quot;&gt;
&lt;code&gt;SELECT * FROM sys.objects WHERE type=&#39;U&#39; ORDER BY modify_date DESC&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;For Stored Procedures&lt;/b&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #ffe2a5; border: solid 1px #E8C26F; margin: 10px auto; padding: 10px 10px 10px 10px; width: 80%;&quot;&gt;
&lt;code&gt;SELECT * FROM sys.objects WHERE type=&#39;P&#39; ORDER BY modify_date DESC&lt;br /&gt;
&lt;/code&gt;&lt;/div&gt;
&lt;br /&gt;
These Queries fetching records from system object table order by last modified date &amp;amp; time. &amp;nbsp; &lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/8327750996640731549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/8327750996640731549' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8327750996640731549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8327750996640731549'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/02/last-modified-tables-stored-procedures.html' title='Last modified Tables &amp; Stored Procedures details in Microsoft SQL Server '/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-8298498372441984091</id><published>2014-02-21T10:31:00.002+05:30</published><updated>2014-02-21T10:34:04.313+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Express 2012"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLEXPRESS"/><title type='text'>Enable remote connections for SQL Server Express 2012</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;ol style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; list-style: decimal; margin: 0px 0px 1em 30px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Run SQL Server Configuration Manager.&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Go to SQL Server Network Configuration &amp;gt; Protocols for SQLEXPRESS.&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Make sure TCP/IP is enabled.&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
So far, so good, and entirely expected. But then:&lt;/div&gt;
&lt;ol style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; list-style: decimal; margin: 0px 0px 1em 30px; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Right-click on TCP/IP and select&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Properties&lt;/b&gt;.&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Verify that, under IP2, the IP Address is set to the computer&#39;s IP address on the local subnet.&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Scroll down to IPAll.&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Make sure that&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TCP Dynamic Ports&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;is&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;blank&lt;/b&gt;. (Mine was set to some 5-digit port number.)&lt;/li&gt;
&lt;li style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;Make sure that&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;TCP Port&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;is set to&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-weight: bold; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;1433&lt;/b&gt;. (Mine was blank.)&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
(Also, if you follow these steps, it&#39;s&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;i style=&quot;background-color: transparent; background-position: initial initial; background-repeat: initial initial; border: 0px; font-size: 14px; font-style: italic; margin: 0px; padding: 0px; vertical-align: baseline;&quot;&gt;not&lt;/i&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;necessary to enable SQL Server Browser, and you only need to allow port 1433, not 1434.)&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
References :&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/11278114/enable-remote-connections-for-sql-server-express-2012&quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/11278114/enable-remote-connections-for-sql-server-express-2012&lt;/a&gt;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-stroke-width: 0px; background-color: white; background-position: initial initial; background-repeat: initial initial; border: 0px; clear: both; color: black; font-family: Arial, &#39;Liberation Sans&#39;, &#39;DejaVu Sans&#39;, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 17.804800033569336px; margin: 0px 0px 1em; orphans: auto; padding: 0px; text-align: left; text-indent: 0px; text-transform: none; vertical-align: baseline; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&amp;nbsp;&lt;a href=&quot;http://support.webecs.com/KB/a868/how-do-i-configure-sql-server-express-to-allow-remote.aspx&quot; target=&quot;_blank&quot;&gt;http://support.webecs.com/KB/a868/how-do-i-configure-sql-server-express-to-allow-remote.aspx&lt;/a&gt; &lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/8298498372441984091/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/8298498372441984091' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8298498372441984091'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8298498372441984091'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/02/enable-remote-connections-for-sql.html' title='Enable remote connections for SQL Server Express 2012'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-1815631460591946322</id><published>2014-01-27T13:30:00.002+05:30</published><updated>2014-01-27T13:32:10.369+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Shortcut Virus"/><title type='text'>Files on External/Flash Drive Changed to Shortcuts Virus</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Issue&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;color: #333333; font-size: 13px; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;I caught a virus on my flash drive at work and it appears to have changed all my file names to short cuts. I believe I’ve cleaned the virus but how do i get my files back so that I can view them?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/h2&gt;
&lt;h2 style=&quot;text-align: left;&quot;&gt;
&lt;strong style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;font-size: large;&quot;&gt;Solution&lt;/span&gt;&lt;/strong&gt;&lt;/h2&gt;
&lt;div&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;If you did not format your flash drive, then check whether the files are not in hidden mode.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Click on “Start” –&amp;gt;Run–&amp;gt;type cmd and click on OK.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Check your external Drive letter in My Computer&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Here I assume your external drive as G:&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Enter this command.&lt;/span&gt;&lt;strong style=&quot;font-family: &#39;Droid Sans&#39;, sans-serif; line-height: 22px;&quot;&gt;&lt;span style=&quot;color: #0b5394;&quot;&gt;attrib -h -r -s /s /d g:*.*&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;Delete the unnecessary shortcuts.&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: #333333; font-size: 13px; line-height: 22px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;&lt;strong&gt;Note:&lt;/strong&gt;&amp;nbsp;Replace the letter g with your flash drive letter.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: #333333; font-size: 13px; line-height: 22px; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Trebuchet MS, sans-serif;&quot;&gt;Still problem? Write down in comments section.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;color: #333333; font-family: &#39;Droid Sans&#39;, sans-serif; font-size: 13px; line-height: 22px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/1815631460591946322/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/1815631460591946322' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1815631460591946322'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/1815631460591946322'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2014/01/files-on-externalflash-drive-changed-to.html' title='Files on External/Flash Drive Changed to Shortcuts Virus'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-8659548356708430565</id><published>2013-12-10T14:56:00.002+05:30</published><updated>2013-12-10T14:59:18.711+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Autoincrement"/><category scheme="http://www.blogger.com/atom/ns#" term="Stored Procedure"/><title type='text'>Want 5 digit string which is incremented automatic (A0001 - Z9999)</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;The first thing you need is a table to hold your generated keys:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;&lt;br /&gt;
&lt;/span&gt; &lt;br /&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto !important; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TABLE&lt;/span&gt; [dbo].[IdGenerator](
    [Id] [&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IDENTITY&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;,&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;NULL&lt;/span&gt;,
    [Pk] [&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;varchar&lt;/span&gt;](&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;) &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;NOT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;NULL&lt;/span&gt;
)
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Insert the first key
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INTO&lt;/span&gt; IdGenerator (Pk) &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VALUES&lt;/span&gt; (&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;A0001&#39;&lt;/span&gt;)&lt;/pre&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;It contains 2 columns. Id (the primary key, used to order your keys) and the key you want!&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px;&quot;&gt;Then you need this script to generate a new Key base on the previous one:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;pre id=&quot;pre1&quot; lang=&quot;sql&quot; style=&quot;background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; overflow: auto !important; padding: 6px; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Declare some variables we need
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DECLARE&lt;/span&gt; @PK &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;varchar&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;5&lt;/span&gt;)
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DECLARE&lt;/span&gt; @Character &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;char&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;)
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DECLARE&lt;/span&gt; @Number &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;int&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Get the last generated key (I&#39;ll call it @PK)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @PK = (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TOP&lt;/span&gt; &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt; PK &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; IdGenerator &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;Order&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;by&lt;/span&gt; Id &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;desc&lt;/span&gt;)
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Extract the character (A,B,C ...)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @Character = (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; SUBSTRING (@PK ,&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;))
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Extract the number (4 last characters. &quot;0001&quot;, &quot;0002&quot;....)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @Number = (&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; SUBSTRING (@PK ,&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;2&lt;/span&gt;, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;4&lt;/span&gt;))
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Increase the number by 1
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @Number = @Number + &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Check if the number has reached the top (9999)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IF&lt;/span&gt; @Number &amp;gt; &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;9999&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;BEGIN&lt;/span&gt;
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; If it has, set it to 1
&lt;/span&gt;   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @Number = &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;
   &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; And find the next character in the alphabet (A-&amp;gt;B, B-&amp;gt;C...)
&lt;/span&gt;   &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @Character = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;char&lt;/span&gt;(ascii(@Character)+1)
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;END&lt;/span&gt;
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Pad your number (1-&amp;gt;0001, 2-&amp;gt;0002...) and set you newly generated key
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; @PK = @Character + REPLACE(STR(@Number, &lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;4&lt;/span&gt;), SPACE(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;), &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;0&#39;&lt;/span&gt;)
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; Insert it to the IdGenerator table so we can use it for the next key
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INTO&lt;/span&gt; IdGenerator (PK) &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VALUES&lt;/span&gt; (@PK)
&amp;nbsp;
&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt; And heres your new unique key :)
&lt;/span&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; @PK&lt;/pre&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
For this to work, you will have to add the first value (A0001) manually. And you&lt;br /&gt;
You can put this code in a stored procedure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Reference :&amp;nbsp;&lt;a href=&quot;http://www.codeproject.com/Questions/441365/want-7-digit-string-which-is-incremented-automatic&quot;&gt;http://www.codeproject.com/Questions/441365/want-7-digit-string-which-is-incremented-automatic&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/8659548356708430565/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/8659548356708430565' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8659548356708430565'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/8659548356708430565'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2013/12/want-5-digit-string-which-is.html' title='Want 5 digit string which is incremented automatic (A0001 - Z9999)'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total><georss:featurename>Bhubaneshwar, Odisha, India</georss:featurename><georss:point>20.2960587 85.824539800000025</georss:point><georss:box>20.0577817 85.50181630000003 20.5343357 86.14726330000002</georss:box></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-6993943234825475923</id><published>2013-11-29T13:08:00.000+05:30</published><updated>2013-11-29T13:10:07.408+05:30</updated><title type='text'>How to know last updated Tables / Stored Procedures in Microsoft SQL Server 2008</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Very simple query will return the result. How to know the last updated Tables / Stored Procedures in Microsoft SQL Server 2008.&lt;br /&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
Here is the query given below.&lt;/h3&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h3&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
For Stored Procedures&amp;nbsp;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT * FROM sys.objects WHERE type=&#39;P&#39; ORDER BY modify_date DESC&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
And for Tables&amp;nbsp;&lt;/h4&gt;
&lt;h4 style=&quot;text-align: left;&quot;&gt;
&amp;nbsp;&lt;/h4&gt;
&lt;span style=&quot;color: blue;&quot;&gt;SELECT * FROM sys.objects WHERE type=&#39;U&#39; ORDER BY modify_date DESC&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope this will help !!!!!&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Solomon S. &lt;br /&gt;
(&lt;a href=&quot;http://www.solomonsarkar.com/&quot;&gt;http://www.solomonsarkar.com&lt;/a&gt;)&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/6993943234825475923/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/6993943234825475923' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/6993943234825475923'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/6993943234825475923'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2013/11/how-to-know-last-updated-tables-stored.html' title='How to know last updated Tables / Stored Procedures in Microsoft SQL Server 2008'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-7753395915106261277</id><published>2013-03-09T15:44:00.000+05:30</published><updated>2013-03-09T15:44:00.819+05:30</updated><title type='text'>Sending a DataTable to a Stored Procedure</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; font-family: &#39;Segoe UI&#39;,Arial,sans-serif; font-style: normal; font-variant: normal; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;I found this beautiful article from&amp;nbsp; &lt;a href=&quot;http://www.codeproject.com/&quot; target=&quot;_blank&quot;&gt;CodeProject&lt;/a&gt; written by _Amy&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;,Arial,sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;color: #6aa84f;&quot;&gt;&lt;span style=&quot;font-weight: normal;&quot;&gt;Reference Link : &lt;a href=&quot;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure&quot;&gt;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h2 style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Introduction&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
This is a small article&amp;nbsp;explaining how to send an entire data-table to a Stored Procedure in the database server as an input parameter.&amp;nbsp;&lt;/div&gt;
&lt;h2 style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Background&amp;nbsp;&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
It uses a logic which allows us to do add, modify, and delete operations on a set of records in the database using a simple form. The details also need to be shown after adding, updating, and deleting of records in a table. And the data-table should be given to a stored procedure to perform the operations. This feature will work with SQL Server 2008.&lt;/div&gt;
&lt;h2 style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Advantages&amp;nbsp;&amp;nbsp;&lt;/h2&gt;
&lt;ol style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 10px 0px; orphans: auto; padding: 0px 0px 0px 40px; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;For each event on the page the form will not be interacting with the database. This reduces server round trips.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;All necessary operations such as:&lt;/li&gt;
&lt;ol style=&quot;border: 0px; margin: 10px 0px; padding: 0px 0px 0px 40px;&quot;&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;Inserting a new record&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;Updating an existing record&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;Deleting an existing record&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal;&quot;&gt;
are performed on client side only. They will be persisted in the database only after getting confirmation from the user. So, the performance of the application will improve.&lt;/div&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;After performing a certain action (such as Insert, Update, or Delete) on the grid-view the data will be saved in “&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Session&lt;/strong&gt;”. And whenever the data is required, it is be fetched from the Session.&amp;nbsp;&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;We send the entire data-table from the session to the database for manipulation, and with the use of a Stored Procedure we can do operations such as insert, delete, and update.&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;It is easier to perform all operations on a set of rows at a time.&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;The user can deal with thousands of data-rows at the same time without a connection.&lt;/li&gt;
&lt;li style=&quot;border: 0px; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;Extends the functionality of programming in a database engine.&lt;/li&gt;
&lt;/ol&gt;
&lt;h2 style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Using the code&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
When a page is getting loaded the first time, data from the database is loaded to a data-table. In that data-table a column is added (named&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;Operation&lt;/code&gt;). Whenever the user performs an action on the grid-view, the indicator bit is added to that column for that record (Insert 0, Update 1, and Delete 2). If the user clicks on a delete link on a particular row then the operation column of that row is updated to 2, and in the&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;RowDataBound&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;event of the grid-view we hide the records whose operation bit is 2.&amp;nbsp;The temporary table is stored in session state. Before performing any operation, the session table will be called and the action will be performed on that table and again that table will be stored in the session. After performing all the necessary operations, when the user clicks on the Save button, the function&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;fnMangeOperations&lt;/strong&gt;&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;is called which will filter all the rows on which the operation was performed and the Save button will send only those details in which the operation has to be performed (you can find the function&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;fnMangeOperations&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;in the source code from the attached files).&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Step 1: Declaring global variables:&amp;nbsp;&amp;nbsp;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;pre id=&quot;pre0&quot; lang=&quot;cs&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; clsEmpDetails _objEmpDetails;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; DataTable _dtEmpDetails;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;private&lt;/span&gt; DataTable _dtEmpDetailsVals;&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Step 2: Initializing the data members when page loads.&lt;/div&gt;
&lt;br /&gt;&lt;pre id=&quot;pre1&quot; lang=&quot;cs&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; Page_Load(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;object&lt;/span&gt; sender, EventArgs e)
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (!IsPostBack)
    {
        _objEmpDetails = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; clsEmpDetails();
        _dtEmpDetails = _objEmpDetails.fnGetDetails();
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt;(_dtEmpDetails != &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;null&lt;/span&gt;){
           &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Adding a new column to the table which will store the operation details
&lt;/span&gt;           &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;For new insert it will store 1
&lt;/span&gt;           &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;For updating the existing record it will store 0
&lt;/span&gt;           _dtEmpDetails.Columns.Add(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Operation&quot;&lt;/span&gt;, &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;typeof&lt;/span&gt;(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt;));
           Session[&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;EmpDetails&quot;&lt;/span&gt;] = _dtEmpDetails;
           gvEmpDetails.DataSource = _dtEmpDetails;
           gvEmpDetails.DataBind();
        }       
    }
}&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Just store the data in session and maintain the indicator for each operation. The operation will be like this:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain2&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; display: block; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure#&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre2&quot; lang=&quot;cs&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;protected&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;void&lt;/span&gt; gvEmpDetails_RowCommand(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;object&lt;/span&gt; sender, GridViewCommandEventArgs e)
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;if&lt;/span&gt; (e.CommandName == &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;AddNew&quot;&lt;/span&gt;) 
    {
       &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;try&lt;/span&gt;{
            _dtEmpDetails = Session[&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;EmpDetails&quot;&lt;/span&gt;] &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;as&lt;/span&gt; DataTable;
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; strID = (TextBox)gvEmpDetails.FooterRow.Cells[&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;0&lt;/span&gt;].FindControl(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;txtInsID&quot;&lt;/span&gt;)).Text;
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; strName = (TextBox)gvEmpDetails.FooterRow.Cells[&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;].FindControl(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;txtInsName&quot;&lt;/span&gt;)).Text;
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; strAddress = (TextBox)gvEmpDetails.FooterRow.Cells[&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;].FindControl(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;txtInsAddress&quot;&lt;/span&gt;)).Text;
            _dtEmpDetails.Rows.Add(strID, strName, strAddress, &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;0&quot;&lt;/span&gt;);
            Session[&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;EmpDetails&quot;&lt;/span&gt;] = _dtEmpDetails;
            fnBindEmpDetails(); &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;This function will bind the data to the gridview by fetching the data from session
&lt;/span&gt;        }
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;catch&lt;/span&gt;(Exception ex){            
             &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Handle your exception
&lt;/span&gt;        }
    }
}&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
On click of the Save button, call the following function by passing your&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;code style=&quot;border: 0px; color: #990000; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 11pt; font-style: normal; font-variant: normal; font-weight: normal; line-height: normal; margin: 0px; padding: 0px;&quot;&gt;DataTable&lt;/code&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;as a parameter.&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain3&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; display: block; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure#&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre3&quot; lang=&quot;cs&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; fnStoredProc(DataTable dtDetails)
{
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;string&lt;/span&gt; strMsg = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;try&lt;/span&gt;
    {
        fnConOpen();&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Function for opening connection
&lt;/span&gt;        SqlCommand cmdProc = &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;new&lt;/span&gt; SqlCommand(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;spEmpDetails&quot;&lt;/span&gt;, con);
        cmdProc.CommandType = CommandType.StoredProcedure;
        cmdProc.Parameters.AddWithValue(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;@Type&quot;&lt;/span&gt;, &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;InsertDetails&quot;&lt;/span&gt;);
        cmdProc.Parameters.AddWithValue(&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;@Details&quot;&lt;/span&gt;, dtDetails);
        cmdProc.ExecuteNonQuery();
        strMsg = &lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;Saved successfully.&quot;&lt;/span&gt;;
    }
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;catch&lt;/span&gt; (SqlException e) {
        &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;strMsg = &quot;Data not saved successfully.&quot;;
&lt;/span&gt;        strMsg = e.Message.ToString();
    }
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;finally&lt;/span&gt; 
    {
        fnConClose();&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;//&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Function for closing connection
&lt;/span&gt;
    }
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;return&lt;/span&gt; strMsg;
}&lt;/pre&gt;
&lt;h2 style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #ff9900; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 20px; font-style: normal; font-variant: normal; font-weight: 600; letter-spacing: normal; line-height: normal; margin: 20px 0px 11px; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Procedure structure&lt;/h2&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
First create a table type with matching columns which comes from the front-end. In this case:&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain4&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; display: block; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure#&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre4&quot; lang=&quot;sql&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;/*&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;Creating type for the procedure parameter*/&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;CREATE&lt;/span&gt; TYPE EmpType &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;AS&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;TABLE&lt;/span&gt; 
(
    ID &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INT&lt;/span&gt;, Name &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;3000&lt;/span&gt;), Address &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;8000&lt;/span&gt;), Operation &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SMALLINT&lt;/span&gt;
)&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
Write the procedure for the operations.&lt;/div&gt;
&lt;div class=&quot;pre-action-link&quot; id=&quot;premain5&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; border-bottom-color: rgb(204, 204, 204); border-bottom-style: solid; border-width: 0px 0px 1px; color: #005782; display: block; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 11px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin: 0px; orphans: auto; padding: 0px; text-align: right; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot; width=&quot;100%&quot;&gt;
&lt;br /&gt;&lt;a href=&quot;http://www.codeproject.com/Articles/412802/Sending-a-DataTable-to-a-Stored-Procedure#&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px; text-decoration: none;&quot;&gt;&lt;/a&gt;&lt;/div&gt;
&lt;pre id=&quot;pre5&quot; lang=&quot;sql&quot; style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: #fbedbb; border: 1px solid rgb(251, 237, 187); color: black; font-family: Consolas, &#39;Courier New&#39;, Courier, mono; font-size: 9pt; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; margin-top: 0px; orphans: auto; overflow: auto; padding: 6px; text-align: start; text-indent: 0px; text-transform: none; white-space: pre-wrap; widows: auto; word-spacing: 0px; word-wrap: break-word;&quot;&gt;&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;ALTER&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;PROCEDURE&lt;/span&gt; spEmpDetails
@Type &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;VARCHAR&lt;/span&gt;(&lt;span class=&quot;code-digit&quot; style=&quot;border: 0px; color: navy; margin: 0px; padding: 0px;&quot;&gt;15&lt;/span&gt;),
@Details EmpType READONLY
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;AS&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;BEGIN&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IF&lt;/span&gt;(@Type=&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;&#39;&lt;/span&gt;&lt;span class=&quot;code-string&quot; style=&quot;border: 0px; color: purple; margin: 0px; padding: 0px;&quot;&gt;FetchDetails&#39;&lt;/span&gt;)
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; * &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; EmployeeDetails
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;ELSE&lt;/span&gt;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;BEGIN&lt;/span&gt;
            &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;For deleting the details from the table
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;DELETE&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; EmployeeDetails &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt; ID &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;IN&lt;/span&gt;(&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; ID &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; @Details &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt; Operation=2)
            
            &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;For updating the details in the table
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;UPDATE&lt;/span&gt; e &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;/span&gt; e.Name=d.Name, e.Address=d.Address &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; EmployeeDetails e, @Details d 
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt; d.ID=e.ID &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;and&lt;/span&gt; d.Operation=1
            
            &lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;--&lt;/span&gt;&lt;span class=&quot;code-comment&quot; style=&quot;border: 0px; color: green; font-style: italic; margin: 0px; padding: 0px;&quot;&gt;For inserting the new records in the table
&lt;/span&gt;            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INSERT&lt;/span&gt; &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;INTO&lt;/span&gt; EmployeeDetails(ID, Name, Address) 
            &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;SELECT&lt;/span&gt; ID, Name, Address &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;FROM&lt;/span&gt; @Details &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;WHERE&lt;/span&gt; Operation=0;
        &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;END&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;END&lt;/span&gt;
&lt;span class=&quot;code-keyword&quot; style=&quot;border: 0px; color: blue; margin: 0px; padding: 0px;&quot;&gt;GO&lt;/span&gt;&lt;/pre&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #111111; font-family: &#39;Segoe UI&#39;, Arial, sans-serif; font-size: 14px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px;&quot;&gt;
&lt;strong style=&quot;border: 0px; margin: 0px; padding: 0px;&quot;&gt;Note&lt;/strong&gt;: This procedure takes a datatabe as its parameter and performs insert, update, and delete operations based on the table data.&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/7753395915106261277/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/7753395915106261277' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/7753395915106261277'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/7753395915106261277'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2013/03/sending-datatable-to-stored-procedure.html' title='Sending a DataTable to a Stored Procedure'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-2229967244304937132</id><published>2012-09-17T11:14:00.000+05:30</published><updated>2012-09-17T11:14:24.477+05:30</updated><title type='text'>SQL SERVER – SHRINKFILE and TRUNCATE Log File in SQL Server 2008</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;em style=&quot;margin: 0px; padding: 0px;&quot;&gt;Note:&lt;/em&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;Please read the complete post before taking any actions.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
This blog post would discuss SHRINKFILE and TRUNCATE Log File. The script mentioned in the email received from reader contains the following questionable code:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
“Hi Pinal,&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
If you could remember, I and my manager met you at TechEd in Bangalore.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
We just upgraded to SQL Server 2008. One of our jobs failed as it was using the following code.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
The error was:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;Msg 155, Level 15, State 1, Line 1&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;‘TRUNCATE_ONLY’ is not a recognized BACKUP option.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
The code was:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;code style=&quot;font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;DBCC&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;SHRINKFILE&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;TestDBLog&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;BACKUP&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: magenta; margin: 0px; padding: 0px;&quot;&gt;LOG&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;TestDB&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;WITH&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;TRUNCATE_ONLY&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;DBCC&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;SHRINKFILE&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;TestDBLog&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
I have modified that code to subsequent code and it works fine. But, are there other suggestions you have at the moment?&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;code style=&quot;font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;USE&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;[master]&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GO&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;ALTER&amp;nbsp;DATABASE&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;[TestDb]&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;RECOVERY&amp;nbsp;SIMPLE&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;WITH&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;NO_WAIT&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;DBCC&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;SHRINKFILE&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;TestDbLog&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;,&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: grey; margin: 0px; padding: 0px;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;ALTER&amp;nbsp;DATABASE&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;[TestDb]&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;SET&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;RECOVERY&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;FULL&amp;nbsp;WITH&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;NO_WAIT&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Configuration of our server and system is as follows:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px 0px 0px 30px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
[Removed not relevant data]“&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
An email like this that suddenly pops out in early morning is alarming email. Because I am a dead, busy mind, so I had only one min to reply. I wrote down quickly the following note. (As I said, it was a single-minute email so it is not completely accurate). Here is that quick email shared with all of you.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
“Hi Mr. DBA [removed the name]&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Thanks for your email. I suggest you stop this practice. There are many issues included here, but I would list two major issues:&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
1) From the setting database to simple recovery, shrinking the file and once again setting in full recovery, you are in fact losing your valuable log data and will be not able to restore point in time. Not only that, you will also not able to use subsequent log files.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
2) Shrinking database file or database adds fragmentation.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
There are a lot of things you can do. First, start taking proper log backup using following command instead of truncating them and losing them frequently.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
&lt;code style=&quot;font-size: 12px; margin: 0px; padding: 0px;&quot;&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;BACKUP&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: magenta; margin: 0px; padding: 0px;&quot;&gt;LOG&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;[TestDb]&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: blue; margin: 0px; padding: 0px;&quot;&gt;TO&amp;nbsp;&amp;nbsp;DISK&amp;nbsp;=&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color: red; margin: 0px; padding: 0px;&quot;&gt;N&#39;C:\Backup\TestDb.bak&#39;&lt;/span&gt;&lt;span style=&quot;color: black; margin: 0px; padding: 0px;&quot;&gt;GO&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Remove the code of SHRINKING the file. If you are taking proper log backups, your log file usually (again usually, special cases are excluded) do not grow very big.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
There are so many things to add here, but you can call me on my [phone number]. Before you call me, I suggest for accuracy you read&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sqlskills.com/BLOGS/PAUL/&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Paul Randel&lt;/a&gt;‘s two posts&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sqlskills.com/BLOGS/PAUL/post/Why-you-should-not-shrink-your-data-files.aspx&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.sqlskills.com/blogs/paul/post/backup-log-with-no_log-use-abuse-and-undocumented-trace-flags-to-stop-it.aspx&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;and&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.brentozar.com/&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;Brent Ozar&lt;/a&gt;‘s Post&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://sqlserverpedia.com/blog/sql-server-backup-and-restore/backup-log-with-truncate_only-like-a-bear-trap/&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Kind Regards,&lt;br style=&quot;margin: 0px; padding: 0px;&quot; /&gt;Pinal Dave”&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
I guess this post is very much clear to you. Please leave your comments here. As mentioned, this is a very huge subject; I have just touched a tip of the ice-berg and have tried to point to authentic knowledge.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Update: Small typo correction and small detail corrected based on feedback.&lt;/div&gt;
&lt;div style=&quot;-webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: white; color: #333333; font-family: verdana, tahoma, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: 19.450000762939453px; margin: 0.7em 0px; orphans: 2; padding: 0px; text-align: justify; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;
Reference:&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;Pinal Dave (&lt;/strong&gt;&lt;a href=&quot;http://blog.sqlauthority.com/&quot; style=&quot;border-bottom-color: rgb(56, 79, 131); border-bottom-style: dashed; border-bottom-width: 1px; color: #384f83; margin: 0px; padding: 0px; text-decoration: none;&quot; target=&quot;_blank&quot;&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;http://blog.SQLAuthority.com&lt;/strong&gt;&lt;/a&gt;&lt;strong style=&quot;margin: 0px; padding: 0px;&quot;&gt;)&lt;/strong&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/2229967244304937132/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/2229967244304937132' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/2229967244304937132'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/2229967244304937132'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2012/09/sql-server-shrinkfile-and-truncate-log.html' title='SQL SERVER – SHRINKFILE and TRUNCATE Log File in SQL Server 2008'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-5034838059475672586</id><published>2012-08-28T12:45:00.003+05:30</published><updated>2012-08-28T12:45:30.821+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="AjaxControlToolkit"/><title type='text'>Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;br /&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
If you are working with the Ajax Control Toolkit, sometimes the AjaxControlToolkit assembly will become corrupted in your Temporary ASP.NET Files folder. Here are a set of steps that might help you get back up and running. This is only relevant to developing with the built in web server, Cassini.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
But first, here is the scenario.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
Last Friday, my computer crashed while I was working on a project which references the AJAX Control Toolkit assembly.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
After my computer restarted, I opened the project in Visual Studio 2008. I launched the default web page and&amp;nbsp;I received the following error:&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;strong&gt;Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))&lt;/strong&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;strong&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
I tried closing and reopening the project; I&amp;nbsp;even restarted my computer, but none of these efforts were successful.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
I deleted and re-added the AjaxControlToolkit assembly reference, but still no dice.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
Here are the steps that I found which worked for me:&lt;/div&gt;
&lt;ol style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
Close Visual Studio&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
Open the Temporary ASP.NET Files folder and delete its contents.&lt;/div&gt;
&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
If the OS is Windows Vista, then the folder&amp;nbsp;is&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot;&gt;
&lt;strong&gt;%LocalAppData%\Temp\Temporary ASP.NET Files&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
If&amp;nbsp;the OS is&amp;nbsp;Windows XP, then the folder is&lt;strong&gt;%WINDIR%\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
Restart Visual Studio&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;&lt;div mce_keep=&quot;true&quot;&gt;
Open the project&lt;/div&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
That&#39;s it. Works great now.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
Hope this helps.&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div mce_keep=&quot;true&quot; style=&quot;background-color: white; font-family: Tahoma, Arial, Helvetica; font-size: 13px;&quot;&gt;
Reference From :&amp;nbsp;&lt;a href=&quot;http://weblogs.asp.net/joshuajohnson/archive/2008/12/22/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-the-parameter-is-incorrect-exception-from-hresult-0-215-80070057-e-invalidarg.aspx&quot; style=&quot;background-color: transparent;&quot;&gt;http://weblogs.asp.net/joshuajohnson/archive/2008/12/22/could-not-load-file-or-assembly-ajaxcontroltoolkit-or-one-of-its-dependencies-the-parameter-is-incorrect-exception-from-hresult-0-215-80070057-e-invalidarg.aspx&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/5034838059475672586/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/5034838059475672586' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/5034838059475672586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/5034838059475672586'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2012/08/could-not-load-file-or-assembly.html' title='Could not load file or assembly ‘AjaxControlToolkit’ or one of its dependencies. The parameter is incorrect. (Exception from HRESULT: 0×80070057 (E_INVALIDARG))'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-9040797442182018325.post-851298250278155519</id><published>2012-06-08T12:12:00.004+05:30</published><updated>2012-06-08T12:12:58.830+05:30</updated><title type='text'>How to return the ID from the database on insert</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
Here is the Example of a Insert statement which returns ID of the row got inserted.&lt;br /&gt;
&lt;br /&gt;
DECLARE ID int&lt;br /&gt;
INSERT INTO &amp;lt;tablename&amp;gt; (&amp;lt;colums name&amp;gt;) VALUES (&amp;lt;values&amp;gt;)&lt;br /&gt;
SELECT ID = SCOPE_IDENTITY()&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hope it will help you.&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;br /&gt;
Solomon S.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If information is helpful then don&#39;t forget to post comments&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://solomonsrkr.blogspot.com/feeds/851298250278155519/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/9040797442182018325/851298250278155519' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/851298250278155519'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/9040797442182018325/posts/default/851298250278155519'/><link rel='alternate' type='text/html' href='http://solomonsrkr.blogspot.com/2012/06/how-to-return-id-from-database-on.html' title='How to return the ID from the database on insert'/><author><name>Solomon S</name><uri>http://www.blogger.com/profile/05922357118002500193</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>