<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3514276913665608115</id><updated>2023-11-15T05:25:10.942-08:00</updated><category term="Microsoft SQL Server"/><category term="SQL Server 2008"/><category term="SQL Server 2008 R2"/><category term="Database"/><category term="DB Articles"/><category term="SQL Scripts"/><category term="General"/><category term="http://sqldbpool.com/"/><category term="MySQL"/><category term="SQL Server 2011 (Denali)"/><category term="Jugal Shah"/><category term="Networking"/><category term="SQL Server 2005"/><category term="Oracle"/><category term="Script"/><category term="Jshah"/><category term="Oracle Interview Questions"/><category term="Windows OS"/><category term="Activity Monitor"/><category term="Cluster"/><category term="DBA Roles and Responsibilities"/><category term="DBCC Shrinkfile"/><category term="Database Mirroring"/><category term="Database Performance"/><category term="Errors"/><category term="INNODB"/><category term="Login Issue"/><category term="Networking Interview Questions"/><category term="Performance Tuning"/><category term="Policy Based Management"/><category term="SQL Server"/><category term="SQL Server 2005 Interview Questions and Answers"/><category term="SQL Server 2005 Replication"/><category term="SQL Server 2005 Security"/><category term="SQL Server Interivew Questions"/><category term="SQL Server Interview Questions"/><category term="SQL Server Management Studio"/><category term="SSMS"/><category term="Surface Area Configuration"/><category term="jshah143"/><category term=".NET INTEGRATION WITH SQL SERVER 2005"/><category term=".Net"/><category term=".TUF"/><category term="2000"/><category term="2005"/><category term="2005 security interview questions"/><category term="2008 Remote connection issue"/><category term="ALLOW_SNAPSHOT_ISOLATION"/><category term="Active-Passive Cluster installation"/><category term="Advantage and Disadvantage of MySQL table types"/><category term="Assembly"/><category term="Authentication Scheme"/><category term="Backup Options"/><category term="Blocking in SQL Server"/><category term="Bound Connections"/><category term="CLR"/><category term="CMS"/><category term="CPU bottleneck"/><category term="CTE"/><category term="Calculate Available DB Size"/><category term="Calculate DB Size"/><category term="Central Management Server"/><category term="Change Log File Size"/><category term="Check CLR status"/><category term="Cluster Installation"/><category term="Codd&#39;s rule"/><category term="Collation"/><category term="Concurrency Control"/><category term="Conditions"/><category term="Create Alias"/><category term="DB Access Mode"/><category term="DBA Daily Activities"/><category term="DBA Duties"/><category term="DBA Tasks"/><category term="DBCC PAGE"/><category term="DBCC TRACEOFF"/><category term="DBCC TRACEON"/><category term="DBCC TRACESTATUS"/><category term="DBMS"/><category term="DCL"/><category term="DDL"/><category term="DHCP"/><category term="DMFs"/><category term="DML"/><category term="DMVs"/><category term="DNS"/><category term="DSPL"/><category term="Data Mart"/><category term="Data Modeling"/><category term="Data Page LSN"/><category term="Data Warehouse"/><category term="Database Architecture"/><category term="Database Coding Standars"/><category term="Database Coding Tips"/><category term="Database Concepts"/><category term="Database Mail using stored procedure in SQL Server 2005"/><category term="Database Properties"/><category term="Database Single User Mode"/><category term="Database Snapshot"/><category term="Database Trace Flags"/><category term="Database in Use"/><category term="Database restore history"/><category term="Databse Terminology"/><category term="Deadlock"/><category term="Denormalization"/><category term="Dimension"/><category term="Dimension Modeling"/><category term="Disconnect Users"/><category term="Disk Space Alert mails"/><category term="Do&#39;s and Don&#39;t in SQL Server"/><category term="Dowload SQL Server 2005 or SQL Server 2008 Samples"/><category term="Download Adventureworks database"/><category term="Download Sample Database AdventureWorks"/><category term="Drop DB Connections"/><category term="E-R Diagram"/><category term="Emergency Mode"/><category term="Error"/><category term="Error 18456"/><category term="Error Messages"/><category term="Exception Handling"/><category term="Execute As"/><category term="Execute Dos commands"/><category term="Execution Plan"/><category term="Extended Procedures"/><category term="Extent and Pages"/><category term="Facets"/><category term="Fact"/><category term="Features"/><category term="Fragmentation"/><category term="GIS"/><category term="GIS DataTypes in SQL Server 2008"/><category term="GO keyword"/><category term="Get Exclusive Connection DB"/><category term="Global.asax"/><category term="How to change sql server instance  name"/><category term="How to setup the Active-Passive Replication"/><category term="How to troubleshoot blocking"/><category term="Hyper-Threading"/><category term="IIS"/><category term="Import Export Registered Servers in SSMS"/><category term="Improve TempDB performance"/><category term="Index Covering in SQL Server"/><category term="Index Rebuild"/><category term="India Won ICC Cricket World Cup Trophy"/><category term="Integrated Security"/><category term="Isolation Levels"/><category term="Java Interview Questions"/><category term="Kerberos"/><category term="Locking Architecture"/><category term="Locking Granuality"/><category term="Log Sequence Number"/><category term="Log Shipping Permission"/><category term="Log Shipping Requirements"/><category term="Log-Shipping"/><category term="Logon Issues"/><category term="Logshipping"/><category term="Love you India"/><category term="MSDB"/><category term="MSQL_XP"/><category term="MSSQL Database Certification"/><category term="MSSQL2005"/><category term="MVP"/><category term="MVP Award"/><category term="MYISAM"/><category term="MYSQL Table Types"/><category term="Master"/><category term="Memcached"/><category term="Microsoft SQL Server Certification Links"/><category term="Min Max Memory Configuration in SQL Server"/><category term="Model"/><category term="Move Cluster Node"/><category term="Mutiversion Concurrency"/><category term="MySQL Architecture"/><category term="MySQL Backup"/><category term="MySQL Interview Questions"/><category term="MySQL Optimization"/><category term="MySQL Performance amp; Tuning"/><category term="MySQL Replication"/><category term="MySQL Restore"/><category term="MySQL and Linux Commands"/><category term="MySQLDUMP"/><category term="NTLM"/><category term="Natural Key"/><category term="Network Troubleshooting Dos Commands"/><category term="Netwroking Terms"/><category term="Normalization"/><category term="Nvarchar"/><category term="Nvarchar(Max)"/><category term="ODS"/><category term="OLAP"/><category term="OLTP"/><category term="OSI Model"/><category term="OSQL"/><category term="Online"/><category term="Open Systems Interconnection"/><category term="Operating System"/><category term="Operating System Error 112"/><category term="Orphaned User"/><category term="PORT"/><category term="Page Splits"/><category term="Peer-to-peer transactional replication"/><category term="Performance Monitor Counter using SSMS"/><category term="Pivot"/><category term="Points to Study to be SQL DBA"/><category term="Prerequisites for service pack installation"/><category term="Primary Key in MySQL"/><category term="Proud to be an Indian"/><category term="RDBMS"/><category term="READ_COMMITTED_SNAPSHOT"/><category term="Rank functions"/><category term="Ranking function Rank()"/><category term="Read Error Log"/><category term="Read Transaction Log Data"/><category term="Reclaim Space"/><category term="Recover MySQL Root Password"/><category term="Remove SQL Server Service"/><category term="Replication Error Messages"/><category term="Replication Setup MySQL 5.0"/><category term="ReportServer"/><category term="ReportServerTempDB"/><category term="Republic Day"/><category term="Resource"/><category term="Resource Governor in SQL Server 2008"/><category term="Restore Headeronly"/><category term="Restore db to lower version"/><category term="Retrieve Current Date Time in SQL Server"/><category term="RollBack Options"/><category term="Row Versioning"/><category term="RowNumber"/><category term="SAND BOX"/><category term="SERVERPROPERTY(&#39;ErrorLogFileName&#39;)"/><category term="SPN"/><category term="SP_Rename"/><category term="SQL Complete"/><category term="SQL Injections"/><category term="SQL Profiler"/><category term="SQL Security Issue"/><category term="SQL Server 2000"/><category term="SQL Server 2000 Query Analyzer Shortcut"/><category term="SQL Server 2005 Database Mirroring"/><category term="SQL Server 2005 Editions"/><category term="SQL Server 2005 Schema"/><category term="SQL Server 2005 Server-Level Fixed Roles"/><category term="SQL Server 2008 Cluster Installation"/><category term="SQL Server 2008 Compression"/><category term="SQL Server 2008 Interivew Questions"/><category term="SQL Server 2008 R2 System Views Map"/><category term="SQL Server 2008 Sparse column"/><category term="SQL Server 6.5 troubleshooting"/><category term="SQL Server Connection Error"/><category term="SQL Server Context SSPI Error"/><category term="SQL Server DBA Checklist"/><category term="SQL Server FAQ"/><category term="SQL Server Fixed Database-Level Roles"/><category term="SQL Server Installation"/><category term="SQL Server Installation Date"/><category term="SQL Server Level Roles"/><category term="SQL Server Protocols"/><category term="SQL Server Security"/><category term="SQL Server Security Interview Questions"/><category term="SQL Server Service Packs and Hotfixes"/><category term="SQL Server Services"/><category term="SQL Server Standard Reports"/><category term="SQL Server Start time"/><category term="SQL Server Startup time"/><category term="SQL Server Versions"/><category term="SQL Server Windows Authentication"/><category term="SQL Server and Oralce"/><category term="SQLBrowser Service"/><category term="SQLPass"/><category term="SQLWB.exe"/><category term="SSMS Startup Options"/><category term="SSMS configuration"/><category term="SSPI"/><category term="Schema Properties"/><category term="Script to create folder using SSMS"/><category term="Secure SA Login"/><category term="Service Pack 3 Installation"/><category term="Service Principle Name"/><category term="Services.msc"/><category term="Setup Log-Shipping"/><category term="Severity 14: Login Failed States"/><category term="Shrink Database file"/><category term="Sp_validatelogins"/><category term="Split Backup files into multiple files"/><category term="Split brain"/><category term="Stored Procedure"/><category term="Stored Procedure and System Tables"/><category term="Support Service"/><category term="Surrogate Key"/><category term="Sybase"/><category term="System Databases in SQL Server 2005"/><category term="System Stored Procedure List"/><category term="T-SQL"/><category term="T-SQL Script"/><category term="TCL"/><category term="Table Locking enhancement"/><category term="Tail Log Backup"/><category term="Targets"/><category term="Third Party Tool Review"/><category term="Tips for SQL Server Developer"/><category term="Tips for the DeadLock"/><category term="Top Features in SQL 2008"/><category term="Trace Flag 3226"/><category term="Transaction Handling"/><category term="Transaction Log Backup"/><category term="Transaction Log LSN"/><category term="Transaction Undo file"/><category term="Trigger"/><category term="Troubleshooting Suspect database"/><category term="Try catch"/><category term="Types of DBA"/><category term="UDP"/><category term="Unpivot"/><category term="Update Statistics Date"/><category term="Update Statistics Script"/><category term="VIEW DEFINITION"/><category term="VarBinary(Max) Data Types"/><category term="Varchar"/><category term="Views"/><category term="WINS"/><category term="communication skills"/><category term="database Compatibility"/><category term="database mail"/><category term="delete .tmp and.bak files"/><category term="exception handling in sql server"/><category term="execute batch file with parameter"/><category term="fn_trace_gettable"/><category term="geographic information system"/><category term="how to be DBA?"/><category term="install service pack"/><category term="linked server"/><category term="litespeed"/><category term="log_reuse_wait_desc"/><category term="move database files"/><category term="output clause"/><category term="permission to read procedure text"/><category term="quest"/><category term="replication"/><category term="service status check"/><category term="sp_procoption"/><category term="spt_values system table"/><category term="sys.SP_SpaceUsed"/><category term="sys.SysObjects"/><category term="sys.dm_clr_properties"/><category term="sys.dm_io_cluster_shared_drives"/><category term="sys.dm_os_cluster_nodes"/><category term="sys.dm_os_schedulers"/><category term="transfer logins from sql server 7.0"/><category term="varchar(MAX)"/><category term="verify backup"/><category term="xp_enumgroups"/><category term="xp_servicecontrol"/><title type='text'>MSSQL and MySQL KB Articles</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>268</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-5253218958782657613</id><published>2011-04-08T04:34:00.000-07:00</published><updated>2011-04-10T21:44:49.082-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><category scheme="http://www.blogger.com/atom/ns#" term="SSMS"/><title type='text'>Change Setting for Recently Used Files in SSMS</title><content type='html'>Check  it out on &lt;a href=&quot;http://www.mssqltips.com/tip.asp?tip=2331&quot; target=&quot;_blank&quot;&gt;http://www.mssqltips.com/tip.asp?tip=2331&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/5253218958782657613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/change-setting-for-recently-used-files.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5253218958782657613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5253218958782657613'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/change-setting-for-recently-used-files.html' title='Change Setting for Recently Used Files in SSMS'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-6378455645248618505</id><published>2011-04-05T23:51:00.000-07:00</published><updated>2011-04-10T21:44:49.088-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><title type='text'>Again Awarded as SQL Server MVP</title><content type='html'>Dear All,&lt;br/&gt;&lt;br/&gt;I am again awarded as SQL Server MVP. Keep reading!!! Post Comments!! and give me your suggestion.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/04/mvp.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1258&quot; title=&quot;MVP&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/04/mvp.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;440&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Thanks,&lt;br/&gt;&lt;br/&gt;Jugal Shah</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/6378455645248618505/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/again-awarded-as-sql-server-mvp.html#comment-form' title='7 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6378455645248618505'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6378455645248618505'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/again-awarded-as-sql-server-mvp.html' title='Again Awarded as SQL Server MVP'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>7</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-790278714438103869</id><published>2011-04-05T04:02:00.000-07:00</published><updated>2011-04-10T21:44:49.097-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><title type='text'>How to be DBA?</title><content type='html'>Dear Readers,&lt;br/&gt;&lt;br/&gt;I have added a new page to SQLDBPool.com which will guide you for your DBA career.&lt;br/&gt;&lt;br/&gt;You can post your comments or DBA Career related question on that page.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/04/header.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1230&quot; title=&quot;Header&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/04/header.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;34&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Thanks, Jugal Shah</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/790278714438103869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/how-to-be-dba.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/790278714438103869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/790278714438103869'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/how-to-be-dba.html' title='How to be DBA?'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-902980380108649644</id><published>2011-04-04T09:55:00.000-07:00</published><updated>2011-04-10T21:44:49.104-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term=".TUF"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Transaction Undo file"/><title type='text'>What is .TUF file in Log Shipping?</title><content type='html'>TUF file is a &lt;strong&gt;Microsoft SQL Server Transaction Undo file.&lt;/strong&gt; .TUF File contains the information regarding any modifications that were made as part of incomplete transactions at the time the backup was performed. &lt;br/&gt;&lt;br/&gt;A transaction undo(.TUF) file is required if a database is loaded in read-only state. In this state, further transaction log backups may be applied.</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/902980380108649644/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/what-is-tuf-file-in-log-shipping.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/902980380108649644'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/902980380108649644'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/what-is-tuf-file-in-log-shipping.html' title='What is .TUF file in Log Shipping?'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-1332702583676437276</id><published>2011-04-04T00:36:00.000-07:00</published><updated>2011-04-10T21:44:49.107-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DBA Roles and Responsibilities"/><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="how to be DBA?"/><category scheme="http://www.blogger.com/atom/ns#" term="Points to Study to be SQL DBA"/><title type='text'>How to be SQL DBA?</title><content type='html'>&lt;object height=&quot;350&quot; width=&quot;425&quot;&gt;&lt;br/&gt;      &lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/EjJWkdm5FJU&quot;&gt;&lt;br/&gt;      &lt;param name=&quot;wmode&quot; value=&quot;transparent&quot;&gt;&lt;br/&gt;      &lt;embed src=&quot;http://www.youtube.com/v/EjJWkdm5FJU;rel=0&quot; type=&quot;application/x-shockwave-flash&quot; wmode=&quot;transparent&quot; height=&quot;350&quot; width=&quot;425&quot;&gt;&lt;br/&gt;      &lt;/object&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/1332702583676437276/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/how-to-be-sql-dba.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1332702583676437276'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1332702583676437276'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/how-to-be-sql-dba.html' title='How to be SQL DBA?'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-9215070986146602576</id><published>2011-04-02T11:08:00.000-07:00</published><updated>2011-04-10T21:44:49.109-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="India Won ICC Cricket World Cup Trophy"/><category scheme="http://www.blogger.com/atom/ns#" term="Love you India"/><category scheme="http://www.blogger.com/atom/ns#" term="Proud to be an Indian"/><title type='text'>India Won ICC Cricket World Cup Trophy</title><content type='html'>&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/04/1299652550902.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1202&quot; title=&quot;1299652550902&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/04/1299652550902.jpg&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;753&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/04/team-india-world-cup-finals.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1203&quot; title=&quot;team-india-world-cup-finals&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/04/team-india-world-cup-finals.jpg&quot; alt=&quot;&quot; width=&quot;600&quot; height=&quot;385&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/9215070986146602576/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/04/india-won-icc-cricket-world-cup-trophy.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/9215070986146602576'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/9215070986146602576'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/04/india-won-icc-cricket-world-cup-trophy.html' title='India Won ICC Cricket World Cup Trophy'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-2868914740830761514</id><published>2011-03-29T05:24:00.000-07:00</published><updated>2011-04-10T21:44:49.114-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><title type='text'>Script to Monitor the progress of ALTER, Backup, Restore, DBCC,&#xa;Rollback and TDE commands</title><content type='html'>&lt;div&gt;&lt;span style=&quot;font-family:Courier New;font-size:10pt;&quot;&gt;We can monitor the progress of below commands in percentage by executing the query agianst &lt;span style=&quot;color:#800000;&quot;&gt;&lt;strong&gt;sys.dm_exec_requests &lt;/strong&gt;&lt;/span&gt;DMV. For that you must have view server state permission.&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;ALTER INDEX REORGANIZE&lt;br/&gt;AUTO_SHRINK option with ALTER DATABASE&lt;br/&gt;BACKUP DATABASE&lt;br/&gt;DBCC CHECKDB&lt;br/&gt;DBCC CHECKFILEGROUP&lt;br/&gt;DBCC CHECKTABLE&lt;br/&gt;DBCC INDEXDEFRAG&lt;br/&gt;DBCC SHRINKDATABASE&lt;br/&gt;DBCC SHRINKFILE&lt;br/&gt;RECOVERY&lt;br/&gt;RESTORE DATABASE,&lt;br/&gt;ROLLBACK&lt;br/&gt;TDE ENCRYPTION&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;session_id&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;&lt;br/&gt;       &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;status&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;&lt;br/&gt;       &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;start_time&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;&lt;br/&gt;       &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;command&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;&lt;br/&gt;       &lt;span style=&quot;color:#800000;&quot;&gt;dmt&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;TEXT&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;&lt;br/&gt;       &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;percent_complete&lt;/span&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;FROM&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dm_exec_requests&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;  &lt;span style=&quot;color:#0000ff;&quot;&gt;CROSS&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;APPLY&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#ff0080;&quot;&gt;&lt;strong&gt;Dm_exec_sql_text&lt;/strong&gt;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;sql_handle&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;)&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;dmt &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;WHERE&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;dmr&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;command&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;IN&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;ALTER&#39;&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;Backup&#39;&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;Restore&#39;&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;DBCC&#39;&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt; &lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;Rollback&#39;&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;,&lt;/span&gt;  &lt;span style=&quot;color:#ff0000;&quot;&gt;&#39;TDE&#39;&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;)&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/2868914740830761514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/script-to-monitor-progress-of-alter.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/2868914740830761514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/2868914740830761514'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/script-to-monitor-progress-of-alter.html' title='Script to Monitor the progress of ALTER, Backup, Restore, DBCC,&#xa;Rollback and TDE commands'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-8734851656977910606</id><published>2011-03-28T07:47:00.000-07:00</published><updated>2011-04-10T21:44:49.119-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Installation Date"/><title type='text'>How to Check When SQL Server was installed?</title><content type='html'>&lt;strong&gt;NT AUTHORITY\SYSTEM&lt;/strong&gt; login gets created when we install SQL Server. By querying &lt;strong&gt;sys.syslogins&lt;/strong&gt;, we would get an idea of the SQL Server Installation date time.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;font-size:x-medium;font-family:Courier New;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;createdate&lt;/span&gt; &lt;span style=&quot;color:#0000ff;&quot;&gt;AS&lt;/span&gt; &lt;span style=&quot;color:#800000;&quot;&gt;sql_server_install_date &lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color:#800000;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;syslogins &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color:#800000;&quot;&gt;sid&lt;/span&gt; &lt;span style=&quot;color:#c0c0c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;0x010100000000000512000000&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;SELECT&lt;/span&gt; &lt;span style=&quot;color:#c0c0c0;&quot;&gt;* &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;FROM&lt;/span&gt;   &lt;span style=&quot;color:#800000;&quot;&gt;sys&lt;/span&gt;&lt;span style=&quot;color:#c0c0c0;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;color:#800000;&quot;&gt;syslogins &lt;/span&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;WHERE&lt;/span&gt;  &lt;span style=&quot;color:#800000;&quot;&gt;sid&lt;/span&gt; &lt;span style=&quot;color:#c0c0c0;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:#000000;&quot;&gt;0x010100000000000512000000&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/8734851656977910606/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/how-to-check-when-sql-server-was.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8734851656977910606'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8734851656977910606'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/how-to-check-when-sql-server-was.html' title='How to Check When SQL Server was installed?'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-3714622204608839305</id><published>2011-03-28T07:38:00.000-07:00</published><updated>2011-04-10T21:44:49.127-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="Operating System"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><title type='text'>Dos Command to Check System Properties and Server Reboot time</title><content type='html'>Many times we would like to check OS information and boot time. We can check the  operating system properties and reboot time by executing systeminfo command from dos prompt.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;C:\&amp;gt;systeminfo&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image111.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1189&quot; title=&quot;image1&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image111.jpg&quot; alt=&quot;&quot; width=&quot;567&quot; height=&quot;169&quot; /&gt;&lt;/a&gt;&lt;/strong&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/3714622204608839305/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/dos-command-to-check-system-properties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/3714622204608839305'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/3714622204608839305'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/dos-command-to-check-system-properties.html' title='Dos Command to Check System Properties and Server Reboot time'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-6904857485439782593</id><published>2011-03-26T11:48:00.000-07:00</published><updated>2011-04-10T21:44:49.134-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><category scheme="http://www.blogger.com/atom/ns#" term="Update Statistics Script"/><title type='text'>Script to Update Statistics by passing database name</title><content type='html'>&lt;span style=&quot;font-family:Courier New;font-size:x-medium;&quot;&gt;You can use below script to update the statistics with the FULL Scan. You can pass the database name in below script, I have given &lt;strong&gt;JShah &lt;/strong&gt;as database name.&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;font-family:Courier New;font-size:x-medium;&quot;&gt;&lt;br/&gt;&lt;span style=&quot;color:blue;&quot;&gt;EXEC&lt;/span&gt; &lt;span style=&quot;color:#ff0080;&quot;&gt;&lt;strong&gt;Sp_msforeachdb&lt;/strong&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style=&quot;color:#8000ff;&quot;&gt;@command1&lt;/span&gt;&lt;span style=&quot;color:silver;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:red;&quot;&gt;&#39;IF &#39;&#39;#&#39;&#39; IN (&#39;&#39;JShah&#39;&#39;) BEGIN PRINT &#39;&#39;#&#39;&#39;;&lt;br/&gt;EXEC #.dbo.sp_msForEachTable &#39;&#39;UPDATE STATISTICS ? WITH FULLSCAN&#39;&#39;, @command2=&#39;&#39;PRINT CONVERT(VARCHAR, GETDATE(), 9) + &#39;&#39;&#39;&#39; - ? Stats Updated&#39;&#39;&#39;&#39;&#39;&#39; END&#39;&lt;/span&gt;&lt;br/&gt;&lt;span style=&quot;color:silver;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#8000ff;&quot;&gt;@replaceChar&lt;/span&gt; &lt;span style=&quot;color:silver;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;&#39;#&#39;&lt;/span&gt;&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;You can use below script to update the statistics with the SAMPLE Percent agrument. You can pass the database name in below script, I have given &lt;strong&gt;JShah &lt;/strong&gt;as database name.&lt;br/&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:blue;&quot;&gt;EXEC&lt;/span&gt; &lt;span style=&quot;color:#ff0080;&quot;&gt;&lt;strong&gt;Sp_msforeachdb&lt;/strong&gt;&lt;/span&gt;&lt;br/&gt;&lt;span style=&quot;color:#8000ff;&quot;&gt;@command1&lt;/span&gt;&lt;span style=&quot;color:silver;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color:red;&quot;&gt;&#39;IF &#39;&#39;#&#39;&#39; IN (&#39;&#39;JShah&#39;&#39;) BEGIN PRINT &#39;&#39;#&#39;&#39;;&lt;br/&gt;EXEC #.dbo.sp_msForEachTable &#39;&#39;UPDATE STATISTICS ? WITH SAMPLE 50 PERCENT&#39;&#39;, @command2=&#39;&#39;PRINT CONVERT(VARCHAR, GETDATE(), 9) + &#39;&#39;&#39;&#39; - ? Stats Updated&#39;&#39;&#39;&#39;&#39;&#39; END&#39;&lt;/span&gt;&lt;br/&gt;&lt;span style=&quot;color:silver;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;color:#8000ff;&quot;&gt;@replaceChar&lt;/span&gt; &lt;span style=&quot;color:silver;&quot;&gt;=&lt;/span&gt; &lt;span style=&quot;color:red;&quot;&gt;&#39;#&#39;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/6904857485439782593/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/script-to-update-statistics-by-passing.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6904857485439782593'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6904857485439782593'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/script-to-update-statistics-by-passing.html' title='Script to Update Statistics by passing database name'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-4490796128516454759</id><published>2011-03-21T03:03:00.000-07:00</published><updated>2011-04-10T21:44:49.140-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><title type='text'>Resolving could not open a connection to SQL Server errors</title><content type='html'>&lt;h2&gt;Problem&lt;/h2&gt;&lt;br/&gt;Sometimes you may have issues connecting to SQL Server and you may get messages such as the following:&lt;br/&gt;&lt;div&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;ERROR: (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error:) An error has occurred while establishing a connection to the server. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 5)&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Or&lt;br/&gt;&lt;div&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 – Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 1326)&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;Or&lt;br/&gt;&lt;div&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;A network-related error or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible.  Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: TCP Provider, error: 0 – No such host is known.) (Microsoft SQL Server, Error: 11001)&lt;/span&gt;&lt;/div&gt;&lt;br/&gt;&lt;h3 style=&quot;text-align:center;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;a href=&quot;http://www.mssqltips.com/tip.asp?tip=2340&quot; target=&quot;_blank&quot;&gt;http://www.mssqltips.com/tip.asp?tip=2340&lt;/a&gt;&lt;/span&gt;&lt;/h3&gt;&lt;br/&gt;&lt;h1 style=&quot;text-align:center;&quot;&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;a title=&quot;SQLDBPool.com&quot; href=&quot;http://www.mssqltips.com/tip.asp?tip=2340&quot; target=&quot;_blank&quot;&gt;Click Me for Solution&lt;/a&gt;&lt;/span&gt;&lt;/h1&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/4490796128516454759/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/resolving-could-not-open-connection-to.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/4490796128516454759'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/4490796128516454759'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/resolving-could-not-open-connection-to.html' title='Resolving could not open a connection to SQL Server errors'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-1031643776900402092</id><published>2011-03-18T07:35:00.000-07:00</published><updated>2011-04-10T21:44:49.146-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="DB Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="permission to read procedure text"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><category scheme="http://www.blogger.com/atom/ns#" term="VIEW DEFINITION"/><title type='text'>Msg 15009, Level 16, State 1, Procedure sp_help, sp_helptext or&#xa;object_definition()</title><content type='html'>Whenever user has in-sufficient permission and he is executing &lt;strong&gt;sp_help, sp_helptext or the object_definition function&lt;/strong&gt;, user will get the below error message. This error occurs because user doesn’t have have permissions to the see the object metadata.&lt;br/&gt;&lt;br/&gt;EXEC sp_helptext sp_indexdefrag&lt;br/&gt;&lt;span style=&quot;color:#ff0000;&quot;&gt;Msg 15009, Level 16, State 1, Procedure sp_helptext&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;To fix the issue we have to grant the VIEW DEFINITION permission to user.&lt;br/&gt;We can turn on the View Definition permission on all databases for all the users having public role using below code.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;USE&lt;/span&gt; master&lt;br/&gt;GO&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;GRANT VIEW&lt;/span&gt; ANY DEFINITION &lt;span style=&quot;color:#0000ff;&quot;&gt;TO PUBLIC&lt;/span&gt;&lt;br/&gt;&lt;br/&gt;We can turn on the View Definition permission on all databases for the user Jugal using below query.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;strong&gt;USE&lt;/strong&gt;&lt;/span&gt; master&lt;br/&gt;GO&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;GRANT VIEW ANY DEFINITION &lt;/span&gt;TO Jugal&lt;br/&gt;&lt;br/&gt;We can turn on the View Definition permission on SQLDBPOOL for the user Jugal using below query.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;USE &lt;/span&gt;SQLDBPOOL&lt;br/&gt;GO&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;GRANT VIEW DEFINITION TO&lt;/span&gt; Jugal</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/1031643776900402092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/msg-15009-level-16-state-1-procedure.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1031643776900402092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1031643776900402092'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/msg-15009-level-16-state-1-procedure.html' title='Msg 15009, Level 16, State 1, Procedure sp_help, sp_helptext or&#xa;object_definition()'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-1278428399220927459</id><published>2011-03-15T04:11:00.000-07:00</published><updated>2011-04-10T21:44:49.148-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Replication Error Messages"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><title type='text'>Replication Error Message Number and Description</title><content type='html'>Check out &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/cc645609.aspx&quot; target=&quot;_blank&quot;&gt;http://msdn.microsoft.com/en-us/library/cc645609.aspx&lt;/a&gt; for replication error message.</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/1278428399220927459/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/replication-error-message-number-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1278428399220927459'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1278428399220927459'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/replication-error-message-number-and.html' title='Replication Error Message Number and Description'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-5427754290110855229</id><published>2011-03-14T08:27:00.000-07:00</published><updated>2011-04-10T21:44:49.150-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="General"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Complete"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><category scheme="http://www.blogger.com/atom/ns#" term="Third Party Tool Review"/><title type='text'>Doing a lot of SQL coding - Try SQL Complete</title><content type='html'>Are you doing a lot of SQL coding every day and looking devouringly at every tool offering replacement of the native SSMS IntelliSense available only for SQL Server 2008? Then don&#39;t miss Devart &lt;a href=&quot;http://www.devart.com/dbforge/sql/sqlcomplete/&quot; target=&quot;_blank&quot;&gt;dbForge SQL Complete &lt;/a&gt;while you are seeking an assistant to do the boring part of your work that should have been automated and simplified long ago.&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;strong&gt;General Information&lt;/strong&gt;&lt;/span&gt;&lt;br/&gt;The tool is available in two editions:&lt;br/&gt;&lt;em&gt;&lt;strong&gt;Express&lt;/strong&gt;&lt;/em&gt; - a free edition providing basic functionality to complete and format SQL code.&lt;br/&gt;&lt;em&gt;&lt;strong&gt;Standard&lt;/strong&gt;&lt;/em&gt; - fully-featured edition providing all necessary functionality for completing and formatting T-SQL code.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;30-day trial period&lt;/strong&gt; available for Standard Edition should be enough for anyone to test all product features and check if it meets one&#39;s requirements.&lt;br/&gt;&lt;br/&gt;During evaluation and usage, you can submit requests and suggestions to the tool&#39;s support team. Besides, you can take part in creating its development roadmap at &lt;a href=&quot;http://devart.uservoice.com/forums/87893-dbforge-sql-complete/&quot; target=&quot;_blank&quot;&gt;UserVoice&lt;/a&gt;.&lt;br/&gt;&lt;h2&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;strong&gt;Features&lt;/strong&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Context-based prompt of different object types&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Context-based prompt of keywords&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Context-based prompt of function parameters&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Word autocompletion&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Automatic filtering of object in the suggestion list&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Context-based sorting of suggestions in the list&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Determining a current database or schema&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Supporting queries to various databases&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Automatic displaying suggestions while typing&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Two ways to insert a suggested word into a query&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Usage of syntax highlight settings for the suggestions list&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Query formatting&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Support of various query types&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Semi-transparent view of the suggestion box&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Inserting columns list on pressing Tab&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Suggesting methods for columns and variables&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Suggesting conditions for JOIN statement&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Automatic alias generation in SELECT statements&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Sorting keywords by relevance&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Quick object info&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Expanding INSERT statements&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Export/Import settings wizard&lt;/li&gt;&lt;br/&gt;&lt;span style=&quot;color:#800000;&quot;&gt;﻿&lt;/span&gt;&lt;/ul&gt;&lt;br/&gt;&lt;h2&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;strong&gt;Review&lt;/strong&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;I chose to install trial of SQL Complete Standard Edition. The installation took several seconds, and the tool and all its options are ready to use and easy to access from the SQL Server Management Studio main menu:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/1_sqlcomplete-menu.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1155&quot; title=&quot;1_SQLComplete-menu&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/1_sqlcomplete-menu.jpg&quot; alt=&quot;&quot; width=&quot;245&quot; height=&quot;287&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;OK, but we will peep into the options later, when we see how the tool actually works and be sure that it&#39;s worth spending time on learning different advanced settings. Now we want to type any query we think of first. This can be as simple as SELECT * FROM:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/2_sort-by-relevance.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1156&quot; title=&quot;2_sort-by-relevance&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/2_sort-by-relevance.jpg&quot; alt=&quot;&quot; width=&quot;276&quot; height=&quot;270&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;What can we see? The tool filtered available suggestions depending on the probability of their usage. This saved me from tedious selecting of the needed word in a list sorted alphabetically (imagine it was the last one in it!) or typing almost the whole word&lt;br/&gt;&lt;br/&gt;Now I&#39;d like to exclude some columns from the table I am working with in this statement. Unfortunately, the “*” symbol is rarely replaced with the columns list by code author. But I found a way to do this quickly and effortlessly using the tool – just pressed Tab, as was written in the hint, and it was all:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/3_expand-asterisk.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1157&quot; title=&quot;3_expand-asterisk&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/3_expand-asterisk.jpg&quot; alt=&quot;&quot; width=&quot;345&quot; height=&quot;141&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Surely, you often have to join tables in queries just as I do. Quite simply, these statements allow combining data in multiple tables to quickly and efficiently process large quantities of data, but often they take too much time to write. There is a feature declaring SQL Complete capability to do such a trick painlessly for the one who is writing code:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/4_join-statement.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1158&quot; title=&quot;4_join-statement&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/4_join-statement.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;149&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;I can say these were positive impressions, and the tool is really worth spending more time for testing. I decided on using some more complicated unformatted query, as the vendor puts emphasis on the tool&#39;s advanced formatting capabilities. Here&#39;s what we&#39;ve got:&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Before:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/5_unformatted-query.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1159&quot; title=&quot;5_unformatted-query&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/5_unformatted-query.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;140&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;After:&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/6_formatted-query.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1160&quot; title=&quot;6_formatted-query&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/6_formatted-query.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;450&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;My query was successfully formatted and is readable now.&lt;br/&gt;&lt;br/&gt;Being able to access essential information on a database object is pretty useful and saves some efforts on looking it up:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/7_object-info.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1161&quot; title=&quot;7_object-info&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/7_object-info.jpg&quot; alt=&quot;&quot; width=&quot;570&quot; height=&quot;559&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;The tool offers quite a lot of formatting options and a wizard for importing and exporting settings – this should be useful for large companies where some standardized T-SQL code formatting is necessary:&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/8_options.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1162&quot; title=&quot;8_options&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/8_options.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;385&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;h2&gt;&lt;span style=&quot;color:#800000;&quot;&gt;&lt;em&gt;&lt;strong&gt;Summary&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;SQL Complete can be used by professionals, amateurs, and everybody who has something to do with writing SQL code. Besides, the price of the fully-featured edition &lt;strong&gt;(less than $50.00), &lt;/strong&gt;availability of the free edition, effective product support provided by its development team make it worth testing seriously when choosing a tool from a number of alternatives offering similar functionality.</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/5427754290110855229/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/doing-lot-of-sql-coding-try-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5427754290110855229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5427754290110855229'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/doing-lot-of-sql-coding-try-sql.html' title='Doing a lot of SQL coding - Try SQL Complete'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-6766044649989927131</id><published>2011-03-11T04:51:00.000-08:00</published><updated>2011-04-10T21:44:49.153-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><title type='text'>Steps to change default value of SELECT (Top 1000) or EDIT(Top 200)&#xa;rows in SSMS 2008</title><content type='html'>﻿As we all aware about the new feature of SQL server 2008, by right clicking any table we can see Select Top 1000 Rows and Edit Top 200 Rows. This feature will give us flexibility to SELECT 1000 rows and EDIT 200 rows just by right click.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image110.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1148&quot; title=&quot;Image1&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image110.jpg&quot; alt=&quot;&quot; width=&quot;332&quot; height=&quot;297&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;em&gt;&lt;strong&gt;Steps to change top Rows:&lt;/strong&gt;&lt;/em&gt;&lt;br/&gt;&lt;strong&gt;Step1 :&lt;/strong&gt; &lt;strong&gt;Go to Tools -- Options --&amp;gt; SQL Server Object Explorer --&amp;gt; Commands&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image21.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1149&quot; title=&quot;Image2&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image21.jpg&quot; alt=&quot;&quot; width=&quot;573&quot; height=&quot;306&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Table and View Options:&lt;/strong&gt;&lt;br/&gt;&lt;strong&gt;Value for Edit Top Rows&lt;/strong&gt; command specifies number of columns to be edited. Default value is 200.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Value for Select Top Rows &lt;/strong&gt;command specifies number of columns to be selected. Default value is 1000.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 2:&lt;/strong&gt; Change Value for Edit Top Rows Command and Value for Select Rows Command per you requirement.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image31.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1150&quot; title=&quot;Image3&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image31.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;358&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Step 3: &lt;/strong&gt;Verify above changes have been made by again right clicking the table.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image41.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1151&quot; title=&quot;Image4&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image41.jpg&quot; alt=&quot;&quot; width=&quot;295&quot; height=&quot;379&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/6766044649989927131/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/steps-to-change-default-value-of-select.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6766044649989927131'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6766044649989927131'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/steps-to-change-default-value-of-select.html' title='Steps to change default value of SELECT (Top 1000) or EDIT(Top 200)&#xa;rows in SSMS 2008'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-4778420282153487332</id><published>2011-03-09T21:49:00.000-08:00</published><updated>2011-04-10T21:44:49.156-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Check CLR status"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><category scheme="http://www.blogger.com/atom/ns#" term="sys.dm_clr_properties"/><title type='text'>sys.dm_clr_properties</title><content type='html'>&lt;strong&gt;sys.dm_clr_properties: &lt;/strong&gt;Returns a row for each property related to SQL Server common language runtime (CLR) integration, including the version and state of the hosted CLR.&lt;br/&gt;&lt;br/&gt;Enabling CLR using SP_Configure doesn&#39;t gurantee that it is initialized. To initialize CLR, you have to &lt;strong&gt;execute ASSEMBLY statements, CLR Routine Type or Trigger.&lt;/strong&gt;&lt;br/&gt;&lt;br/&gt;See below image for the output of this DMV.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/clr.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1144&quot; title=&quot;CLR&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/03/clr.jpg&quot; alt=&quot;&quot; width=&quot;380&quot; height=&quot;162&quot; /&gt;&lt;/a&gt;&lt;br/&gt;Below are the different &lt;strong&gt;state &lt;/strong&gt;of CLR.&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt;Mscoree is not loaded.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Mscoree is loaded.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Locked CLR version with mscoree.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;CLR is initialized.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;CLR initialization permanently failed.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;CLR is stopped&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;Check &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms174983.aspx&quot; target=&quot;_blank&quot;&gt;http://msdn.microsoft.com/en-us/library/ms174983.aspx&lt;/a&gt; link for different CLR state description.</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/4778420282153487332/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/sysdmclrproperties.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/4778420282153487332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/4778420282153487332'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/sysdmclrproperties.html' title='sys.dm_clr_properties'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-267795683709429423</id><published>2011-03-06T21:32:00.000-08:00</published><updated>2011-04-10T21:44:49.160-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><title type='text'>Steps to clear the server list in SQL Server Management Studio</title><content type='html'>&lt;h2&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;Check out my new article &lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;Steps to clear the server list in SQL Server Management Studio on MSSQLTIPS.com.&lt;/span&gt;&lt;/h2&gt;&lt;br/&gt;&lt;h2&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt; &lt;/span&gt;&lt;a title=&quot;Steps to clear the server list in SQL Server Management Studio&quot; href=&quot;http://mssqltips.com/tip.asp?tip=2319&quot; target=&quot;_blank&quot;&gt;http://mssqltips.com/tip.asp?tip=2319&lt;/a&gt;&lt;/h2&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;br/&gt;&lt;span style=&quot;color:#0000ff;&quot;&gt;&lt;br/&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/267795683709429423/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/steps-to-clear-server-list-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/267795683709429423'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/267795683709429423'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/steps-to-clear-server-list-in-sql.html' title='Steps to clear the server list in SQL Server Management Studio'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-5382553468035090426</id><published>2011-03-03T22:14:00.000-08:00</published><updated>2011-04-10T21:44:49.162-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2011 (Denali)"/><title type='text'>SQL Server 2011 AKA Denali Step By Step Installation</title><content type='html'>&lt;strong&gt;SQL Server 2011 AKA Denali &lt;/strong&gt;&lt;br/&gt;As we all aware about that, Microsoft has released SQL Server 2011 CTP1. CTP stands for Community Technology Preview and it is a beta version of upcoming release.&lt;br/&gt;&lt;br/&gt;&lt;strong&gt;Minimum Software and Hardware Requirement&lt;/strong&gt;&lt;br/&gt;&lt;ul&gt;&lt;br/&gt;	&lt;li&gt; We can install Denali on both the file system formats (FAT32 and NTFS) but the Microsoft recommends NTFS file format.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; Your Operating system must have &quot;no-reboot&quot; package installed prior to installing SQL Server 2011. By default it is included in Windows 7 SP1 and Windows Server 2008 R2. For the other OS you can download No Reboot package from &lt;a href=&quot;http://support.microsoft.com/kb/982526&quot;&gt;http://support.microsoft.com/kb/982526&lt;/a&gt; link.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; .NET Framework 4.0&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; Virtualization is supported using Microsoft&#39;s Hyper-V technology.&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; At least 3.4GB free disk space&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; At least 2GB RAM&lt;/li&gt;&lt;br/&gt;	&lt;li&gt; Windows PowerShell 2.0 is a pre-requisite&lt;/li&gt;&lt;br/&gt;&lt;/ul&gt;&lt;br/&gt;&amp;nbsp;&lt;br/&gt;&lt;strong&gt;SQL Server 2011 AKA Denali Installation Steps&lt;/strong&gt;&lt;br/&gt;[caption id=&quot;attachment_1115&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 1 : Go to Setup folder and click on Setup.exe&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image1.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image1.jpg&quot; alt=&quot;&quot; title=&quot;Image1&quot; width=&quot;614&quot; height=&quot;98&quot; class=&quot;size-full wp-image-1115&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1116&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 2: Go to Installation Page and Select Stand Alone Installation&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image2.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image2.jpg&quot; alt=&quot;&quot; title=&quot;Image2&quot; width=&quot;614&quot; height=&quot;461&quot; class=&quot;size-full wp-image-1116&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1117&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 3: Setup will validate the the OS for minimut requirement. You must have noReboot Package installed.&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image3.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image3.jpg&quot; alt=&quot;&quot; title=&quot;Image3&quot; width=&quot;614&quot; height=&quot;463&quot; class=&quot;size-full wp-image-1117&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1118&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 4: Setup will again the check the rules for example Power Shell, Firewall, .Net Framework Security etc&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image4.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image4.jpg&quot; alt=&quot;&quot; title=&quot;Image4&quot; width=&quot;614&quot; height=&quot;449&quot; class=&quot;size-full wp-image-1118&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1119&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 5: Give you an option of new installation or add features to existing instance.&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image5.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image5.jpg&quot; alt=&quot;&quot; title=&quot;Image5&quot; width=&quot;614&quot; height=&quot;458&quot; class=&quot;size-full wp-image-1119&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1120&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 6: Give you an option to Select edition&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image6.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image6.jpg&quot; alt=&quot;&quot; title=&quot;Image6&quot; width=&quot;614&quot; height=&quot;453&quot; class=&quot;size-full wp-image-1120&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1121&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 7: Accept Agreement Screen&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image7.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image7.jpg&quot; alt=&quot;&quot; title=&quot;Image7&quot; width=&quot;614&quot; height=&quot;452&quot; class=&quot;size-full wp-image-1121&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1122&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 8: Give you an option to select required feature&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image8.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image8.jpg&quot; alt=&quot;&quot; title=&quot;Image8&quot; width=&quot;614&quot; height=&quot;466&quot; class=&quot;size-full wp-image-1122&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1123&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 9: Give you an option to select the instance level features&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image9.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image9.jpg&quot; alt=&quot;&quot; title=&quot;Image9&quot; width=&quot;614&quot; height=&quot;456&quot; class=&quot;size-full wp-image-1123&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1124&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 10: Again validate the server for the selected features&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image10.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image10.jpg&quot; alt=&quot;&quot; title=&quot;Image10&quot; width=&quot;614&quot; height=&quot;464&quot; class=&quot;size-full wp-image-1124&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1125&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 11: Gives you an option to select the named instance/default instance&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image11.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image11.jpg&quot; alt=&quot;&quot; title=&quot;Image11&quot; width=&quot;614&quot; height=&quot;450&quot; class=&quot;size-full wp-image-1125&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1126&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 12: Will show your the disk space required for the selected features&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image12.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image12.jpg&quot; alt=&quot;&quot; title=&quot;Image12&quot; width=&quot;614&quot; height=&quot;448&quot; class=&quot;size-full wp-image-1126&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1127&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 13: Specify the service accounts&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image13.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image13.jpg&quot; alt=&quot;&quot; title=&quot;Image13&quot; width=&quot;614&quot; height=&quot;447&quot; class=&quot;size-full wp-image-1127&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1128&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 14: Specify the collation&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image14.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image14.jpg&quot; alt=&quot;&quot; title=&quot;Image14&quot; width=&quot;614&quot; height=&quot;451&quot; class=&quot;size-full wp-image-1128&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1129&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 15: Specify the Authentication Mode, Data Directories and File Stream&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image15.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image15.jpg&quot; alt=&quot;&quot; title=&quot;Image15&quot; width=&quot;614&quot; height=&quot;450&quot; class=&quot;size-full wp-image-1129&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1130&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 16: Data Directories Configuration&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image16.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image16.jpg&quot; alt=&quot;&quot; title=&quot;Image16&quot; width=&quot;614&quot; height=&quot;452&quot; class=&quot;size-full wp-image-1130&quot; /&gt;&lt;/a&gt;[/caption]&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image17.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image17.jpg&quot; alt=&quot;&quot; title=&quot;Image17&quot; width=&quot;614&quot; height=&quot;450&quot; class=&quot;aligncenter size-full wp-image-1131&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image18.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image18.jpg&quot; alt=&quot;&quot; title=&quot;Image18&quot; width=&quot;614&quot; height=&quot;454&quot; class=&quot;aligncenter size-full wp-image-1132&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;[caption id=&quot;attachment_1133&quot; align=&quot;aligncenter&quot; width=&quot;614&quot; caption=&quot;Step 17: Click on Install and Installation will proceed.&quot;]&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/03/image19.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/03/image19.jpg&quot; alt=&quot;&quot; title=&quot;Image19&quot; width=&quot;614&quot; height=&quot;452&quot; class=&quot;size-full wp-image-1133&quot; /&gt;&lt;/a&gt;[/caption]</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/5382553468035090426/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/03/sql-server-2011-aka-denali-step-by-step.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5382553468035090426'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/5382553468035090426'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/03/sql-server-2011-aka-denali-step-by-step.html' title='SQL Server 2011 AKA Denali Step By Step Installation'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-8464206042765445914</id><published>2011-02-26T23:49:00.000-08:00</published><updated>2011-04-10T21:44:49.166-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Conditions"/><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Facets"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Policy Based Management"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="Targets"/><title type='text'>Policy Based Management in SQL Server 2008</title><content type='html'>&lt;strong&gt;Policy-base Management&lt;/strong&gt; is a new feature in SQL Server 2008 that helps SQL Server administration. It allows us to define and enforce policies for configuring and managing SQL Server across the enterprise. The policy-based framework implements the policies behind the scene with a Policy Engine, SQL Server Agent jobs, SQLCLR, DDL triggers and Service Broker. Policies can be applied or evaluated against a single server or a group of servers.&lt;br/&gt;&lt;br/&gt;To understand PBM we have to understand the below terms.&lt;br/&gt;&lt;strong&gt;Target -&lt;/strong&gt; an entity that is managed by PBM (i.e. database, table, index, etc.)&lt;br/&gt;&lt;strong&gt;Facet -&lt;/strong&gt; a predefined set of properties that can be managed&lt;br/&gt;&lt;strong&gt;Condition -&lt;/strong&gt; a property expression that evaluates to facets on target and returns True or False;&lt;br/&gt;&lt;strong&gt;Policy -&lt;/strong&gt; a condition to be checked and/or enforced&lt;br/&gt;&lt;br/&gt;Expand the Management Node to use the PBM.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms2.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1109&quot; title=&quot;PBM&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms2.jpg&quot; alt=&quot;&quot; width=&quot;320&quot; height=&quot;296&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;Expand the &lt;strong&gt;facets&lt;/strong&gt; node to checkout the facets.&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms3.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1110&quot; title=&quot;Facets&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms3.jpg&quot; alt=&quot;&quot; width=&quot;239&quot; height=&quot;506&quot; /&gt;&lt;/a&gt;&lt;br/&gt;&lt;br/&gt;To Check out facets properties double click on facets. I have clicked on Login Facets. These facet properties are used to specify a condition&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms4.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1111&quot; title=&quot;Facets Properties&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms4.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;480&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/8464206042765445914/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/policy-based-management-in-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8464206042765445914'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8464206042765445914'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/policy-based-management-in-sql-server.html' title='Policy Based Management in SQL Server 2008'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-3888462085745204794</id><published>2011-02-26T19:57:00.000-08:00</published><updated>2011-04-10T21:44:49.168-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="DB Articles"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SERVERPROPERTY(&#39;ErrorLogFileName&#39;)"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Scripts"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><title type='text'>Undocumented Server Property ErrorLogFileName</title><content type='html'>You can use Server Property &lt;strong&gt;errorlogfilename&lt;/strong&gt; to get the error log file path.&lt;br/&gt;&lt;br/&gt;SELECT SERVERPROPERTY(&#39;ErrorLogFileName&#39;)&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms1.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms1.jpg&quot; alt=&quot;&quot; title=&quot;SSMS&quot; width=&quot;441&quot; height=&quot;93&quot; class=&quot;aligncenter size-full wp-image-1106&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/3888462085745204794/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/undocumented-server-property.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/3888462085745204794'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/3888462085745204794'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/undocumented-server-property.html' title='Undocumented Server Property ErrorLogFileName'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-8600166149367484112</id><published>2011-02-26T19:48:00.000-08:00</published><updated>2011-04-10T21:44:49.170-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Management Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="SSMS"/><title type='text'>How to Hide System Objects in Object Explorer?</title><content type='html'>Open SSMS -&amp;gt; GO TO Tools -&amp;gt; Option and Check the below highlighted check box and restart the Management Studio. It will hide all the system objects in Object Explorer.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssms.jpg&quot; alt=&quot;&quot; title=&quot;SSMS&quot; width=&quot;614&quot; height=&quot;362&quot; class=&quot;aligncenter size-full wp-image-1103&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/8600166149367484112/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/how-to-hide-system-objects-in-object.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8600166149367484112'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8600166149367484112'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/how-to-hide-system-objects-in-object.html' title='How to Hide System Objects in Object Explorer?'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-2141758688252388628</id><published>2011-02-22T20:50:00.000-08:00</published><updated>2011-04-10T21:44:49.173-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Log-Shipping"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="Setup Log-Shipping"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><title type='text'>Step By Step Log-Shipping Configuration for SQL Server</title><content type='html'>Setting up Log Shipping for SQL Server is not that difficult, but having a step by step process is helpful if this is the first time you have setup Log Shipping.  In this tip we walk through the steps to setup Log Shipping.&lt;br/&gt;&lt;br/&gt;To read the step by step Log-Shipping steps &lt;a href=&quot;http://mssqltips.com/tip.asp?tip=2301&quot;&gt;CLICK ME &lt;/a&gt;to read it.&lt;br/&gt;&lt;br/&gt;Or Open http://mssqltips.com/tip.asp?tip=2301 link</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/2141758688252388628/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/step-by-step-log-shipping-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/2141758688252388628'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/2141758688252388628'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/step-by-step-log-shipping-configuration.html' title='Step By Step Log-Shipping Configuration for SQL Server'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-8066371605490731480</id><published>2011-02-17T21:56:00.000-08:00</published><updated>2011-04-10T21:44:49.176-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Policy Based Management"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="Surface Area Configuration"/><title type='text'>Surface Area Configuration in SQL Server 2008</title><content type='html'>I got an email from one of my reader and He is asking me that where is SAC in SQL Server 2008. Microsoft has removed the Surface Area Configuration tool that was shipped in SQL Server 2005. The Services and Connections which were previously managed using Surface Area Configuration tool is now managed using the SQL Server Configuration Manager.&lt;br/&gt;&lt;br/&gt;To manage the database engine features you have to use Policy Based Management. For that you have to use Surface Area Configuration facet.&lt;br/&gt;&lt;br/&gt;You can follow below steps to configure the Database Engine features.&lt;br/&gt;&lt;ol&gt;&lt;br/&gt;	&lt;li&gt;Right Click on Server Name and Select Facets from pop up windows&lt;/li&gt;&lt;br/&gt;	&lt;li&gt;Select “Surface Area Configuration” from facets windows and do the appropriate desired settings&lt;/li&gt;&lt;br/&gt;&lt;/ol&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/facets.jpg&quot;&gt;&lt;img src=&quot;http://sqldbpool.files.wordpress.com/2011/02/facets.jpg&quot; alt=&quot;&quot; title=&quot;Facets&quot; width=&quot;614&quot; height=&quot;460&quot; class=&quot;aligncenter size-full wp-image-1096&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/8066371605490731480/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/surface-area-configuration-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8066371605490731480'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/8066371605490731480'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/surface-area-configuration-in-sql.html' title='Surface Area Configuration in SQL Server 2008'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-1404785120756529207</id><published>2011-02-17T21:04:00.000-08:00</published><updated>2011-04-10T21:44:49.185-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SSMS Startup Options"/><title type='text'>SSMS Startup Options</title><content type='html'>You can configure SSMS to startup with the below options. Default one is &lt;strong&gt;Open Object Explorer&lt;/strong&gt;.&lt;br/&gt;&lt;br/&gt;Go Tools --&amp;gt; Options --&amp;gt;Environment(page)--&amp;gt;General.&lt;br/&gt;&lt;br/&gt;Options are self explanatory.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssmsstatupoption.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1092&quot; title=&quot;SSMSStatupOption&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/ssmsstatupoption.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;363&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/1404785120756529207/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/ssms-startup-options.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1404785120756529207'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/1404785120756529207'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/ssms-startup-options.html' title='SSMS Startup Options'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3514276913665608115.post-6579365623466993775</id><published>2011-02-10T22:57:00.000-08:00</published><updated>2011-04-10T21:44:49.189-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Database"/><category scheme="http://www.blogger.com/atom/ns#" term="http://sqldbpool.com/"/><category scheme="http://www.blogger.com/atom/ns#" term="Jugal Shah"/><category scheme="http://www.blogger.com/atom/ns#" term="Microsoft SQL Server"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server 2008 R2"/><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server Management Studio"/><category scheme="http://www.blogger.com/atom/ns#" term="SQLWB.exe"/><title type='text'>SQLWB.exe (SQL2k5) and SSMS.exe(SQL2K8)</title><content type='html'>SQLWB (sqlwb.exe) /SSMS(SSMS.exe) is the executable file that launches SQL Server Management Studio. I am usually using it to launch the SQL Server management studio instead of navigating through Start -&amp;gt; All Programs -&amp;gt; SQL Server 2005 -&amp;gt; SQL Server Management Studio.&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/image1983.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1086&quot; title=&quot;image1983&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/image1983.jpg&quot; alt=&quot;&quot; width=&quot;348&quot; height=&quot;187&quot; /&gt;&lt;/a&gt;Above command will launch the SQL Server 2005 Management Studio. You can launch the SQL2k8 management studio using SSMS.exe&lt;br/&gt;&lt;br/&gt;You can also pass below list of argument with it, I am executing below command to see the list of parameters.&lt;br/&gt;&lt;br/&gt;c:\sqlwb.exe -?&lt;br/&gt;&lt;br/&gt;&lt;a href=&quot;http://sqldbpool.files.wordpress.com/2011/02/image19831.jpg&quot;&gt;&lt;img class=&quot;aligncenter size-full wp-image-1087&quot; title=&quot;image1983&quot; src=&quot;http://sqldbpool.files.wordpress.com/2011/02/image19831.jpg&quot; alt=&quot;&quot; width=&quot;614&quot; height=&quot;261&quot; /&gt;&lt;/a&gt;</content><link rel='replies' type='application/atom+xml' href='http://tsqlking.blogspot.com/feeds/6579365623466993775/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://tsqlking.blogspot.com/2011/02/sqlwbexe-sql2k5-and-ssmsexesql2k8.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6579365623466993775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3514276913665608115/posts/default/6579365623466993775'/><link rel='alternate' type='text/html' href='http://tsqlking.blogspot.com/2011/02/sqlwbexe-sql2k5-and-ssmsexesql2k8.html' title='SQLWB.exe (SQL2k5) and SSMS.exe(SQL2K8)'/><author><name>AI based trading</name><uri>http://www.blogger.com/profile/01144956347104239199</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>