<?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: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-6158710103092120171</id><updated>2011-11-04T07:53:14.814-07:00</updated><title type='text'>SQL Share</title><subtitle type='html'>writing whatever learning...</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>71</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5257305230897830345</id><published>2011-11-04T07:50:00.000-07:00</published><updated>2011-11-04T07:53:14.850-07:00</updated><title type='text'>Opening SQL Server 2000 DTS Package in SQL Server 2008</title><content type='html'>&lt;strong&gt;Error:&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;TITLE: Object Explorer&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, "SQL Server 2000 DTS Designer Components" to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI)&lt;br /&gt;&lt;br /&gt;------------------------------&lt;br /&gt;BUTTONS:&lt;br /&gt;&lt;br /&gt;OK&lt;br /&gt;------------------------------&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Fix:&lt;/strong&gt; Install SQLServer2005_BC &amp;amp; SQLServer2005_DTS softwares from http://www.microsoft.com/download/en/details.aspx?displaylang=en&amp;amp;id=11988&lt;br /&gt;&lt;br /&gt;If you are still not able to get it working. Please follow the below steps:&lt;br /&gt;&lt;br /&gt;The issue was with PATH environment variable setting.&lt;br /&gt;&lt;br /&gt;After changing the order in the path setting it got resolved.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\; should appear before the&lt;br /&gt;&lt;br /&gt;C:\Program Files\Microsoft SQL Server\100\Tools\Binn\;&lt;br /&gt;&lt;br /&gt;Incase of 64 bit machine:&lt;br /&gt;&lt;br /&gt;C:\Program Files (x86)\Microsoft SQL Server\80\Tools\Binn\;&lt;br /&gt;&lt;br /&gt;Be sure to restart the SSMS after changing the PATH env variable&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5257305230897830345?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5257305230897830345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5257305230897830345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5257305230897830345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5257305230897830345'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2011/11/opening-sql-server-2000-dts-package-in.html' title='Opening SQL Server 2000 DTS Package in SQL Server 2008'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6812509564195661911</id><published>2010-10-11T06:14:00.000-07:00</published><updated>2010-10-11T06:15:57.170-07:00</updated><title type='text'>TSQL Currently logged windows user name</title><content type='html'>SYSTEM_USER&lt;br /&gt;&lt;br /&gt;Example:&lt;br /&gt;&lt;br /&gt;DECLARE @sys_usr char(30)&lt;br /&gt;&lt;br /&gt;SET @sys_usr = SYSTEM_USER&lt;br /&gt;&lt;br /&gt;SELECT 'The current system user is: '+ @sys_usr&lt;br /&gt;&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6812509564195661911?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6812509564195661911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6812509564195661911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6812509564195661911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6812509564195661911'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/10/tsql-currently-logged-windows-user-name.html' title='TSQL Currently logged windows user name'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-34606759760785180</id><published>2010-10-10T15:52:00.000-07:00</published><updated>2010-10-10T15:53:01.675-07:00</updated><title type='text'>Your Current Security Settings Do Not Allow This File To Be Downloaded</title><content type='html'>Through trial and error, I found that in addition to enabling "File Download" (Tools &gt; Internet Options &gt; Security (tab) &gt; Internet &gt; Custom Level &gt; Downloads &gt;&gt; File Download) you also have to Enable (or set to Prompt) these other two options:&lt;br /&gt;"Launching applications and unsafe files" and&lt;br /&gt;"Launching programs and files in an IFRAME" (this one is only needed if your download occurs in an IFrame),&lt;br /&gt;These 2 options are found under the "Miscellaneous" subsection, on the same settings screen as the "File Download" option.&lt;br /&gt;&lt;br /&gt;After making these changes, I was then able to download files from sites, without having to put them into the "Trusted Sites" zone.&lt;br /&gt;Hope this helps/works for others.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-34606759760785180?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/34606759760785180/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=34606759760785180' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/34606759760785180'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/34606759760785180'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/10/your-current-security-settings-do-not.html' title='Your Current Security Settings Do Not Allow This File To Be Downloaded'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3324361018918088279</id><published>2010-09-30T12:48:00.000-07:00</published><updated>2010-09-30T12:49:30.574-07:00</updated><title type='text'>MS Excel Spell Check</title><content type='html'>Select the rows/fields you want to run the spell check for and hir F7.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3324361018918088279?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3324361018918088279/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3324361018918088279' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3324361018918088279'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3324361018918088279'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ms-excel-spell-check.html' title='MS Excel Spell Check'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-9061047387887029327</id><published>2010-09-23T08:12:00.000-07:00</published><updated>2010-09-23T08:15:54.501-07:00</updated><title type='text'>'xp_cmdshell' does not exist</title><content type='html'>In order to configure xp_cmdshell, first need to enable the advanced options and then only all the advanced configuration options works out.&lt;br /&gt;&lt;br /&gt;It can be done as follows:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EXEC sp_configure 'show advanced options', 1;&lt;br /&gt;GO&lt;br /&gt;RECONFIGURE;&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;EXEC sp_configure 'xp_cmdshell',1&lt;br /&gt;GO&lt;br /&gt;RECONFIGURE&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;Refer http://msdn.microsoft.com/en-us/library/ms189631.aspx for more options.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-9061047387887029327?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/9061047387887029327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=9061047387887029327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9061047387887029327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9061047387887029327'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/xpcmdshell-does-not-exist.html' title='&apos;xp_cmdshell&apos; does not exist'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-7154429157525285271</id><published>2010-09-23T08:11:00.000-07:00</published><updated>2010-09-23T08:12:33.922-07:00</updated><title type='text'>SQL: Enabling xp_cmdshell in SQL Server 2005</title><content type='html'>http://www.mssqltips.com/tip.asp?tip=1020&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-7154429157525285271?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/7154429157525285271/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=7154429157525285271' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7154429157525285271'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7154429157525285271'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-enabling-xpcmdshell-in-sql-server.html' title='SQL: Enabling xp_cmdshell in SQL Server 2005'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3817663100623449656</id><published>2010-09-22T13:43:00.001-07:00</published><updated>2010-09-22T13:43:30.086-07:00</updated><title type='text'>SSIS: Performance Tuning</title><content type='html'>http://www.simple-talk.com/sql/ssis/sql-server-2005-ssis-tuning-the-dataflow-task/&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3817663100623449656?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3817663100623449656/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3817663100623449656' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3817663100623449656'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3817663100623449656'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ssis-performance-tuning.html' title='SSIS: Performance Tuning'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4021203918050427787</id><published>2010-09-21T11:41:00.000-07:00</published><updated>2010-09-21T11:42:49.421-07:00</updated><title type='text'>SSIS: [Send Mail Task] Error: Either the file "FileName" does not exist or you do not have permissions to access the file.</title><content type='html'>This is because when you create the file it put a lock on the file in SSIS.&lt;br /&gt;Solution: Close the file using FileStream.Close() method.&lt;br /&gt;&lt;br /&gt;FileStream File1 = new FileStream("C:\Text1.txt", FileMode.Create);&lt;br /&gt;File1.Close();&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4021203918050427787?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4021203918050427787/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4021203918050427787' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4021203918050427787'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4021203918050427787'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ssis-send-mail-task-error-either-file.html' title='SSIS: [Send Mail Task] Error: Either the file &quot;FileName&quot; does not exist or you do not have permissions to access the file.'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5133677694632241959</id><published>2010-09-20T08:15:00.004-07:00</published><updated>2010-09-20T08:16:05.483-07:00</updated><title type='text'>CRM Reports Fix</title><content type='html'>1. Enable the SQL Server from Deployment Manager&lt;br /&gt;2. Re-Publish the reports&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5133677694632241959?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5133677694632241959/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5133677694632241959' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5133677694632241959'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5133677694632241959'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/crm-reports-fix.html' title='CRM Reports Fix'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-9129397085094198386</id><published>2010-09-20T08:15:00.003-07:00</published><updated>2010-09-20T08:15:39.878-07:00</updated><title type='text'>SharePoint: Deactivated users are still showing up in Staff Directory.</title><content type='html'>Deactivated users are still showing up in Staff Directory.&lt;br /&gt;1. On the Site Settings page of the portal site, on the User Profile, Audiences, and Personal Sites page, click Manage profile database. &lt;br /&gt;2. On the Manage Profile Database page, click Configure profile import. &lt;br /&gt;3. On the Configure Profile Import page, in the Source area, click Custom source.&lt;br /&gt;4. Click OK. &lt;br /&gt;5. On the Manage Connections page, do one of the following as appropriate to your situation: &lt;br /&gt;o Click the name of the domain that you want to edit, and then click Edit.&lt;br /&gt;&lt;br /&gt;-or- &lt;br /&gt;o Click New connection to add a new domain controller that contains the user profiles that you want to import.&lt;br /&gt;. &lt;br /&gt;6. On the Edit Connection or Add Connection page (as appropriate to your situation), in the Search Settings area, do the following: &lt;br /&gt;a. In the Search base box, type the distinguished name (DN) of the Active Directory object from where you want to import the user profiles. &lt;br /&gt;&lt;br /&gt;The DN of the search base object defines the location in Active Directory where you want to start your search. The following are examples of DNs: &lt;br /&gt; DC=DomainName, DC=com &lt;br /&gt; CN=Users, DC=DomainName, DC=com &lt;br /&gt; OU=OrganizationalUnit, DC=DomainName, DC=com &lt;br /&gt;b. In the User filter box, type the following LDAP search filter: &lt;br /&gt;(&amp;(objectCategory=person)(objectClass=user)( !(userAccountControl:1.2.840.113556.1.4.803:=2)))&lt;br /&gt;c. Under Scope, specify the scope level, page size, and page time-out options that you want.&lt;br /&gt;1. Click OK.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-9129397085094198386?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/9129397085094198386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=9129397085094198386' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9129397085094198386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9129397085094198386'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-deactivated-users-are-still.html' title='SharePoint: Deactivated users are still showing up in Staff Directory.'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-8706894391218077657</id><published>2010-09-20T08:15:00.001-07:00</published><updated>2010-09-20T08:15:18.969-07:00</updated><title type='text'>CRM : An error occurred while promoting a Microsoft CRM e-mail message</title><content type='html'>Attachment of size bigger than 8 mb are not allowed to be tracked in CRM 4.0&lt;br /&gt;&lt;br /&gt;Work Arounds:&lt;br /&gt;&lt;br /&gt;You need to change the &lt;br /&gt;following 2 lines in your web.config file to increase the size beyond 8MB &lt;br /&gt;&lt;br /&gt;1. &lt;httpRuntime executionTimeout="999999" maxRequestLength="80192"/&gt; &lt;br /&gt;&lt;br /&gt;This maxRequestLength determines the size of files being attached in CRM as &lt;br /&gt;well as adjusting the size in the Settings area. &lt;br /&gt;&lt;br /&gt;2. &lt;httpRuntime maxRequestLength="80192"/&gt; &lt;br /&gt;&lt;br /&gt;This second maxRequestLength line determines the size of email attachments &lt;br /&gt;that can get tracked when users press track in Outlook.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note:&lt;br /&gt;&lt;br /&gt;Editing web.config did not resolve the issue, but when I changed the 'Maximum &lt;br /&gt;file size' value in Settings&gt;System Settings&gt;E-Mail tab it worked. &lt;br /&gt;&lt;br /&gt;Location of web.config: c:\INetpub\www&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-8706894391218077657?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/8706894391218077657/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=8706894391218077657' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8706894391218077657'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8706894391218077657'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/crm-error-occurred-while-promoting.html' title='CRM : An error occurred while promoting a Microsoft CRM e-mail message'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-14257850980432202</id><published>2010-09-20T08:14:00.005-07:00</published><updated>2010-09-20T08:14:55.127-07:00</updated><title type='text'>SQL : Database cannot be opened due to inaccessible files or insufficient memory or disk space</title><content type='html'>STEP1: identify the db status:&lt;br /&gt;use master&lt;br /&gt;select databaseproperty(‘db_name’,'isShutdown’)&lt;br /&gt;Most of them it would return 1 in this situation&lt;br /&gt;STEP2: Clear up the internal db status:&lt;br /&gt;use master&lt;br /&gt;alter database db_name set offline&lt;br /&gt;it would return with no error in most cases&lt;br /&gt;STEP3: Get detail error message:&lt;br /&gt;use master&lt;br /&gt;alter database db_name set online&lt;br /&gt;After step3, sql server will first verify the log file, if the log file is okay, it will verify the rest of the data file(s). Most of time it is because of the file location or file properties setting. For example if it is file location issue: &lt;br /&gt;alter database db_name&lt;br /&gt;modify (file=’logical name’, filename=’physical name’)&lt;br /&gt;go&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-14257850980432202?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/14257850980432202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=14257850980432202' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/14257850980432202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/14257850980432202'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-database-cannot-be-opened-due-to.html' title='SQL : Database cannot be opened due to inaccessible files or insufficient memory or disk space'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3950287079152597890</id><published>2010-09-20T08:14:00.003-07:00</published><updated>2010-09-20T08:14:36.897-07:00</updated><title type='text'>SQL : SQL Timeout from Management Studio</title><content type='html'>I get the message - "Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding" - when working with large tables in Management Studio.&lt;br /&gt;If you change the Execution time-out you need to open a new query over a new connection:&lt;br /&gt;File -&gt; New -&gt; Database Engine Query&lt;br /&gt;Instead of changing the execution time-out through Tools -&gt; Options you should be able to specify it when opening the first query/connection to a SQL Server in the "Connect to Database Engine" dialog box:&lt;br /&gt;Options -&gt; Execution time-out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3950287079152597890?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3950287079152597890/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3950287079152597890' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3950287079152597890'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3950287079152597890'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-sql-timeout-from-management-studio.html' title='SQL : SQL Timeout from Management Studio'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3245007471813377090</id><published>2010-09-20T08:14:00.001-07:00</published><updated>2010-09-20T08:14:18.281-07:00</updated><title type='text'>SQL Server : Transaction Log Full</title><content type='html'>USE DatabaseName&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE(&lt;TransactionLogName&gt;, 1)&lt;br /&gt;&lt;br /&gt;BACKUP LOG &lt;DatabaseName&gt; WITH TRUNCATE_ONLY&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE(&lt;TransactionLogName&gt;, 1)&lt;br /&gt;&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3245007471813377090?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3245007471813377090/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3245007471813377090' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3245007471813377090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3245007471813377090'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-server-transaction-log-full.html' title='SQL Server : Transaction Log Full'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-7703712956246911466</id><published>2010-09-20T08:13:00.003-07:00</published><updated>2010-09-20T08:13:57.433-07:00</updated><title type='text'>SQL : SQL Timeout Firewall Issue</title><content type='html'>Everytime after the Server updates, it resets the Firewall option to ON and which causes anyone to connect to SQL. &lt;br /&gt;&lt;br /&gt;Go to Control Panel -&gt; Firewall -&gt; Set it to Off.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-7703712956246911466?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/7703712956246911466/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=7703712956246911466' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7703712956246911466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7703712956246911466'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-sql-timeout-firewall-issue.html' title='SQL : SQL Timeout Firewall Issue'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-139886133574239096</id><published>2010-09-20T08:13:00.001-07:00</published><updated>2010-09-20T08:13:36.842-07:00</updated><title type='text'>CRM : Creating Replica of Existing Organization</title><content type='html'>1. Create new organization&lt;br /&gt;2. Create all new user accounts&lt;br /&gt;3. Create a new “Account” with name “Org User”&lt;br /&gt;4. Import the customizations&lt;br /&gt;5. Import the data for Species&lt;br /&gt;6. Create new Subject lists for abuse types&lt;br /&gt;7. **Confirm everything**&lt;br /&gt;8. Publish the Customizations&lt;br /&gt;9. **Test**&lt;br /&gt;10. Register the plugin.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-139886133574239096?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/139886133574239096/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=139886133574239096' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/139886133574239096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/139886133574239096'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/crm-creating-replica-of-existing.html' title='CRM : Creating Replica of Existing Organization'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-7133240189608673008</id><published>2010-09-20T08:12:00.005-07:00</published><updated>2010-09-20T08:12:55.055-07:00</updated><title type='text'>CRM : Outlook installation on Exchange Server 2003 issue.</title><content type='html'>“Microsoft Dynamics CRM for Outlook cannot be installed on a computer where Microsoft Exchange Server versions prior to Exchange Server 2007 are installed.”&lt;br /&gt;&lt;br /&gt;Fix:&lt;br /&gt;&lt;br /&gt;1. Open registry editor. &lt;br /&gt;2. Export everything under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Exchange key. &lt;br /&gt;3. Delete the key. &lt;br /&gt;4. Install CRM client and then re-import the key back in.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-7133240189608673008?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/7133240189608673008/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=7133240189608673008' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7133240189608673008'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7133240189608673008'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/crm-outlook-installation-on-exchange.html' title='CRM : Outlook installation on Exchange Server 2003 issue.'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-1891623781523696822</id><published>2010-09-20T08:12:00.003-07:00</published><updated>2010-09-20T08:12:37.289-07:00</updated><title type='text'>Javascript: iFrame Killer</title><content type='html'>&lt;script type="text/javascript"&gt;&lt;br /&gt;&lt;br /&gt;// get the current URL&lt;br /&gt;var url = window.location.toString();&lt;br /&gt;var RedirectUrl;&lt;br /&gt;&lt;br /&gt;//get the parameters&lt;br /&gt;url.match(/\?(.+)$/); var params = RegExp.$1;&lt;br /&gt;&lt;br /&gt;// split up the query string and store in an&lt;br /&gt;// associative array&lt;br /&gt;var params = params.split("&amp;");&lt;br /&gt;&lt;br /&gt;var queryStringList = {};&lt;br /&gt;&lt;br /&gt;for(var i=0;i&lt;params.length;i++)&lt;br /&gt;{&lt;br /&gt; var tmp = params[i].split("=");&lt;br /&gt; queryStringList[tmp[0]] = unescape(tmp[1]);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;// print all querystring in key value pairs&lt;br /&gt;&lt;br /&gt;for(var i in queryStringList)&lt;br /&gt;{&lt;br /&gt; if(i = "formurl")&lt;br /&gt; {&lt;br /&gt;  RedirectUrl = queryStringList[i];&lt;br /&gt; }&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;if (top != self)&lt;br /&gt;{&lt;br /&gt;    //alert('iFrame used');&lt;br /&gt;    top.location.replace(RedirectUrl);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;else&lt;br /&gt;{&lt;br /&gt;    //alert('No iFrame used');&lt;br /&gt;    window.location = RedirectUrl;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/script&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-1891623781523696822?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/1891623781523696822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=1891623781523696822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1891623781523696822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1891623781523696822'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/javascript-iframe-killer.html' title='Javascript: iFrame Killer'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2149335039254112187</id><published>2010-09-20T08:12:00.001-07:00</published><updated>2010-09-20T08:12:12.602-07:00</updated><title type='text'>HTML : Striketrhough</title><content type='html'>To place text onto your site that appears to be crossed out, we use the &lt;del&gt; tag.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;del&gt;Hello&lt;/del&gt;&lt;br /&gt;&lt;br /&gt;Hello&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2149335039254112187?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2149335039254112187/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2149335039254112187' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2149335039254112187'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2149335039254112187'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/html-striketrhough.html' title='HTML : Striketrhough'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5029347718596720338</id><published>2010-09-20T08:08:00.000-07:00</published><updated>2010-09-20T08:11:47.786-07:00</updated><title type='text'>SQL Server: Changing from Single User Mode to Multiple User Mode</title><content type='html'>select d.name, d.dbid, spid, login_time, nt_domain, nt_username, loginame&lt;br /&gt;  from sysprocesses p inner join sysdatabases d on p.dbid = d.dbid&lt;br /&gt;where d.name = 'databasename'&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;kill 64&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;EXEC sp_dboption 'databasename', 'single user', 'false'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5029347718596720338?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5029347718596720338/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5029347718596720338' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5029347718596720338'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5029347718596720338'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-server-changing-from-single-user.html' title='SQL Server: Changing from Single User Mode to Multiple User Mode'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5740043581453219985</id><published>2010-09-20T08:07:00.002-07:00</published><updated>2010-09-20T08:08:01.761-07:00</updated><title type='text'>CRM: Popup Issue</title><content type='html'>Internet Options &gt; Security Tab&lt;br /&gt;&lt;br /&gt;Disable (uncheck) “Enable Protected Mode” for Local intranet&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5740043581453219985?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5740043581453219985/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5740043581453219985' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5740043581453219985'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5740043581453219985'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/crm-popup-issue.html' title='CRM: Popup Issue'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2877324726655115437</id><published>2010-09-20T08:07:00.001-07:00</published><updated>2010-09-20T08:07:40.379-07:00</updated><title type='text'>SQL : Trasition State, Please Try Later</title><content type='html'>One of our SQL 2005 database started to give us "Database is in &lt;br /&gt;transition...Error 952". We were trying to Take the DB offline when this &lt;br /&gt;problem occurred. Restarting SQL service did not help us. We were unable to do anything with this database as we were unable to obtain any locks. &lt;br /&gt;&lt;br /&gt;What resolved the problem? Re-starting manamgement studio on client machine. &lt;br /&gt;Go SQL!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2877324726655115437?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2877324726655115437/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2877324726655115437' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2877324726655115437'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2877324726655115437'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-trasition-state-please-try-later.html' title='SQL : Trasition State, Please Try Later'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-1912966439107234563</id><published>2010-09-20T08:06:00.003-07:00</published><updated>2010-09-20T08:06:56.090-07:00</updated><title type='text'>Sharepoint: Max Character Limit</title><content type='html'>&lt;strong&gt;How to set the maximum field length in InfoPath&lt;/strong&gt;&lt;br /&gt;by S.Y.M. Wong-A-Ton&lt;br /&gt;&lt;strong&gt;Learn how you can use a data validation condition to check the maximum field length in InfoPath and display an error message to the user if the maximum field length is exceeded.&lt;/strong&gt;&lt;br /&gt;If you’re used to programming in Visual Studio, you’ll be disappointed to know that there is no MaxLength property that you can set on fields in InfoPath that can hold multiple lines of text with line breaks.&lt;br /&gt;So if you want to set the maximum field length on a multi-line InfoPath Text Box (that allows line breaks) or Rich Text Box, you must use data validation.&lt;br /&gt;Note: You can limit the amount of characters on a single-line text box by going to the Properties dialog box of the text box, clicking on the Display tab, and selecting the Limit text box to checkbox.&lt;br /&gt;When using data validation to restrict the maximum field length in InfoPath, you can use the string-length function in a The expression data validation condition to check whether the amount of characters entered in a field is greater than the maximum characters allowed, and then display an error message.&lt;br /&gt;For example, in Figure 1, I’ve created a data validation condition to check whether the maximum length of a piece of text in a multi-line text box (field1) exceeds 10 characters. This technique also works for rich text boxes in InfoPath.&lt;br /&gt;Caveat: Spaces and line breaks are counted as characters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-1912966439107234563?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/1912966439107234563/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=1912966439107234563' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1912966439107234563'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1912966439107234563'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-max-character-limit.html' title='Sharepoint: Max Character Limit'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6197508177006146961</id><published>2010-09-20T08:06:00.001-07:00</published><updated>2010-09-20T08:06:16.893-07:00</updated><title type='text'>Sharepoint: Individual File Size</title><content type='html'>Central Admin --&gt; Application Management --&gt; Web application general settings --&gt; Maximum Upload Size&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6197508177006146961?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6197508177006146961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6197508177006146961' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6197508177006146961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6197508177006146961'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-individual-file-size.html' title='Sharepoint: Individual File Size'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-13997065972624040</id><published>2010-09-20T08:05:00.003-07:00</published><updated>2010-09-20T08:05:59.307-07:00</updated><title type='text'>Sharepoint :  "Value does not fall within the expected range"</title><content type='html'>This definitely happens when some field is missing. Compare your code and the list of fields that all the fields exist and if exist then they have same name. Make sure about the spelling checks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-13997065972624040?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/13997065972624040/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=13997065972624040' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/13997065972624040'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/13997065972624040'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-value-does-not-fall-within.html' title='Sharepoint :  &quot;Value does not fall within the expected range&quot;'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3576496104499093232</id><published>2010-09-20T08:05:00.001-07:00</published><updated>2010-09-20T08:05:42.423-07:00</updated><title type='text'>Sharepoint : Multiline Text Field Size Limit</title><content type='html'>Error : " This field can have no more than 255 characters"&lt;br /&gt;&lt;br /&gt;Go to form Library Settings. Open the properties of the desired field. set "Yes" to "Allow unlimited length in document libraries" settings&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3576496104499093232?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3576496104499093232/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3576496104499093232' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3576496104499093232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3576496104499093232'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-multiline-text-field-size.html' title='Sharepoint : Multiline Text Field Size Limit'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-7946885095523523083</id><published>2010-09-20T08:04:00.000-07:00</published><updated>2010-09-20T08:05:17.051-07:00</updated><title type='text'>Javascript : Finding the Specific Form Field in the Form</title><content type='html'>for (i = 0; i &lt; document.forms[0].elements.length; i++) {&lt;br /&gt;            if (document.forms[0].elements[i].name == 'src_Field1_general') {&lt;br /&gt;                document.forms[0].elements["src_Field1_general"].value = '&lt;%=Request.QueryString("src")%&gt;';&lt;br /&gt;            }&lt;br /&gt;            if (document.forms[0].elements[i].name == 'src_Field2_packs') {&lt;br /&gt;                document.forms[0].elements["src_Field2_packs"].value = '&lt;%=Request.QueryString("src")%&gt;';&lt;br /&gt;            }&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-7946885095523523083?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/7946885095523523083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=7946885095523523083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7946885095523523083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7946885095523523083'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/javascript-finding-specific-form-field.html' title='Javascript : Finding the Specific Form Field in the Form'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6107992694110848233</id><published>2010-09-20T08:03:00.000-07:00</published><updated>2010-09-20T08:04:02.389-07:00</updated><title type='text'>SQL Server: Get the Location of Full Text</title><content type='html'>Right click - &gt; Script -&gt; Create To&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6107992694110848233?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6107992694110848233/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6107992694110848233' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6107992694110848233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6107992694110848233'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-server-get-location-of-full-text.html' title='SQL Server: Get the Location of Full Text'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3156738628145044337</id><published>2010-09-20T08:02:00.002-07:00</published><updated>2010-09-20T08:03:19.973-07:00</updated><title type='text'>Infopath : File upload size limit</title><content type='html'>Admin tools -&gt; Central Admin -&gt; Application Management -&gt; Under Info-path forms services go to configure info-path forms services à Change the Form Session State to have a maximum size of 25000 KB.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3156738628145044337?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3156738628145044337/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3156738628145044337' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3156738628145044337'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3156738628145044337'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/infopath-file-upload-size-limit.html' title='Infopath : File upload size limit'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-920885985245723619</id><published>2010-09-20T08:02:00.001-07:00</published><updated>2010-09-20T08:02:39.860-07:00</updated><title type='text'>SQL Server : Get the list of Databases with Size</title><content type='html'>EXEC sp_databases&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-920885985245723619?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/920885985245723619/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=920885985245723619' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/920885985245723619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/920885985245723619'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sql-server-get-list-of-databases-with.html' title='SQL Server : Get the list of Databases with Size'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4825672404854320788</id><published>2010-09-20T08:01:00.000-07:00</published><updated>2010-09-20T08:02:12.724-07:00</updated><title type='text'>Infopath: Steps Modify the Infopath form</title><content type='html'>1. Download the copy of the specific form to the desktop.&lt;br /&gt;2. Delete the form from the Production Form Library.&lt;br /&gt;3. Deactivate the feature from the Site Collection&lt;br /&gt;4. Delete the form from Production central admin -&gt; Manage Infopath form&lt;br /&gt;5. Publish the form back again to Production form library&lt;br /&gt;6. Upload the form to production from Central Admin -&gt; Upload a new form template&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4825672404854320788?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4825672404854320788/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4825672404854320788' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4825672404854320788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4825672404854320788'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/infopath-steps-modify-infopath-form.html' title='Infopath: Steps Modify the Infopath form'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2667798214985806616</id><published>2010-09-20T08:00:00.002-07:00</published><updated>2010-09-20T08:01:36.772-07:00</updated><title type='text'>Sharepoint: Efficient way of handling User Pemissions</title><content type='html'>1. All the users should be added to distribution group in AD and then from there we should add the specific AD groups to Sharepoint group rather than one by one adding users in Sharepoint Group&lt;br /&gt;2. Infopath email recipients should be AD distribution&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2667798214985806616?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2667798214985806616/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2667798214985806616' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2667798214985806616'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2667798214985806616'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/sharepoint-efficient-way-of-handling.html' title='Sharepoint: Efficient way of handling User Pemissions'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4351821417984377127</id><published>2010-09-20T08:00:00.001-07:00</published><updated>2010-09-20T08:00:47.192-07:00</updated><title type='text'>Reduce Log size during Reindexing</title><content type='html'>USE [Customer]&lt;br /&gt;GO &lt;br /&gt;&lt;br /&gt;SELECT * &lt;br /&gt;FROM sysfiles&lt;br /&gt;WHERE name LIKE '%LOG%' &lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE (Customer_Log, 1)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;BACKUP LOG Customer WITH NO_LOG&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE (Customer_Log, 1)&lt;br /&gt;GO&lt;br /&gt;&lt;br /&gt;BACKUP LOG Customer WITH TRUNCATE_ONLY&lt;br /&gt;go&lt;br /&gt;&lt;br /&gt;DBCC SHRINKFILE (Customer_Log, 1)&lt;br /&gt;GO&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4351821417984377127?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4351821417984377127/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4351821417984377127' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4351821417984377127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4351821417984377127'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/reduce-log-size-during-reindexing.html' title='Reduce Log size during Reindexing'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-673618352077220414</id><published>2010-09-09T08:12:00.000-07:00</published><updated>2010-09-09T08:15:33.083-07:00</updated><title type='text'>Saving BLOB columns to Folder Directory</title><content type='html'>If you are migrating the data from a table with a BLOB type data (Excel,Doc,XML,PDF) and you save them separately on the folder, you can use SSIS &lt;a href="http://msdn.microsoft.com/en-us/library/ms139818.aspx" target="_blank"&gt;Export Column transform &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Go SSIS!!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-673618352077220414?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/673618352077220414/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=673618352077220414' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/673618352077220414'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/673618352077220414'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/saving-blob-columns-to-folder-directory.html' title='Saving BLOB columns to Folder Directory'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6072503408880517643</id><published>2010-09-08T07:53:00.000-07:00</published><updated>2010-09-08T07:55:38.550-07:00</updated><title type='text'>SSIS: Execute SQL Task - IsQueryStoredProcedure</title><content type='html'>The property "IsQueryStoredProcedure" under "Execute SQL Task" will be available for settings only if you are using ADO.Net connection type. Otherwise it will be greyed out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6072503408880517643?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6072503408880517643/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6072503408880517643' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6072503408880517643'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6072503408880517643'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ssis-execute-sql-task.html' title='SSIS: Execute SQL Task - IsQueryStoredProcedure'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2538878384347801600</id><published>2010-09-01T06:36:00.001-07:00</published><updated>2010-09-01T06:36:48.238-07:00</updated><title type='text'>MS Dynamic CRM: Useful Error Links</title><content type='html'>Unauthorized 401 Error&lt;br /&gt;&lt;br /&gt;http://nishantrana.wordpress.com/2008/11/06/the-request-failed-with-http-status-401-unauthorized-mandatory-updates-for-microsoft-dynamics-crm-could-not-be-applied-successfully/&lt;br /&gt; &lt;br /&gt;CRMDiscoveryService.asmx is not available.&lt;br /&gt;&lt;br /&gt;Do Not type the Org name in url.&lt;br /&gt;http://social.microsoft.com/Forums/en-US/crmdeployment/thread/b6ddd9eb-6609-4297-8c35-1537068972e6?prof=required&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2538878384347801600?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2538878384347801600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2538878384347801600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2538878384347801600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2538878384347801600'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ms-dynamic-crm-useful-error-links.html' title='MS Dynamic CRM: Useful Error Links'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-8822697297073541882</id><published>2010-09-01T06:35:00.000-07:00</published><updated>2010-09-01T06:36:04.560-07:00</updated><title type='text'>MS Dynamic CRM: Reports Fix</title><content type='html'>1. Enable the SQL Server from Deployment Manager&lt;br /&gt;2. Re-Publish the reports&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-8822697297073541882?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/8822697297073541882/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=8822697297073541882' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8822697297073541882'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8822697297073541882'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/ms-dynamic-crm-reports-fix.html' title='MS Dynamic CRM: Reports Fix'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-1397737556852169033</id><published>2010-09-01T06:31:00.000-07:00</published><updated>2010-09-01T06:32:43.963-07:00</updated><title type='text'>Thigs to be considered before big import.</title><content type='html'>** Do Import process off times.&lt;br /&gt;• Pass the values directly from source . Don't create any GUID or any column value in the import  process.&lt;br /&gt;• Increase the size of the CRM database to big enough to avoid the size increments&lt;br /&gt;• Stop the backup jobs on the server&lt;br /&gt;• Try to put the Data files, Log files and Backup up files on different drives&lt;br /&gt;• Rebuild the indexes and Pad them up to 50% (Because it's a write operation)&lt;br /&gt;• Disable all the organizations&lt;br /&gt;• Put the batch size of 50000 in the SSIS&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-1397737556852169033?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/1397737556852169033/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=1397737556852169033' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1397737556852169033'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1397737556852169033'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/09/thigs-to-be-considered-before-big.html' title='Thigs to be considered before big import.'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3214201253162248401</id><published>2010-08-31T08:21:00.000-07:00</published><updated>2010-08-31T08:23:05.384-07:00</updated><title type='text'>C# Insert</title><content type='html'>public static void InsertCustomer(string FName,string LName,string Email,string Location)&lt;br /&gt;        {&lt;br /&gt;            string sqlConnString = null;&lt;br /&gt;&lt;br /&gt;            // Get connection string&lt;br /&gt;            sqlConnString = ConfigurationSettings.AppSettings["dbConn"].ToString();&lt;br /&gt;&lt;br /&gt;            using (SqlConnection sqlConn = new SqlConnection(sqlConnString))&lt;br /&gt;            {&lt;br /&gt;                try&lt;br /&gt;                {&lt;br /&gt;                    //Create command.&lt;br /&gt;                    SqlCommand command = new SqlCommand("usp_InsCustomer", sqlConn);&lt;br /&gt;                    command.CommandType = CommandType.StoredProcedure;&lt;br /&gt;                    command.CommandTimeout = 30;&lt;br /&gt;&lt;br /&gt;                    //Build parameter list.&lt;br /&gt;                    command.Parameters.Add(new SqlParameter("@FName", SqlDbType.NVarChar, 256));&lt;br /&gt;                    command.Parameters.Add(new SqlParameter("@LName", SqlDbType.NVarChar, 256));&lt;br /&gt;                    command.Parameters.Add(new SqlParameter("@Email", SqlDbType.NVarChar, 256));&lt;br /&gt;                    command.Parameters.Add(new SqlParameter("@Location", SqlDbType.NVarChar, 256));&lt;br /&gt;                    //command.Parameters.Add(new SqlParameter("@IPAddress", SqlDbType.NVarChar, 256));&lt;br /&gt;&lt;br /&gt;                    //Add values for the parameters.&lt;br /&gt;                    command.Parameters[0].Value = FName;&lt;br /&gt;                    command.Parameters[1].Value = LName;&lt;br /&gt;                    command.Parameters[2].Value = Email;&lt;br /&gt;                    command.Parameters[3].Value = Location;&lt;br /&gt;                    command.Parameters[4].Value = NumberOfHugs;&lt;br /&gt;                    //command.Parameters[5].Value = IPAddress;&lt;br /&gt;&lt;br /&gt;                    //Open Connection&lt;br /&gt;                    sqlConn.Open();&lt;br /&gt;&lt;br /&gt;                    //Fire Command&lt;br /&gt;                    command.ExecuteNonQuery();&lt;br /&gt;&lt;br /&gt;                }&lt;br /&gt;                catch (Exception ex)&lt;br /&gt;                {&lt;br /&gt;                    //Eat exception&lt;br /&gt;                }&lt;br /&gt;            }&lt;br /&gt;&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3214201253162248401?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3214201253162248401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3214201253162248401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3214201253162248401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3214201253162248401'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/08/c-insert.html' title='C# Insert'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6023370478937554770</id><published>2010-08-31T08:20:00.000-07:00</published><updated>2010-08-31T08:21:16.141-07:00</updated><title type='text'>Database Differential Backup Restore</title><content type='html'>USE master&lt;br /&gt;&lt;br /&gt;restore database [DBName]&lt;br /&gt;from disk = 'D:\SQL2005\Backups\Temporary Backups\User DB Backups\FullBackup\DBBackupFolder\DB_backup.bak'&lt;br /&gt;with move 'DBDataFile' to 'D:\SQL2005\Data\DBDataFile.mdf',&lt;br /&gt;move 'DBLogFile' to 'D:\SQL2005\Data\DBLogFile_log.ldf',&lt;br /&gt;norecovery, Replace&lt;br /&gt;&lt;br /&gt;--now the diff backup&lt;br /&gt;restore database [PMPoint_0624]&lt;br /&gt;from disk = ' D:\SQL2005\Backups\Temporary Backups\User DB Backups\FullBackup\DBBackupFolder\DB_Restore_backup.bak'&lt;br /&gt;with move ''DBDataFile' to 'D:\SQL2005\Data\DBDataFile.mdf',&lt;br /&gt;move 'DBLogFile' to 'D:\SQL2005\Data\DBLogFile_log.ldf',&lt;br /&gt;recovery&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6023370478937554770?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6023370478937554770/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6023370478937554770' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6023370478937554770'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6023370478937554770'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2010/08/database-differential-backup-restore.html' title='Database Differential Backup Restore'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3716694422121011830</id><published>2009-09-10T18:00:00.000-07:00</published><updated>2009-09-10T18:07:02.435-07:00</updated><title type='text'>SQL Server 2005 Linked Server using TSQL</title><content type='html'>Use the below to commands to add a server as linked server:&lt;br /&gt;&lt;br /&gt;To Add the Server:&lt;br /&gt;sp_addlinkedserver 'Alias Name', '', 'SQLNCLI', NULL, NULL, 'SERVER=IP', NULL&lt;br /&gt; &lt;br /&gt;To Add the security:&lt;br /&gt;sp_addlinkedsrvlogin 'Alias Name', 'false', NULL, 'User Name', 'Password'&lt;br /&gt;&lt;br /&gt;NOTE: When you are trying to connect SQL Server 2000 to SQL Server 2005 as Linked server you may get the following error:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;OLE DB provider "SQLNCLI" for linked server "serv01" returned message "Unspecified error".&lt;br /&gt;&lt;br /&gt;OLE DB provider "SQLNCLI" for linked server "serv01" returned message "The stored procedure required to complete this operation could not be found on the server. Please contact your system administrator.".&lt;br /&gt;&lt;br /&gt;Msg 7311, Level 16, State 2, Line 1&lt;br /&gt;&lt;br /&gt;Cannot obtain the schema rowset "DBSCHEMA_TABLES_INFO" for OLE DB provider "SQLNCLI" for linked server "serv01". The provider supports the interface, but returns a failure code when it is used.&lt;/em&gt;  &lt;br /&gt;&lt;br /&gt;Solution is specified in &lt;a href="http://social.msdn.microsoft.com/Forums/en-US/sqlsecurity/thread/7b24b699-f8b9-48e8-ba78-b037fd3b1d21"&gt; this &lt;/a&gt; link.&lt;br /&gt;&lt;br /&gt;What worked for me is this&lt;br /&gt;&lt;br /&gt;SELECT * FROM OPENQUERY(LinkedServerAlias,'SELECT * FROM [Fully Qualified Name')&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3716694422121011830?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3716694422121011830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3716694422121011830' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3716694422121011830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3716694422121011830'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/09/sql-server-2005-linked-server-using.html' title='SQL Server 2005 Linked Server using TSQL'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6283168653018210634</id><published>2009-06-21T09:06:00.000-07:00</published><updated>2009-06-21T09:13:23.610-07:00</updated><title type='text'>CRM 4.0 Calling Web Service</title><content type='html'>public static CrmService GetCrmService(string orgName, string server)&lt;br /&gt;        {&lt;br /&gt;&lt;br /&gt;            CrmAuthenticationToken token = new CrmAuthenticationToken();&lt;br /&gt;            token.AuthenticationType = 0;&lt;br /&gt;            token.OrganizationName = orgName;&lt;br /&gt;&lt;br /&gt;            CrmService service = new CrmService();&lt;br /&gt;&lt;br /&gt;            service.Credentials = System.Net.CredentialCache.DefaultCredentials;&lt;br /&gt;            service.CrmAuthenticationTokenValue = token;&lt;br /&gt;            service.Url = string.Format("http://{0}/mscrmservices/2007/crmservice.asmx", server);&lt;br /&gt;            return service;&lt;br /&gt;&lt;br /&gt;        }&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6283168653018210634?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6283168653018210634/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6283168653018210634' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6283168653018210634'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6283168653018210634'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/06/crm-40-calling-web-service.html' title='CRM 4.0 Calling Web Service'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-1092206880868765916</id><published>2009-04-24T08:26:00.001-07:00</published><updated>2009-04-24T08:26:22.052-07:00</updated><title type='text'>How to ouput the results to File (SQL Server)</title><content type='html'>Either do Control + shift + F&lt;br /&gt;or &lt;br /&gt;Go to Query -&gt; Result To -&gt; Select "Output to file"&lt;br /&gt;Now when you will run the query, system will ask for the file to save the results.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-1092206880868765916?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/1092206880868765916/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=1092206880868765916' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1092206880868765916'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/1092206880868765916'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/how-to-ouput-results-to-file-sql-server.html' title='How to ouput the results to File (SQL Server)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-781037231341295881</id><published>2009-04-17T06:34:00.001-07:00</published><updated>2009-04-17T06:34:37.411-07:00</updated><title type='text'>difference between the console.read and console.readlline</title><content type='html'>Console.Readline reads the entire line of data.&lt;br /&gt;Console.Read reads only one character at a time.&lt;br /&gt;Console.Write will writes to the screen and leaves the cursor until the user hits enter.&lt;br /&gt;Console.WriteLine writes to the screen and will perform a carriage return and line-feed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-781037231341295881?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/781037231341295881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=781037231341295881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/781037231341295881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/781037231341295881'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/difference-between-consoleread-and.html' title='difference between the console.read and console.readlline'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3828067176601810105</id><published>2009-04-15T06:32:00.001-07:00</published><updated>2009-04-15T06:32:20.627-07:00</updated><title type='text'>How to create the proxy class from WSDL</title><content type='html'>Open Start-&gt; visual Studio 2008 -&gt; Tools -&gt; Command prompt&lt;br /&gt;&lt;br /&gt;browse to the desired directory&lt;br /&gt;&lt;br /&gt;and type&lt;br /&gt;&lt;br /&gt;wsdl www.wsdlurl.com/wsdl&lt;br /&gt;&lt;br /&gt;and a file will be created&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3828067176601810105?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3828067176601810105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3828067176601810105' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3828067176601810105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3828067176601810105'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/how-to-create-proxy-class-from-wsdl.html' title='How to create the proxy class from WSDL'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3806584590774581290</id><published>2009-04-14T13:42:00.001-07:00</published><updated>2009-04-14T13:43:24.049-07:00</updated><title type='text'>How to use Foreach in c# Arrays</title><content type='html'>string[] WeeKdays = new string[7];&lt;br /&gt;&lt;br /&gt;WeeKdays[0] = Sunday";&lt;br /&gt;WeeKdays[1] = "Monday";&lt;br /&gt;WeeKdays[2] = "Tuesday";&lt;br /&gt;WeeKdays[3] = "Wednesday";&lt;br /&gt;WeeKdays[4] = "Thursday";&lt;br /&gt;WeeKdays[5] = "Friday";&lt;br /&gt;WeeKdays[6] = "Saturday";&lt;br /&gt;&lt;br /&gt;foreach (object row in Weekdays)&lt;br /&gt;{&lt;br /&gt;Response.Write(row + " , ");&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3806584590774581290?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3806584590774581290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3806584590774581290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3806584590774581290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3806584590774581290'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/string-weekdays-new-string7-weekdays0.html' title='How to use Foreach in c# Arrays'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4848491277644216400</id><published>2009-04-09T07:56:00.001-07:00</published><updated>2009-04-09T07:56:44.059-07:00</updated><title type='text'>Loop through each row in dataset</title><content type='html'>foreach (DataRow row in dsDataset.Tables[0].Rows)&lt;br /&gt;{&lt;br /&gt; Console.writeline(row["ColmnName1"].tostring();&lt;br /&gt; Console.writeline(row["ColmnName2"].tostring();&lt;br /&gt; .&lt;br /&gt; .&lt;br /&gt; .&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4848491277644216400?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4848491277644216400/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4848491277644216400' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4848491277644216400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4848491277644216400'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/loop-through-each-row-in-dataset.html' title='Loop through each row in dataset'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4229650458614061199</id><published>2009-04-09T07:55:00.000-07:00</published><updated>2009-04-09T07:56:10.444-07:00</updated><title type='text'>Date Compare in C#</title><content type='html'>&lt;strong&gt;Visual Basic &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Dim t1 As DateTime&lt;br /&gt;Dim t2 As DateTime&lt;br /&gt;Dim returnValue As Integer&lt;br /&gt;&lt;br /&gt;returnValue = DateTime.Compare(t1, t2)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;C#&lt;/strong&gt;&lt;br /&gt;public static int Compare(&lt;br /&gt;    DateTime t1,&lt;br /&gt;    DateTime t2&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;Parameters&lt;br /&gt;t1&lt;br /&gt;Type: System..::.DateTime&lt;br /&gt;The first DateTime. &lt;br /&gt;&lt;br /&gt;t2&lt;br /&gt;Type: System..::.DateTime&lt;br /&gt;The second DateTime. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Return Value&lt;/strong&gt;&lt;br /&gt;Type: System..::.Int32&lt;br /&gt;A signed number indicating the relative values of t1 and t2.&lt;br /&gt;&lt;br /&gt;Value Type  Condition  &lt;br /&gt;&lt;br /&gt;Less than zero  t1 is earlier than t2. &lt;br /&gt;Zero    t1 is the same as t2. &lt;br /&gt;Greater than zero   t1 is later than t2. &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Example:&lt;/strong&gt;&lt;br /&gt;C# &lt;br /&gt;&lt;br /&gt;DateTime t1 = new DateTime(100);&lt;br /&gt;DateTime t2 = new DateTime(20);&lt;br /&gt;&lt;br /&gt;if (DateTime.Compare(t1, t2) &gt;  0) Console.WriteLine("t1 &gt; t2"); &lt;br /&gt;if (DateTime.Compare(t1, t2) == 0) Console.WriteLine("t1 == t2"); &lt;br /&gt;if (DateTime.Compare(t1, t2) &lt;  0) Console.WriteLine("t1 &lt; t2");&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4229650458614061199?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4229650458614061199/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4229650458614061199' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4229650458614061199'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4229650458614061199'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/date-compare-in-c.html' title='Date Compare in C#'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2543648758599390021</id><published>2009-04-03T08:43:00.001-07:00</published><updated>2009-04-03T08:43:57.766-07:00</updated><title type='text'>Alternate/simple way to pivot data</title><content type='html'>SET NOCOUNT ON&lt;br /&gt;– Prepare sample data&lt;br /&gt;DECLARE    @table TABLE (Dept_ID INT, EMP_Name VARCHAR(30))&lt;br /&gt;&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (10, ‘Jack’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (10, ‘John’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (10, ‘Beth’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (20, ‘Mary’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (20, ‘Allen’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (20, ‘Diana’)&lt;br /&gt;INSERT    INTO @table (Dept_ID, EMP_NAME) VALUES (20, ‘Don’)&lt;br /&gt;&lt;br /&gt;SELECT&lt;br /&gt;DISTINCT    t.Dept_ID,&lt;br /&gt;STUFF((SELECT ‘, ‘ + t2.EMP_NAME FROM @table AS t2 WHERE t2.Dept_ID = t.Dept_ID FOR XML PATH(”)), 1, 2, ”) AS EMP_NAMES&lt;br /&gt;FROM        @table AS t&lt;br /&gt;ORDER BY    t.Dept_ID&lt;br /&gt;&lt;br /&gt;Output is shown below:&lt;br /&gt;&lt;br /&gt;Dept_ID     EMP_NAMES&lt;br /&gt;———– ————————&lt;br /&gt;10          Jack, John, Beth&lt;br /&gt;20          Mary, Allen, Diana, Don&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2543648758599390021?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2543648758599390021/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2543648758599390021' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2543648758599390021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2543648758599390021'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/alternatesimple-way-to-pivot-data.html' title='Alternate/simple way to pivot data'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4717498376620657970</id><published>2009-04-03T08:38:00.000-07:00</published><updated>2009-04-03T08:41:35.333-07:00</updated><title type='text'>SQL PIVOT</title><content type='html'>&lt;strong&gt;The PIVOT statement is used for changing rows into columns in a SQL Query (Crosstab). The PIVOT Statement is generally written in this form: &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;SELECT columns &lt;br /&gt;FROM table &lt;br /&gt;PIVOT &lt;br /&gt;(&lt;br /&gt;  Aggregate Function(Measure Column)&lt;br /&gt;  FOR Pivot Column IN ([Pivot Column Values])&lt;br /&gt;)&lt;br /&gt;AS Alias &lt;br /&gt;Note: You must use brackets around each of the Pivot Column Values &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;&lt;br /&gt;declare @sales table&lt;br /&gt;(&lt;br /&gt; [Year] int,&lt;br /&gt; Quarter char(2),&lt;br /&gt; Amount float&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;insert into @sales values(2001, 'Q1', 70)&lt;br /&gt;insert into @sales values(2001, 'Q1', 150)&lt;br /&gt;insert into @sales values(2002, 'Q1', 20)&lt;br /&gt;insert into @sales values(2001, 'Q2', 15)&lt;br /&gt;insert into @sales values(2002, 'Q2', 25)&lt;br /&gt;insert into @sales values(2001, 'Q3', 50)&lt;br /&gt;insert into @sales values(2002, 'Q3', 20)&lt;br /&gt;insert into @sales values(2001, 'Q4', 90)&lt;br /&gt;insert into @sales values(2001, 'Q4', 80)&lt;br /&gt;insert into @sales values(2002, 'Q4', 35)&lt;br /&gt;&lt;br /&gt;select * from @sales&lt;br /&gt;pivot &lt;br /&gt;(&lt;br /&gt; sum(Amount)&lt;br /&gt; for Quarter&lt;br /&gt; in (Q1, Q2, Q3, Q4)&lt;br /&gt;) as p&lt;br /&gt;&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;Year        Q1                     Q2                     Q3                     Q4&lt;br /&gt;----------- ---------------------- ---------------------- ---------------------- ----------------------&lt;br /&gt;2001        220                    15                     50                     170&lt;br /&gt;2002        20                     25                     20                     35&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;(2 row(s) affected)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4717498376620657970?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4717498376620657970/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4717498376620657970' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4717498376620657970'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4717498376620657970'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/sql-pivot.html' title='SQL PIVOT'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3120038017696487237</id><published>2009-04-02T14:03:00.000-07:00</published><updated>2009-04-02T14:06:01.020-07:00</updated><title type='text'>How to move the system databases</title><content type='html'>&lt;strong&gt;Step 1) Open Notepad,copy the below script there and save the file as "MoveSql2005SysDbs.cmd". &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Script:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;REM // MoveSql2005SysDbs.cmd - Execute commands to move system databases&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;if "%2"=="" goto syntax&lt;br /&gt;&lt;br /&gt;set InstName=%1&lt;br /&gt;set NewPath=%2&lt;br /&gt;set ScriptPath=%~dp0&lt;br /&gt;&lt;br /&gt;if /I %InstName% equ MSSQLSERVER (&lt;br /&gt; set ServiceName=MSSQLSERVER&lt;br /&gt; set AgentServiceName=SQLSERVERAGENT&lt;br /&gt; set SQLName=.&lt;br /&gt;) else (&lt;br /&gt; set ServiceName=MSSQL$%InstName% &lt;br /&gt; set AgentServiceName=SQLAgent$%InstName%&lt;br /&gt; set SQLName=.\%InstName%&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;REM // Ensure we can find our SQL script file&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;if not exist %ScriptPath%MoveSql2005SysDbs.sql (&lt;br /&gt; echo This command MUST be run from the SQL Server and the script file MoveSql2005SysDbs.sql &lt;br /&gt; echo must be in the same directory as the MoveSql2005SysDbs.cmd file.&lt;br /&gt; exit 1&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;REM // Check viability of parameters before any changes happen...&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"print 'Instance name $(InstName) verified.'"&lt;br /&gt;if errorlevel 1 (&lt;br /&gt; echo Sql Server %SQLName% not found, please check instance name parameter.&lt;br /&gt; exit 1&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;dir %NewPath% &gt; nul&lt;br /&gt;if errorlevel 1 (&lt;br /&gt; echo New Path %NewPath% not found, please check path parameter.&lt;br /&gt; exit 1&lt;br /&gt;)&lt;br /&gt;&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;REM // Now start modifying the system database locations&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE model  MODIFY FILE (NAME = 'modeldev', FILENAME = '%NewPath%\model.mdf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE model  MODIFY FILE (NAME = 'modellog', FILENAME = '%NewPath%\modellog.ldf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE msdb   MODIFY FILE (NAME = 'MSDBData', FILENAME = '%NewPath%\MSDBData.mdf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE msdb   MODIFY FILE (NAME = 'MSDBLog',  FILENAME = '%NewPath%\MSDBLog.ldf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE tempdb MODIFY FILE (NAME = 'tempdev',  FILENAME = '%NewPath%\tempdb.mdf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE tempdb MODIFY FILE (NAME = 'templog',  FILENAME = '%NewPath%\templog.ldf')"&lt;br /&gt;&lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;REM // This script file finds the correct spot in the registry for the startup parameters, replaces the path, and returns&lt;br /&gt;REM // the old path name back to the calling script.  &lt;br /&gt;REM /////////////////////////////////////////////////////////////////////&lt;br /&gt;for /f "delims=;" %%s in ('sqlcmd -E -S%SQLName% -h-1 -i%ScriptPath%MoveSql2005SysDbs.sql') do set OldPath="%%s"&lt;br /&gt;&lt;br /&gt;echo Shutting down SQL Server.  Answer Y if prompted to shut down dependent services.&lt;br /&gt;net stop %AgentServiceName%&lt;br /&gt;net stop %ServiceName%&lt;br /&gt;&lt;br /&gt;echo Moving files...&lt;br /&gt;move %OldPath%\model.mdf    %NewPath%&lt;br /&gt;move %OldPath%\modellog.ldf %NewPath%&lt;br /&gt;move %OldPath%\MSDBData.mdf %NewPath%&lt;br /&gt;move %OldPath%\MSDBLog.ldf  %NewPath%&lt;br /&gt;move %OldPath%\tempdb.mdf   %NewPath%&lt;br /&gt;move %OldPath%\templog.ldf  %NewPath%&lt;br /&gt;move %OldPath%\master.mdf   %NewPath%&lt;br /&gt;move %OldPath%\mastlog.ldf  %NewPath%&lt;br /&gt;&lt;br /&gt;echo Restarting service with /f and trace flag 3608 &lt;br /&gt;net start %ServiceName% /f /T3608&lt;br /&gt;&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE mssqlsystemresource MODIFY FILE (NAME = 'data', FILENAME = '%NewPath%\mssqlsystemresource.mdf')"&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE mssqlsystemresource MODIFY FILE (NAME = 'log',  FILENAME = '%NewPath%\mssqlsystemresource.ldf')"&lt;br /&gt;&lt;br /&gt;move %OldPath%\mssqlsystemresource.mdf %NewPath%&lt;br /&gt;move %OldPath%\mssqlsystemresource.ldf %NewPath%&lt;br /&gt;&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"ALTER DATABASE mssqlsystemresource SET READ_ONLY"&lt;br /&gt;&lt;br /&gt;net stop %ServiceName% &lt;br /&gt;&lt;br /&gt;echo Restarting service %ServiceName% in normal mode&lt;br /&gt;net start %ServiceName%&lt;br /&gt;net start %AgentServiceName%&lt;br /&gt;&lt;br /&gt;echo Verifying new location of system databases...&lt;br /&gt;sqlcmd -E -S%SQLName% -Q"SELECT name, physical_name AS CurrentLocation, state_desc FROM sys.master_files ORDER BY database_id;"&lt;br /&gt;exit 0&lt;br /&gt;&lt;br /&gt;:syntax&lt;br /&gt;echo MoveSql2005SysDbs - Moves sql system databases to a different directory&lt;br /&gt;echo MoveSql2005SysDbs [InstanceName] [NewPath]&lt;br /&gt;echo   InstanceName should be MSSQLSERVER if using the default instance&lt;br /&gt;echo   NewPath should contain a full path but no trailing backslash&lt;br /&gt;&lt;br /&gt;:end&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 2) Open notepad, copy the sql script below and save it as "MoveSql2005SysDbs.sql".&lt;br /&gt;Script:&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;SET NOCOUNT ON&lt;br /&gt;DECLARE @MssqlDotNum varchar(100), @key varchar(255), @ArgName varchar(255), @Arg varchar(255), @i int, @OldPath varchar(255)&lt;br /&gt;&lt;br /&gt;EXEC master.dbo.xp_regread 'HKEY_LOCAL_MACHINE', 'Software\Microsoft\Microsoft SQL Server\Instance Names\SQL', '$(InstName)', @MssqlDotNum output&lt;br /&gt;&lt;br /&gt;SELECT @i = 0&lt;br /&gt;&lt;br /&gt;SELECT @key = 'Software\Microsoft\Microsoft SQL Server\' + @MssqlDotNum + '\MSSQLSERVER\Parameters',&lt;br /&gt;       @ArgName = 'SQLArg' + convert(char(1), @i)&lt;br /&gt;&lt;br /&gt;WHILE @i &lt;= 2&lt;br /&gt;BEGIN&lt;br /&gt;    SELECT @key = 'Software\Microsoft\Microsoft SQL Server\' + @MssqlDotNum + '\MSSQLSERVER\Parameters',&lt;br /&gt;           @ArgName = 'SQLArg' + convert(char(1), @i)&lt;br /&gt;&lt;br /&gt;    EXEC master.dbo.xp_regread 'HKEY_LOCAL_MACHINE', @key, @ArgName, @Arg output&lt;br /&gt;&lt;br /&gt;    IF left(@Arg,2) = '-d'&lt;br /&gt;        select @OldPath = substring(@Arg, 3, charindex('\master.mdf', @Arg) - 3)&lt;br /&gt;    ELSE IF left(@Arg,2) = '-l'&lt;br /&gt;        select @OldPath = substring(@Arg, 3, charindex('\mastlog.ldf', @Arg) - 3)&lt;br /&gt;&lt;br /&gt;    IF left(@Arg,2) IN ('-d','-l') &lt;br /&gt;    BEGIN&lt;br /&gt;        select @Arg = replace(@Arg, @OldPath, '$(NewPath)')&lt;br /&gt;        exec master.dbo.xp_regwrite 'HKEY_LOCAL_MACHINE', @key, @ArgName, 'REG_SZ', @Arg&lt;br /&gt;    END&lt;br /&gt;    SELECT @i = @i + 1&lt;br /&gt;END&lt;br /&gt;-- Return the path to the calling .CMD file so it knows the old path.  ; is the delimiter&lt;br /&gt;select OldPath = rtrim(@OldPath) + ';'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 3) Open notepad, copy the script below. Change the location where you want to move the databases to and save the file as "MoveSql2005SysDbs__run.bat".&lt;br /&gt;&lt;br /&gt;Script: &lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;MoveSql2005SysDbs.cmd MSSQLSERVER d:\MSSQL\SystemDB&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Step 4) Save all 3 files into same folders.&lt;br /&gt;&lt;br /&gt;Step 5) Double click the bat file and once it finish the processing please verify that files are moved to specified location.&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;In case files are not moved the you need to run the bat file from command prompt.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3120038017696487237?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3120038017696487237/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3120038017696487237' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3120038017696487237'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3120038017696487237'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/how-to-move-system-databases.html' title='How to move the system databases'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-767658505848141083</id><published>2009-04-02T07:55:00.001-07:00</published><updated>2009-04-02T07:55:31.773-07:00</updated><title type='text'>How to Query 2 the tables on different server</title><content type='html'>First of all the Server must be added as Linked server using the below command&lt;br /&gt;&lt;br /&gt;sp_addLinkedserver 'servername' w&lt;br /&gt;&lt;br /&gt;then the table name should be in a full four part format&lt;br /&gt;&lt;br /&gt;ServerName.DatabaseName.DatabaseOwner.TableName&lt;br /&gt;&lt;br /&gt;for example TestSvr.TestDB.DBO.Testtbl&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-767658505848141083?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/767658505848141083/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=767658505848141083' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/767658505848141083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/767658505848141083'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/how-to-query-2-tables-on-different.html' title='How to Query 2 the tables on different server'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-6165462869670156749</id><published>2009-04-01T10:38:00.000-07:00</published><updated>2009-04-01T10:39:38.514-07:00</updated><title type='text'>Exclusive access could not be obtained because the database is in use</title><content type='html'>Issue: Exclusive access could not be obtained because the database is in use&lt;br /&gt;Solution:&lt;br /&gt;&lt;br /&gt;Use Master&lt;br /&gt;&lt;br /&gt;Alter Database YOURDB&lt;br /&gt;  SET SINGLE_USER With ROLLBACK IMMEDIATE &lt;br /&gt;&lt;br /&gt; &lt;br /&gt;  RESTORE DATABASE YOURDB&lt;br /&gt;  FROM DISK = 'C:\Program Files\Microsoft SQL Server\MSSQL\BACKUP\YOURDB.bak'&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-6165462869670156749?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/6165462869670156749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=6165462869670156749' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6165462869670156749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/6165462869670156749'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/04/issue-exclusive-access-could-not-be.html' title='Exclusive access could not be obtained because the database is in use'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3382023233266117663</id><published>2009-01-23T06:48:00.000-08:00</published><updated>2009-01-23T06:50:12.768-08:00</updated><title type='text'>Installing C360 Field Level Security on 64 bit server</title><content type='html'>After installing C360 FLS on 64 bit, the CRM system freeze and does not allow to click anywhere or open anything without giving any error.&lt;br /&gt;&lt;br /&gt;To fix that issue Please follow the steps below:&lt;br /&gt;&lt;br /&gt;1)    Launch IIS Manager (INetMgr from Start/Run).&lt;br /&gt;&lt;br /&gt;2)    Right-click on the Microsoft Dynamics CRM website and click 'Properties'.&lt;br /&gt;&lt;br /&gt;3)    Select the 'Home Directory' tab.&lt;br /&gt;&lt;br /&gt;4)    Click 'Configuration'.&lt;br /&gt;&lt;br /&gt;5)    Under 'Application Extensions', highlight '.htc' and click 'Edit'.&lt;br /&gt;&lt;br /&gt;6)    Click 'Browse...' and select &lt;br /&gt;&lt;br /&gt;7)    'C:\Windows\Micosoft.Net\Framework64\v2.0.50727\aspnet_isapi.dll'.&lt;br /&gt;&lt;br /&gt;8)    Uncheck ‘Verify the that the file exists’.&lt;br /&gt;&lt;br /&gt;9)    Click 'OK'.&lt;br /&gt;&lt;br /&gt;10)  Do not select any child nodes if prompted for Installation Overrides.&lt;br /&gt;&lt;br /&gt;11)  Click 'OK'.&lt;br /&gt;&lt;br /&gt;12)  Execute an IISReset.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In windows server 2008 the steps will be like this:&lt;br /&gt;&lt;br /&gt;1) Launch IIS Manager (INetMgr from Start/Run).&lt;br /&gt;&lt;br /&gt;2) Click on Microsoft Dynamics CRM website.&lt;br /&gt;&lt;br /&gt;3) Double click on Handler Mappings.&lt;br /&gt;&lt;br /&gt;4) highlight '.htc' and click 'Edit'.&lt;br /&gt;&lt;br /&gt;5) Click 'Browse...' and select &lt;br /&gt;&lt;br /&gt;6) 'C:\Windows\Micosoft.Net\Framework64\v2.0.50727\aspnet_isapi.dll'.&lt;br /&gt;&lt;br /&gt;7) Click 'OK'.&lt;br /&gt;&lt;br /&gt;8) Execute an IISReset.&lt;br /&gt;&lt;br /&gt;Reference : &lt;a href="http://www.c360.com/Support/Default.aspx?OrgName=c360SolutionsInc&amp;tabid=23a72820577a443aac45d2bbbe95e706&amp;linkId=2bac9bd3dbc3464d86273ab33f0efbf4&amp;Number=KBA-1280-1VRFFX&amp;operation=KBDETAILS&amp;subject=1"&gt;Click here &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3382023233266117663?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3382023233266117663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3382023233266117663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3382023233266117663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3382023233266117663'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2009/01/installing-c360-field-level-security-on.html' title='Installing C360 Field Level Security on 64 bit server'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-3091385597343777678</id><published>2008-10-09T10:14:00.001-07:00</published><updated>2008-10-09T10:31:16.013-07:00</updated><title type='text'>Asp.Net (C#)</title><content type='html'>&lt;a href="http://sqlshare.blogspot.com/2008/10/null-and-tostring-aspnet.html"&gt;Null and ToString (Asp.Net)  &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-3091385597343777678?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/3091385597343777678/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=3091385597343777678' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3091385597343777678'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/3091385597343777678'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/aspnet-c.html' title='Asp.Net (C#)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-992939529907663928</id><published>2008-10-09T10:13:00.007-07:00</published><updated>2008-10-09T10:13:57.171-07:00</updated><title type='text'>Quotes</title><content type='html'>&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-992939529907663928?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/992939529907663928/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=992939529907663928' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/992939529907663928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/992939529907663928'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/quotes.html' title='Quotes'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2196702172126251460</id><published>2008-10-09T10:13:00.005-07:00</published><updated>2008-10-09T10:29:05.730-07:00</updated><title type='text'>MS SQL Server (Administration)</title><content type='html'>&lt;a href="http://sqlshare.blogspot.com/2008/09/shrink-db-size.html"&gt;&lt;strong&gt;Shrink DB Size &lt;/strong&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2196702172126251460?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2196702172126251460/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2196702172126251460' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2196702172126251460'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2196702172126251460'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/ms-sql-server-administration.html' title='MS SQL Server (Administration)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-284230053854904019</id><published>2008-10-09T10:13:00.003-07:00</published><updated>2008-10-09T10:17:23.252-07:00</updated><title type='text'>SSRS</title><content type='html'>&lt;a href="http://sqlshare.blogspot.com/2008/07/sql-server-reports-coming-soon.html"&gt;SQL Server Reports (Coming Soon) &lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-284230053854904019?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/284230053854904019/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=284230053854904019' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/284230053854904019'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/284230053854904019'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/ssrs.html' title='SSRS'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-8324111794875669056</id><published>2008-10-09T10:13:00.001-07:00</published><updated>2008-10-09T10:26:48.778-07:00</updated><title type='text'>SSIS</title><content type='html'>&lt;a href="http://sqlshare.blogspot.com/2008/10/error-while-importing-from-flat-file.html"&gt;&lt;strong&gt;Error while importing from Flat File&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlshare.blogspot.com/2008/08/ssis-create-smtp-mail-server-connection.html"&gt;&lt;strong&gt;SSIS: Create SMTP (Mail Server) Connection&lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlshare.blogspot.com/2008/08/ssis-creating-data-source.html"&gt;&lt;strong&gt;SSIS: Creating Data Source &lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;a href="http://sqlshare.blogspot.com/2008/08/ssis-create-file-connection.html"&gt;&lt;strong&gt;SSIS: Create File Connection &lt;/strong&gt;&lt;/a&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-8324111794875669056?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/8324111794875669056/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=8324111794875669056' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8324111794875669056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8324111794875669056'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/ssis.html' title='SSIS'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-8055056607523784228</id><published>2008-10-09T08:42:00.000-07:00</published><updated>2008-10-09T10:28:09.096-07:00</updated><title type='text'>MS SQL Server (T-SQL)</title><content type='html'>&lt;a href="http://sqlshare.blogspot.com/2008/10/sql-not-in-constraint-and-null-values.html"&gt;&lt;strong&gt;SQL NOT IN Constraint and NULL values&lt;/strong&gt;&lt;/a&gt; &lt;br /&gt;&lt;a href="http://sqlshare.blogspot.com/2008/10/line-break-in-dynamic-sql.html"&gt;&lt;strong&gt;Line Break In Dynamic SQL&lt;/strong&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-8055056607523784228?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/8055056607523784228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=8055056607523784228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8055056607523784228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8055056607523784228'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/ms-sql-server-t-sql.html' title='MS SQL Server (T-SQL)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-4061404545558773410</id><published>2008-10-09T08:39:00.001-07:00</published><updated>2008-10-09T11:12:20.076-07:00</updated><title type='text'>Learn Spnish</title><content type='html'>Its Friday Finally -- su el viernes por ultimo.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-4061404545558773410?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/4061404545558773410/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=4061404545558773410' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4061404545558773410'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/4061404545558773410'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/learn-spnish.html' title='Learn Spnish'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2967493761547833854</id><published>2008-10-08T19:34:00.000-07:00</published><updated>2008-10-08T19:38:21.200-07:00</updated><title type='text'>Null and ToString (Asp.Net)</title><content type='html'>Sometimes while using ToString method for a object we end up in a situation where object is null and we get Null Exception. eg&lt;br /&gt;&lt;br /&gt;Object 0 = null;&lt;br /&gt;o.ToString();&lt;br /&gt;&lt;br /&gt;In this case we can use if condition to check whether the object is null and then use ToString method.&lt;br /&gt;&lt;br /&gt;if (o != null)&lt;br /&gt;{&lt;br /&gt;   o.ToString();&lt;br /&gt;}&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2967493761547833854?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2967493761547833854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2967493761547833854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2967493761547833854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2967493761547833854'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/null-and-tostring-aspnet.html' title='Null and ToString (Asp.Net)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5676957293955979073</id><published>2008-10-06T11:51:00.000-07:00</published><updated>2008-10-06T11:52:27.554-07:00</updated><title type='text'>SQL NOT IN Constraint and NULL values</title><content type='html'>Few days back i was working on a query which involved "IN". To verify the result i am getting i used "NOT IN" and guess what... i get 0 result.After spending couple of hours on the issue i found that if in the subquery there is any NULL value then query will return a count of o records.&lt;br /&gt;According to SQL Online Book:&lt;br /&gt;"Any null values returned by subquery or expression that are compared to test_expression using IN or NOT IN return UNKNOWN. Using null values in together with IN or NOT IN can produce unexpected results."&lt;br /&gt;Click &lt;a href="http://msdn.microsoft.com/en-us/library/ms177682(SQL.90).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms177682(SQL.90).aspx&lt;/a&gt; to read more&lt;br /&gt;On another website i got better example to explain:&lt;br /&gt;To state it simply, why does query A return a result but B doesn't?&lt;br /&gt;A: select 'true' where 3 in (1, 2, 3, null)B: select 'true' where 3 not in (1, 2, null)&lt;br /&gt;This was on SQL Server 2005. I also found that calling set ansi_nulls off causes B to return a result.&lt;br /&gt;The most accepted reason for this behaviour is:&lt;br /&gt;Query A is the same as:select 'true' where 3 = 1 or 3 = 2 or 3 = 3 or 3 = nullSince 3 = 3 is true, you get a result.&lt;br /&gt;Query B is the same as:select 'true' where 3 &lt;&gt; 1 and 3 &lt;&gt; 2 and 3 &lt;&gt; nullWhen ansi_nulls is on, 3 &lt;&gt; null is UNKNOWN, so the predicate evaluates to UNKNOWN, and you don't get any rows.&lt;br /&gt;When ansi_nulls is off, 3 &lt;&gt; null is true, so the predicate evaluates to true, and you get a row&lt;br /&gt;And the another reason i found which explains it well is as follows:&lt;br /&gt;In A, 3 is tested for equality against each member of the set, yielding (FALSE, FALSE, TRUE, UNKNOWN). Since one of the elements is TRUE, the condition is TRUE. (It's also possible that some short-circuiting takes place here, so it actually stops as soon as it hits the first TRUE and never evaluates 3=NULL.)&lt;br /&gt;In B, I think it is evaluating the condition as NOT (3 in (1,2,null)). Testing 3 for equality against the set yields (FALSE, FALSE, UNKNOWN), which is aggregated to UNKNOWN. NOT ( UNKNOWN ) yields UNKNOWN. So overall the truth of the condition is unknown, which at the end is essentially treated as FALSE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5676957293955979073?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5676957293955979073/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5676957293955979073' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5676957293955979073'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5676957293955979073'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/sql-not-in-constraint-and-null-values.html' title='SQL NOT IN Constraint and NULL values'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-9149860075178145453</id><published>2008-10-03T05:51:00.000-07:00</published><updated>2008-10-03T05:53:03.564-07:00</updated><title type='text'>Line Break In Dynamic SQL</title><content type='html'>While writting dynamic sql you might get into situation where you want to separate the code in next line. For that purpose use&lt;br /&gt;&lt;br /&gt;Char(13) + char(10)  and this is will give a line break in the code you are writing in dynamic sql.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-9149860075178145453?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/9149860075178145453/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=9149860075178145453' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9149860075178145453'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/9149860075178145453'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/line-break-in-dynamic-sql.html' title='Line Break In Dynamic SQL'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5794308407492306523</id><published>2008-10-02T06:38:00.000-07:00</published><updated>2008-10-02T06:39:20.934-07:00</updated><title type='text'>Error while importing from Flat File</title><content type='html'>Sometime while importing the data from Text file to SQL Server 2005 table we keep getting the below error and the same data can be imported to SQL Server 2000 without any issue.&lt;br /&gt;"Error 0xc02020a1: Data Flow Task: Data conversion failed. The data conversion for column "FRDNAME" returned status value 4 and status text "Text was truncated or one or more characters had no match in the target code page.".(SQL Server Import and Export Wizard)"&lt;br /&gt;Initially i was also convinced that this is definitly a bug in SQL Server 2005. But i was wrong. The reason why SQL gives this error is because Flat File defaults initially all the columns to Characters with length of 50.And if your data length in column is more than 50 you get this error.&lt;br /&gt;The easy fix for this issue is.&lt;br /&gt;While you select the text file as data source go to "Advanced" tab and Set the size of the column length to be according to what you want.&lt;br /&gt;And you are all set.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5794308407492306523?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5794308407492306523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5794308407492306523' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5794308407492306523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5794308407492306523'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/10/error-while-importing-from-flat-file.html' title='Error while importing from Flat File'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-2198292417158258026</id><published>2008-09-26T18:24:00.000-07:00</published><updated>2008-09-26T18:53:33.656-07:00</updated><title type='text'>Shrink DB Size</title><content type='html'>Many times we delete/truncate the data from database but database does not release the space to system after that. In that case DBCC ShrinkDatabase and DBCC ShrinkFile can be usefull.&lt;br /&gt;&lt;br /&gt;This is something important information about DBCC ShrinkDatabase.&lt;br /&gt;&lt;br /&gt;"The NOTRUNCATE option, with or without specifying target_percent, performs the actual data movement operations of DBCC SHRINKDATABASE including the movement of allocated pages from the end of a file to unallocated pages in the front of the file. However, the free space at the end of the file is not returned to the operating system and the physical size of the file does not change. Therefore, data files appear not to shrink when the NOTRUNCATE option is specified.The TRUNCATEONLY option reclaims all free space at the end of the file to the operating system. However, TRUNCATEONLY does not perform any page movement inside the file or files. The specified file is shrunk only to the last allocated extent. target_percent is ignored if specified with the TRUNCATEONLY option."&lt;br /&gt;&lt;br /&gt;Personally i would prefer DBCC ShrinkFile and Shrink each file (mdf/ldf) separatly.&lt;br /&gt;&lt;br /&gt;If you have very big database then do it off peak times.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-2198292417158258026?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/2198292417158258026/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=2198292417158258026' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2198292417158258026'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/2198292417158258026'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/09/shrink-db-size.html' title='Shrink DB Size'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-143717793644418737</id><published>2008-08-11T17:45:00.000-07:00</published><updated>2008-08-11T17:46:39.587-07:00</updated><title type='text'>SSIS: Create File Connection</title><content type='html'>·         Right click anywhere in the Connection Managers pane.&lt;br /&gt;·         In the Types list select File and click ADD.&lt;br /&gt;·         In Usage type section select the appropriate option from the dropdown.&lt;br /&gt;           **  If Create File is selected then new file will be created to the specified location with the given name.&lt;br /&gt;·         Click browse and select the location for the file.&lt;br /&gt;·         Click OK.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-143717793644418737?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/143717793644418737/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=143717793644418737' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/143717793644418737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/143717793644418737'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/08/ssis-create-file-connection.html' title='SSIS: Create File Connection'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5379410257865211327</id><published>2008-08-11T17:37:00.000-07:00</published><updated>2008-08-11T17:38:31.387-07:00</updated><title type='text'>SSIS: Create SMTP (Mail Server) Connection</title><content type='html'>·         Right click anywhere in the Connection Managers pane.&lt;br /&gt;·         In the Type select SMTP and then click ADD.&lt;br /&gt;·         Provide suitable name to the connection.&lt;br /&gt;·         Enter the name of the SMTP server.&lt;br /&gt;·         Select suitable option for Windows Authentication and Enable SSL.&lt;br /&gt;·         Click OK.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5379410257865211327?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5379410257865211327/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5379410257865211327' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5379410257865211327'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5379410257865211327'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/08/ssis-create-smtp-mail-server-connection.html' title='SSIS: Create SMTP (Mail Server) Connection'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-8482635686549830393</id><published>2008-08-11T17:20:00.000-07:00</published><updated>2008-08-11T17:25:09.649-07:00</updated><title type='text'>SSIS: Creating Data Source</title><content type='html'>·         Right click data sources and select New Data Source.&lt;br /&gt;·         Click on New.&lt;br /&gt;·         In provider dropdown select Microsoft OLEDB Provider for SQL Server or suitable connection provider according to your data source.&lt;br /&gt;·         Enter the server credentials.&lt;br /&gt;·         Click on Test Connection to verify the connection.&lt;br /&gt;·         Click OK.&lt;br /&gt;·         Hit Next.&lt;br /&gt;·         In Data Source Name give proper name to your data source connection and verify the connection string in preview box.&lt;br /&gt;·         Click Finish.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-8482635686549830393?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/8482635686549830393/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=8482635686549830393' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8482635686549830393'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/8482635686549830393'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/08/ssis-creating-data-source.html' title='SSIS: Creating Data Source'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-7961140456954938639</id><published>2008-07-29T09:14:00.001-07:00</published><updated>2008-07-29T09:20:52.538-07:00</updated><title type='text'>Quotes</title><content type='html'>When i read about the evils of drinking, i gave up reading.&lt;br /&gt;&lt;br /&gt;To achieve the impossible dream, try going to sleep.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-7961140456954938639?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/7961140456954938639/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=7961140456954938639' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7961140456954938639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/7961140456954938639'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/07/quotes.html' title='Quotes'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6158710103092120171.post-5390038867196696231</id><published>2008-07-28T13:39:00.001-07:00</published><updated>2008-07-28T13:39:47.413-07:00</updated><title type='text'>SQL Server Reports (Coming Soon)</title><content type='html'>SQL Server Reports (Coming Soon)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6158710103092120171-5390038867196696231?l=sqlshare.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://sqlshare.blogspot.com/feeds/5390038867196696231/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6158710103092120171&amp;postID=5390038867196696231' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5390038867196696231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6158710103092120171/posts/default/5390038867196696231'/><link rel='alternate' type='text/html' href='http://sqlshare.blogspot.com/2008/07/sql-server-reports-coming-soon.html' title='SQL Server Reports (Coming Soon)'/><author><name>SQL Learner</name><uri>http://www.blogger.com/profile/14854666824542224484</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
