<?xml version="1.0" encoding="UTF-8" standalone="no"?><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:blogger="http://schemas.google.com/blogger/2008" xmlns:gd="http://schemas.google.com/g/2005" xmlns:georss="http://www.georss.org/georss" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" xmlns:openSearch="http://a9.com/-/spec/opensearchrss/1.0/" xmlns:thr="http://purl.org/syndication/thread/1.0" version="2.0"><channel><atom:id>tag:blogger.com,1999:blog-10550791</atom:id><lastBuildDate>Mon, 06 Apr 2026 20:11:06 +0000</lastBuildDate><category>Scripts</category><category>sql server 2008</category><category>Learn SQL Server 2005</category><category>Architecture</category><category>dmv</category><category>tsql</category><category>Katmai</category><category>Art of SQL Server</category><category>Installation</category><category>index fragmentation</category><category>sys.dm_db_index_physical_stats</category><category>update statistics</category><category>Free SQL Server tools</category><category>Maintenance Plan</category><category>Reset Identity column</category><category>SPID</category><category>asynchronous mirroring</category><category>csv</category><category>find outdated Statistics</category><category>outdated Statistics</category><category>sys.dm_exec_connections</category><title>SQL Server Tips &amp;amp; Tricks</title><description>Free SQL Server Articles and Scripts. 
*New: Learn sql server 2005 Series</description><link>http://sequelserver.blogspot.com/</link><managingEditor>noreply@blogger.com (Aneesh)</managingEditor><generator>Blogger</generator><openSearch:totalResults>255</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><language>en-us</language><itunes:explicit>no</itunes:explicit><itunes:summary>Free SQL Server Articles and Scripts. *New: Learn sql server 2005 Series</itunes:summary><itunes:subtitle>Free SQL Server Articles and Scripts. *New: Learn sql server 2005 Series</itunes:subtitle><itunes:owner><itunes:email>noreply@blogger.com</itunes:email></itunes:owner><xhtml:meta content="noindex" name="robots" xmlns:xhtml="http://www.w3.org/1999/xhtml"/><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-3366413549304313707</guid><pubDate>Tue, 01 Sep 2015 18:57:00 +0000</pubDate><atom:updated>2015-09-01T11:57:23.614-07:00</atom:updated><title>Microsoft SQL Server Licensing - abstract</title><atom:summary type="text">Microsoft SQL Server Licensing – abstract   &amp;#160;  Terms used:     An OSE is an Operating System Environment.     A POSE is a Physical Operating System Environment.     A VOSE is a Virtual Operating System Environment.   General rules     SQL Server licenses are assigned only to physical servers.     The number of SQL Server instances in an OSE is unlimited.     A physical OSE is counted as </atom:summary><link>http://sequelserver.blogspot.com/2015/09/microsoft-sql-server-licensing-abstract.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-4839643178193196236</guid><pubDate>Mon, 27 Jul 2015 17:45:00 +0000</pubDate><atom:updated>2015-07-27T10:45:10.735-07:00</atom:updated><title>What&amp;#39;s the best PAGE_VERIFY setting</title><atom:summary type="text">I always set this value to CHECKSUM. When CHECKSUM is enabled for the PAGE_VERIFY database option, the SQL Server Database Engine calculates a checksum over the contents of the whole page, and stores the value in the page header when a page is written to disk. When the page is read from disk, the checksum is recomputed and compared to the checksum value that is stored in the page header. This </atom:summary><link>http://sequelserver.blogspot.com/2015/07/what-best-pageverify-setting.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-917662597565588780</guid><pubDate>Mon, 27 Jul 2015 17:44:00 +0000</pubDate><atom:updated>2015-07-27T10:44:37.014-07:00</atom:updated><title>SQL Max Memory Limit Too Low: Increase SQL server Maximum Memory from Command Prompt</title><atom:summary type="text">SQL Server is well known for being a memory hog. When installed, the default configuration allocates a ridiculous amount of memory (2147483647 MB) to the instance. In effect, this grants SQL Server access to whatever memory is assigned to the server, which it will try to use at times at the expense of operating system tasks. Best practice is therefore to reduce the memory allocated to the </atom:summary><link>http://sequelserver.blogspot.com/2015/07/sql-max-memory-limit-too-low-increase.html</link><author>noreply@blogger.com (Aneesh)</author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" height="72" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgc-njXve9uJH-PWV5f2D8qiRNkLmsgBCsZUZ5E66vznHnvpB12ToEq6rHMz4h5Q0R9WB3vdXYvCn9gZO1O7i_j4dGxaapO5bF01elK8qXsp2_uyI-vnOyCA2R_9PcKXeuG58zx_A/s72-c?imgmax=800" width="72"/></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-3560879296807960067</guid><pubDate>Tue, 24 Mar 2015 20:41:00 +0000</pubDate><atom:updated>2015-03-24T13:41:40.582-07:00</atom:updated><title>How to recover space from a huge transaction log file</title><atom:summary type="text">Most of the novice dba’s forget to take the transaction log backups, which eventually ends up consuming a lot of disk space. This is one of the questions people ask me very often. Here are the steps which I tell them to follow.      Take the full backup if the database     Check to see if something is keeping SQL from reusing existing log space:      SELECT name, log_reuse_wait_desc       FROM </atom:summary><link>http://sequelserver.blogspot.com/2015/03/how-to-recover-space-from-huge.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-4859653890093239182</guid><pubDate>Tue, 24 Mar 2015 20:41:00 +0000</pubDate><atom:updated>2015-03-24T13:41:27.350-07:00</atom:updated><title>Backup database to disk = ‘Nul’</title><atom:summary type="text">To understand what this is doing, first we need to understand what Nul is, in the context of a file. It is not just a misspelling of NULL.  DOS, since the earliest days, has had a number of devices that can be treated like files, eg LPT1, COM1 and CON. NUL is another of those devices (virtual files, if you like) and is equivalent to the unix \dev\nul, a ‘file’ that deletes any data that’s written</atom:summary><link>http://sequelserver.blogspot.com/2015/03/backup-database-to-disk-nul.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-8279774615931373787</guid><pubDate>Tue, 24 Mar 2015 20:41:00 +0000</pubDate><atom:updated>2015-03-24T13:41:10.858-07:00</atom:updated><title>Identifying Unused Databases</title><atom:summary type="text">This is one of the issues the consultant faces, when there client has little documentation on the systems and the databases they use.&amp;#160; The first step in this process is simply looking at the date &amp;amp; time stamps of the .MDF and .LDF files, which could help in some cases,To evaluate whether it was worth keeping the databases online, I had some investigation to do.    Step 1 : Who is </atom:summary><link>http://sequelserver.blogspot.com/2015/03/identifying-unused-databases.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-6734360830909198662</guid><pubDate>Tue, 24 Mar 2015 20:40:00 +0000</pubDate><atom:updated>2015-03-24T13:40:38.617-07:00</atom:updated><title>Difference between DateTime2, DateTime and SmallDateTime</title><atom:summary type="text">Here are the main differences you should know about these three date types:                  &amp;#160;         Range of Dates                 Accuracy                        Size               usage        Applies to                  smalldatetime                 January 1, 1900 - June 6, 2079                        one Minute. smalldatetime values with 29.998 seconds or lower are rounded down to </atom:summary><link>http://sequelserver.blogspot.com/2015/03/difference-between-datetime2-datetime.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-2929133333026843733</guid><pubDate>Tue, 24 Mar 2015 20:40:00 +0000</pubDate><atom:updated>2015-03-24T13:40:28.062-07:00</atom:updated><title>SQL Maintenance Plan error “Could not generate mail report.An exception occurred while executing a Transact-SQL statement or batch.No global profile is configured. Specify a profile name in the @profile_name parameter.”</title><atom:summary type="text">Some body have this error : Could not generate mail report.An exception occurred while executing a Transact-SQL statement or batch.No global profile is configured. Specify a profile name in the @profile_name parameter. When i execute my maintenance plan.  &amp;#160;  Resolution   The issue is related to the default email profile, you have to set a default email profile in order for the maintenance </atom:summary><link>http://sequelserver.blogspot.com/2015/03/sql-maintenance-plan-error-could-not.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-8929182519823112306</guid><pubDate>Mon, 02 Dec 2013 22:38:00 +0000</pubDate><atom:updated>2013-12-02T14:38:50.444-08:00</atom:updated><title>SQL agent DCOM errors Event ID 10016</title><atom:summary type="text">&amp;#160;  Here is the work around to resolve this error (Works on SQL 2008, SQL 2012 )   Click Start -&amp;gt; Run -&amp;gt; dcomcnfg   Component services –&amp;gt; computers –&amp;gt; my computer –&amp;gt;DCOM config-&amp;gt;MSDTSServer100    &amp;#160;&amp;#160;&amp;#160; Right click and select Properties    &amp;#160;&amp;#160;&amp;#160; Security    &amp;#160;&amp;#160;&amp;#160; Launch and Activate permissions – edit    Add the local SQL AgentUser and </atom:summary><link>http://sequelserver.blogspot.com/2013/12/sql-agent-dcom-errors-event-id-10016.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-1758160347908921237</guid><pubDate>Thu, 03 Oct 2013 17:21:00 +0000</pubDate><atom:updated>2013-10-03T10:21:06.441-07:00</atom:updated><title>How to select max row value using TSql</title><atom:summary type="text">Someone asked me this question and it took me a while to figured out the solution. It look very simple with the new features available in SQL Server 2008.   Here is the example   &amp;#160;  &amp;#160;  if object_id('tempdb..#temp') is not null    drop table #temp create table #temp([Name] varchar(10),[m1] int,[m2] int,[m3] int,[m4] int) insert into #temp([Name],[m1],[m2],[m3],[m4])values('N1', 34, 36, </atom:summary><link>http://sequelserver.blogspot.com/2013/10/how-to-select-max-row-value-using-tsql.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-4775051260739149795</guid><pubDate>Tue, 01 Oct 2013 15:09:00 +0000</pubDate><atom:updated>2013-10-01T08:09:34.440-07:00</atom:updated><title>SQL Server script–Backup history</title><atom:summary type="text">Here is a very useful script that shows the backup history.  &amp;#160;  SELECT    s.database_name,    m.physical_device_name,    CAST(CAST(s.backup_size / 1000000 AS INT) AS VARCHAR(14)) + ' ' + 'MB' AS bkSize,    s.backup_start_date,    s.backup_finish_date,    CAST(DATEDIFF(second, s.backup_start_date,s.backup_finish_date) AS VARCHAR(4)) + ' ' + 'Seconds' TimeTaken,    s.backup_start_date,    CAST</atom:summary><link>http://sequelserver.blogspot.com/2013/10/sql-server-scriptbackup-history.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-1228460805280189072</guid><pubDate>Wed, 25 Sep 2013 16:08:00 +0000</pubDate><atom:updated>2013-09-25T09:08:06.453-07:00</atom:updated><title>Pass a variable to a linked server query</title><atom:summary type="text">When you query a linked server, you frequently perform a pass-through query that uses the OPENQUERY, OPENROWSET, or OPENDATASOURCE statement. You can view the examples in SQL Server Books Online to see how to do this by using pre-defined Transact-SQL strings, but there are no examples of how to pass a variable to these functions. This article provides three examples of how to pass a variable to a</atom:summary><link>http://sequelserver.blogspot.com/2013/09/pass-variable-to-linked-server-query.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-6578357002367071936</guid><pubDate>Wed, 18 Sep 2013 19:21:00 +0000</pubDate><atom:updated>2013-09-18T12:21:34.429-07:00</atom:updated><title>SQL Server 2012–CHOOSE () function</title><atom:summary type="text">Today I am starting my series on ‘What’s new in SQL 2012’ ; One of the interesting functions available is ‘CHOOSE’ which can be used to achieve some of the features of ‘CASE’ statement  Syntax    CHOOSE ( index, val_1, val_2 [, val_n ] )Arguments indexIs an integer expression that represents a 1-based index into the list of the items following it.If the provided index value has a numeric data </atom:summary><link>http://sequelserver.blogspot.com/2013/09/sql-server-2012choose-function.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-8724839036072910357</guid><pubDate>Tue, 10 Sep 2013 16:09:00 +0000</pubDate><atom:updated>2013-09-10T09:09:30.015-07:00</atom:updated><title>Msg 8985, Level 16, State 1, Line 1 Could not locate file &amp;#39;xxx_log&amp;#39; for database ‘xxx&amp;#39; in sys.database_files. The file either does not exist, or was dropped.</title><atom:summary type="text">This happened after doing and in-place upgrade to our existing SQL 2008R2 server. Happened only on one of our database which was on Simple recovery. It look strange to me when the SHRINKFILE command failed. When i compared the logical names on sys.master_files and sys.database_files, the both look different, I try to rename them back to the same file which of course didn't worked , so i thought </atom:summary><link>http://sequelserver.blogspot.com/2013/09/msg-8985-level-16-state-1-line-1-could.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-7755987901140007807</guid><pubDate>Fri, 06 Sep 2013 18:14:00 +0000</pubDate><atom:updated>2013-09-06T11:14:44.510-07:00</atom:updated><title>SQL server 2012 upgrade Check list (Non Clustered environment)</title><atom:summary type="text">Here is the in place upgrade checklist I created for migrating from SQL 2008R2  Pre upgrade Checklist      Make sure the hardware requirements are satisfied; use System Configuration Checker (SCC) that comes part of sql server setup to verify    SQL Server 2012 requires Windows Server 2008 R2 SP1 or later     Analyze the legacy sql server using SQL server 2012 Upgrade advisor    Ensure that SQL </atom:summary><link>http://sequelserver.blogspot.com/2013/09/sql-server-2012-upgrade-check-list-non.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-2694122178773518240</guid><pubDate>Thu, 15 Aug 2013 16:42:00 +0000</pubDate><atom:updated>2013-08-15T09:45:45.620-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Architecture</category><category domain="http://www.blogger.com/atom/ns#">dmv</category><category domain="http://www.blogger.com/atom/ns#">Learn SQL Server 2005</category><category domain="http://www.blogger.com/atom/ns#">Scripts</category><category domain="http://www.blogger.com/atom/ns#">sql server 2008</category><category domain="http://www.blogger.com/atom/ns#">sys.dm_db_index_physical_stats</category><category domain="http://www.blogger.com/atom/ns#">tsql</category><title>SQL SERVER –Unused Index Script</title><atom:summary type="text">As most of you know, an index can improve the performance of a query most of the time; internally sql server has to do a lot of work to maintain those indexes. When I started a new job, I came to see a lot of indexes were created for some of our production tables. So I decided to find a script that returns the indexes that’s not in use.   Note : it uses the dmv’s so, this is not a pretty accurate</atom:summary><link>http://sequelserver.blogspot.com/2013/08/sql-server-unused-index-script.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-4310048779791895009</guid><pubDate>Wed, 17 Jul 2013 16:46:00 +0000</pubDate><atom:updated>2013-07-17T14:49:06.418-07:00</atom:updated><title>Error 17832 : The login packet used to open connection is structurally invalid; the connection has been closed. Please contact the vendor of the client library.[Client: xxx.xxx.xxx.xxx ]</title><atom:summary type="text">One of my client was experiencing this strange error while trying to logon to the sql server using windows authentication, he tried logging in from different machines still got the same error.  &amp;#160;  &amp;quot;ProviderNum: 7, Error: 10054, ErrorMessage: &amp;quot;TCP Provider: An existing connection was forcibly closed by the remote host ...&amp;quot;  To resolve this problem, increase the MaxTokenSize </atom:summary><link>http://sequelserver.blogspot.com/2013/07/error-17832-login-packet-used-to-open.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-8720186223276872052</guid><pubDate>Wed, 10 Jul 2013 15:43:00 +0000</pubDate><atom:updated>2013-07-10T08:43:07.939-07:00</atom:updated><title>Cannot shrink log file 2 because the logical log file located at the end of the file is in use.</title><atom:summary type="text">As a dba, several guys asked me this question on many occasions. All they want to do is free up some space from the transaction log file , and while running the DBCC SHRINKFILE() the above error shows up.&amp;#160; As you can see from the error, it does not shrink because the file is in use; So you have two options, either change the recovery to simple, shrink the file then change the recovery back </atom:summary><link>http://sequelserver.blogspot.com/2013/07/cannot-shrink-log-file-2-because.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-991235242972277678</guid><pubDate>Wed, 26 Jun 2013 21:49:00 +0000</pubDate><atom:updated>2013-06-26T14:49:12.605-07:00</atom:updated><title>Script to find database owners using T-SQL</title><atom:summary type="text">&amp;#160;  Database owner information is stored in sys.databases view as owner_sid, in order to get the actual mapped name we need to use suser_sname() function                     1: select name, suser_sname(owner_sid)as 'owner' from sys.databases&lt;!--CRLF--&gt;         2: select name, suser_sname(sid)'owner' from sysdatabases&lt;!--CRLF--&gt;  Change the database Owner Microsoft provides system stored </atom:summary><link>http://sequelserver.blogspot.com/2013/06/script-to-find-database-owners-using-t.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-8957152297508902397</guid><pubDate>Wed, 26 Jun 2013 14:40:00 +0000</pubDate><atom:updated>2013-06-26T07:40:58.466-07:00</atom:updated><title>Download Microsoft SQL Server 2014 Community Technology Preview 1</title><atom:summary type="text">&amp;#160;  Download SQL Server 2014 CTP1 and install it in your sandboxed environment – then receive deployment and operations guidance and other resources from the experts.  Microsoft SQL Server 2014 brings to market new in-memory capabilities built into the core database, including in-memory OLTP, which complements our existing in-memory data warehousing and BI capabilities for the most </atom:summary><link>http://sequelserver.blogspot.com/2013/06/download-microsoft-sql-server-2014.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-3300755109575389415</guid><pubDate>Fri, 24 May 2013 20:36:00 +0000</pubDate><atom:updated>2013-05-24T13:36:33.984-07:00</atom:updated><title>Lost ‘SA’ password,</title><atom:summary type="text">If you ever lost a SA password, you may have thought your only option is to reinstall SQL and re-attach to the DB’s. However, SQL server provides a much better disaster recovery method which preserves objects and data in the master DB. Members of the server’s Local Administrator’s group can access SQL server by starting it in single-user mode.  1.Enable SQL Single-User Mode  - Open SQL Server </atom:summary><link>http://sequelserver.blogspot.com/2013/05/lost-sa-password.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-6288306457998305558</guid><pubDate>Wed, 17 Apr 2013 18:07:00 +0000</pubDate><atom:updated>2013-04-17T11:07:40.582-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Architecture</category><category domain="http://www.blogger.com/atom/ns#">dmv</category><category domain="http://www.blogger.com/atom/ns#">Scripts</category><category domain="http://www.blogger.com/atom/ns#">tsql</category><title>Query to find CPU pressure</title><atom:summary type="text">I have found this query to be a very reliable indicator of CPU pressure in SQL Server 2005      -- Check SQL Server Schedulers to see if they are waiting on CPU    SELECT scheduler_id, current_tasks_count, runnable_tasks_count     FROM sys.dm_os_schedulers     WHERE scheduler_id &amp;lt; 255      It is much more useful in my opinion than conventional PerfMon indicators like % CPU utilization or </atom:summary><link>http://sequelserver.blogspot.com/2013/04/query-to-find-cpu-pressure.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-3184494314368677777</guid><pubDate>Wed, 17 Apr 2013 18:05:00 +0000</pubDate><atom:updated>2013-04-17T11:05:42.330-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Architecture</category><category domain="http://www.blogger.com/atom/ns#">dmv</category><title>Query to find affinity of my schedulers to CPUs</title><atom:summary type="text">select scheduler_id,  &amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160;&amp;#160; CAST (cpu_id as varbinary) AS scheduler_affinity_mask  from&amp;#160; sys.dm_os_schedulers  </atom:summary><link>http://sequelserver.blogspot.com/2013/04/query-to-find-affinity-of-my-schedulers.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-1755907678293470523</guid><pubDate>Wed, 17 Apr 2013 17:50:00 +0000</pubDate><atom:updated>2013-04-17T10:50:47.705-07:00</atom:updated><category domain="http://www.blogger.com/atom/ns#">Architecture</category><category domain="http://www.blogger.com/atom/ns#">SPID</category><category domain="http://www.blogger.com/atom/ns#">sql server 2008</category><category domain="http://www.blogger.com/atom/ns#">tsql</category><title>What is SPID in SQL Server</title><atom:summary type="text">SPID which stands for&amp;#160; Server Process ID&amp;#160; is essentially a session or a connection in SQL Server. Every time when the application connects to SQL Server, a new connection (or SPID) is created; this connection has a defined scope and memory space and cannot interact with other SPIDs.Each SPID can have it’s own connection settings. Connection settings can be defined by the connection </atom:summary><link>http://sequelserver.blogspot.com/2013/04/what-is-spid-in-sql-server.html</link><author>noreply@blogger.com (Aneesh)</author></item><item><guid isPermaLink="false">tag:blogger.com,1999:blog-10550791.post-4502806886046168443</guid><pubDate>Wed, 10 Apr 2013 21:21:00 +0000</pubDate><atom:updated>2013-04-10T14:34:10.577-07:00</atom:updated><title>Did DROP TABLE #temp actually deletes the temp table immediately inside a stored procedure</title><atom:summary type="text">
I use temp table on most of my stored procedures for storing the intermediate results, but there was one particular stored procedure some one else in my team created where he used a table variable; He was creating the table variable within a loop, populate the data and processed it, assuming that with each iteration, sql server is going to create another object, the query didn’t generate any </atom:summary><link>http://sequelserver.blogspot.com/2013/04/did-drop-table-temp-actually-deletes.html</link><author>noreply@blogger.com (Aneesh)</author></item></channel></rss>