<feed version="0.3" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns="http://purl.org/atom/ns#" xml:lang="en-US"><title>Harshal Mistry</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/default.aspx" /><tagline type="text/html">A SQL Blog</tagline><id>http://sqljunkies.com/WebLog/sqldude/default.aspx</id><author><url>http://sqljunkies.com/WebLog/sqldude/default.aspx</url></author><generator url="http://communityserver.org" version="1.0.1.50214">Community Server</generator><modified>2004-08-24T22:24:00Z</modified><entry><title>SQL Server 2005 - September CTP</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2005/09/14/16737.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:16737</id><created>2005-09-13T18:59:00Z</created><content type="text/html" mode="escaped">Download the Community Technology Preview (CTP) of Microsoft SQL Server 2005 :&lt;br&gt;
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=6e4aac3a-9d85-4734-b1fd-318fb83b0d29&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=6e4aac3a-9d85-4734-b1fd-318fb83b0d29&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;br&gt;
Download a stand-alone copy of 
the documentation and tutorials for the Microsoft SQL Server 2005 Community 
Technology Preview (CTP) September 2005 :&lt;br&gt;
&lt;p&gt;&lt;a href="http://www.microsoft.com/downloads/details.aspx?familyid=adc75e35-7245-4038-9b8a-b8fabaec16da&amp;amp;displaylang=en"&gt;http://www.microsoft.com/downloads/details.aspx?familyid=adc75e35-7245-4038-9b8a-b8fabaec16da&amp;amp;displaylang=en&lt;/a&gt;&lt;/p&gt;
&lt;br&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=16737" width="1" height="1"&gt;</content><slash:comments>708</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=16737</wfw:commentRss></entry><entry><title>Truncating / Shrinking  transaction log files</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2005/09/14/16734.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:16734</id><created>2005-09-13T17:39:00Z</created><content type="text/html" mode="escaped">&lt;p&gt;To
Truncate the log file:&lt;/p&gt;


&lt;p&gt;Backup
the database (I always prefer to backup first to be on the safer side ;)).&lt;/p&gt;


&lt;p&gt;Detach
the database, either by using EM or by executing :&lt;/p&gt;


&lt;p&gt;Sp_detachDB
[DBName]&lt;/p&gt;


&lt;p&gt;Delete
the transaction log file. (I prefer to rename the file, just in case if
something goes wrong)&lt;/p&gt;


&lt;p&gt;Then
attach the database again using:&lt;br&gt;
&lt;span&gt;Sp_AttachDB [DBName]&lt;/span&gt;&lt;br&gt;
 &lt;/p&gt;


&lt;p&gt;When
the database is attached, it creates a new transaction log file. &lt;/p&gt;


&lt;p&gt;&amp;nbsp;&lt;/p&gt;


&lt;p&gt;To
shrink the log first backup the log using:&lt;/p&gt;


&lt;p&gt;backup
log [DBName] with no_log&lt;/p&gt;


&lt;p&gt;&amp;nbsp;&lt;/p&gt;


&lt;p&gt;Using
Enterprise manager:&lt;/p&gt;


&lt;p&gt;&amp;nbsp;&lt;/p&gt;


&lt;p&gt;Right
click on the database, All tasks, Shrink database, Files, Select log file,
OK.&lt;br&gt;&lt;/p&gt;
&lt;p&gt;
Using T-SQL:&lt;/p&gt;


&lt;p&gt;&lt;span&gt;dbcc
shrinkfile ([log_name])&lt;/span&gt;&lt;br&gt;
&lt;/p&gt;


&lt;p&gt;&lt;br&gt;
Here
[log_name] is the logical name of the log file as found from sp_helpdb &lt;/p&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=16734" width="1" height="1"&gt;</content><slash:comments>0</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=16734</wfw:commentRss></entry><entry><title>server connections history </title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2005/03/09/8695.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:8695</id><created>2005-03-09T05:13:00Z</created><content type="text/html" mode="escaped">once you connect to the sqlserver , the server details are maintained as a history and the next time you want to connect to the server you get a dropdown to select from the previously connected servers.
Now if you want to delete this history, there is no GUI tool available for it.
The trick to delete this history is to delete the registry entries:
HKEY_CURRENT_USER\Software\Microsoft\Microsoft SQL Server\80\Tools\Client\PrefServers

clear the entries from prefservers.. this should work.
since it is a registry modification, do it on your own risk.&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=8695" width="1" height="1"&gt;</content><slash:comments>6</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=8695</wfw:commentRss></entry><entry><title>"Not Associated with a trusted SQL Server Connection" </title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2005/01/06/5972.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:5972</id><created>2005-01-06T01:46:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;"Not Associated with a trusted SQL Server Connection" when I try to connect to an SQL database and use a valid SQL username? &lt;/P&gt;
&lt;P&gt;This is a very common question I have come across.&lt;BR&gt; This occurs typically when Microsoft Sql Server installation is configured to use only Windows authentication and not SQL Server authentication. &lt;BR&gt;So when u try to login using sql server account this error occurs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;To solve the problem: Change the Authentication change the authentication mode to sql server authentication. &lt;BR&gt;1. Start SQL Server Enterprise Manager (Start, Programs, Microsoft SQL Server, Enterprise Manager). &lt;BR&gt;2. Navigate to the SQL Server system in the Microsoft Management Console (MMC) treeview pane by selecting Console Root,&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Microsoft SQL Servers, SQL Server Group, &lt;SQL server&gt;(or &lt;LOCAL&gt;); right-click the server; and select Properties from the context menu.&lt;BR&gt; 3. In the SQL Server Properties dialog box, select the Security tab.&lt;BR&gt; 4. In the Security section, make sure that Authentication is set to "SQL Server and Windows" and not "Windows only" . &lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=5972" width="1" height="1"&gt;</content><slash:comments>13</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=5972</wfw:commentRss></entry><entry><title>what is better constraint or Trigger??</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/11/19/5211.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:5211</id><created>2004-11-19T03:32:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;what is better constraint or Trigger??&lt;BR&gt;If it is a job of just referential integrity I would use a constraint, where as if more complex logic is to be performed, then trigger.&lt;BR&gt;constraints are proactive - they prevent unwanted actions from happening.&lt;BR&gt;Triggers are reactive - they rollback the damage.&lt;BR&gt;While deleting a record from a table a constraint would tell not to delete a parent record if child records exist.&lt;BR&gt;A trigger rolls back the delete operation if you try to delete a parent record having child records.&lt;BR&gt;Constraints apply to underlying table.&lt;BR&gt;Triggers can access multiple tables(even tables in other databases).&lt;BR&gt;With a trigger you can generate more custom and understandable and user friendly error messages as compared to cryptic messages returned by the constraints.&lt;/P&gt;
&lt;P&gt;These are a few points to compare.. more are welcome.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=5211" width="1" height="1"&gt;</content><slash:comments>3</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=5211</wfw:commentRss></entry><entry><title>Security hole found in Gmail</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/11/09/5038.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:5038</id><created>2004-11-09T21:20:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;An Israeli hacker reveals: A security hole in Gmail allows the compromise of users' email boxes &amp;#8211; without the need of a password.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://net.nana.co.il/Article/?ArticleID=155025&amp;amp;sid=10"&gt;Link&lt;/A&gt;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=5038" width="1" height="1"&gt;</content><slash:comments>5</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=5038</wfw:commentRss></entry><entry><title>Unit testing TSQL</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/11/08/4989.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4989</id><created>2004-11-08T04:49:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;&lt;!--StartFragment --&gt;&amp;nbsp;&lt;B&gt;All good programmers test their code. But can testing be easier? Can it be better? S. A. Miller shows how unit tests can help, along with an open source testing framework called TSQLUnit.&lt;/B&gt; &lt;/P&gt;
&lt;P&gt;check the article &lt;A href="http://msdn.microsoft.com/sql/default.aspx?pull=/library/en-us/dnsqlpro04/html/sp04i1.asp"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4989" width="1" height="1"&gt;</content><slash:comments>3</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4989</wfw:commentRss></entry><entry><title>Set ANSI_NULLS</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/10/28/4853.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4853</id><created>2004-10-28T04:54:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Set ANIS_NULLS&lt;BR&gt;For something like &lt;BR&gt;select * from foo1 where a not in (select a from foo2)&lt;BR&gt;If anis_nulls is ON and if the table foo2 is empty no records from foo1 are selected.&lt;BR&gt;If this comparision statement exits inside a stored procedure then ANSI_NULLS setting should be done before the compilation of the stored procedure, if the set statement is inside the procedure, the ANSI_NULL setting is not affected.&lt;BR&gt;From BOL:&lt;BR&gt;For stored procedures, SQL Server uses the SET ANSI_NULLS setting value from the initial creation time of the stored procedure. Whenever the stored procedure is subsequently executed, the setting of SET ANSI_NULLS is restored to its originally used value and takes effect. When invoked inside a stored procedure, the setting of SET ANSI_NULLS is not changed.&lt;/P&gt;
&lt;P&gt;I never knew this. so when today there was a bug in a stored procedure I tried to debug it, I was not able to find anything wrong with it, since the same script was working on my local machine, after drilling it down to NULL comparision &lt;BR&gt;found the above thing. so recompiled the sp with set options at the start before the create statement which solved the problem.&lt;BR&gt;Also remember: The setting of SET ANSI_NULLS is set at execute or run time and not at parse time.&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4853" width="1" height="1"&gt;</content><slash:comments>8</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4853</wfw:commentRss></entry><entry><title>New features in sql server 2005 beta3</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/10/18/4648.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4648</id><created>2004-10-18T07:11:00Z</created><content type="text/html" mode="escaped">have a read &lt;A href="http://entmag.com/news/rss.asp?editorialsid=6385"&gt;here&lt;/A&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4648" width="1" height="1"&gt;</content><slash:comments>3</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4648</wfw:commentRss></entry><entry><title>Google Desktop search</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/10/15/4606.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4606</id><created>2004-10-15T04:07:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Google has launched the desktop search engine &lt;A href="http://desktop.google.com/"&gt;Google Desktop search beta&lt;/A&gt;&amp;nbsp;yesterday.&lt;BR&gt;Google says that it is a desktop search application that provides full text search over all the files.&lt;BR&gt;Seems to be a cool app, but I do have a few doubts about it... like it tracks all the activity done on the machine right from the normal work done to the emails recieved it tracks all the websites visited and stuff..... so how secure is it anyway?&lt;BR&gt;anyone who get access to my machine knows what I was been doing what sites I have browsed ... is that the case??&lt;BR&gt;I have downloaded the installable but not yet installed it cause it says that after installing it, it needs to index all the files on the hard disk which might take hours... so planning to install it tonight while leaving ... lets see how it comes up.&lt;BR&gt;you can download it &lt;A href="http://desktop.google.com/"&gt;here&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;know more about &lt;A href="http://desktop.google.com/about.html#privacy"&gt;google desktop search&amp;nbsp;beta&lt;/A&gt;&lt;BR&gt;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4606" width="1" height="1"&gt;</content><slash:comments>4</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4606</wfw:commentRss></entry><entry><title>calculating the row size</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/10/07/4482.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4482</id><created>2004-10-07T05:39:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Is anyone aware how to calculate the occupied size of a row in a table?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4482" width="1" height="1"&gt;</content><slash:comments>5</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4482</wfw:commentRss></entry><entry><title>Gmail invitiees are back</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/09/23/4330.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4330</id><created>2004-09-23T22:07:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;It seems the Gmail invitations are back... I got a coupla them, if anyone is interested write me at &lt;A href="mailto:harshalmistry@gmail.com"&gt;harshalmistry@gmail.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4330" width="1" height="1"&gt;</content><slash:comments>4</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4330</wfw:commentRss></entry><entry><title>MS Skill's Assessment</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/09/22/4298.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4298</id><created>2004-09-22T00:02:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;Recently I came across something called SQL Server Reporting Services Skills Assessment after diggin in found that MS offers of assessments on a range of MS products also the site says &amp;#8220;By completing a Microsoft Skills Assessment, you will receive a Personalized Learning Plan to help you understand if you are ready to implement specific business solutions. Your Personalized Learning Plan will include the Microsoft Official Curriculum courses, Microsoft Press books, and Microsoft TechNet resources that will help you with your preparation.&amp;#8221;&lt;/P&gt;
&lt;P&gt;So give it a try &lt;A href="http://www.msmeasureup.com/test/home.asp#10"&gt;here&lt;/A&gt;.&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4298" width="1" height="1"&gt;</content><slash:comments>5</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4298</wfw:commentRss></entry><entry><title>Whats he upto?</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/08/30/4086.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4086</id><created>2004-08-30T04:12:00Z</created><content type="text/html" mode="escaped">&lt;P&gt;The wipro CEO Azim Premji wants the Techie taxed!!! &lt;BR&gt;Read the whole story &lt;A href="http://o3.indiatimes.com/write"&gt;here&lt;/A&gt;&amp;nbsp;.&lt;BR&gt;&lt;/P&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4086" width="1" height="1"&gt;</content><slash:comments>6</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4086</wfw:commentRss></entry><entry><title>SNAPSHOT Isolation</title><link rel="alternate" type="text/html" href="http://sqljunkies.com/WebLog/sqldude/archive/2004/08/24/4021.aspx" /><id>d2584c15-f6ef-46f7-a2d4-24fc0e143e76:4021</id><created>2004-08-24T22:24:00Z</created><content type="text/html" mode="escaped">&amp;nbsp;&amp;nbsp;&lt;FONT face="Courier New" size=2&gt;Yukon introduces a new isolation level called SNAPSHOT which allows you to work in a mode where writers do not block readers, providing readers with a committed version of the data they request. SQL Server Yukon maintains a linked list in tempdb that tracks changes to rows and constructs an older, committed version of data for readers. This isolation is useful for optimistic locking, where UPDATE conflicts are not common. If Process 1 retrieves data and later attempts to modify it, and if Process 2 has modified the same data between the retrieval and modification, then SQL Server produces an error upon Process 1's modification attempt because of the conflict. Then, Process 1 can try to reissue the transaction. This mode can be efficient in situations where update conflicts are not common.&lt;BR&gt;&amp;nbsp;&amp;nbsp;In order to allow working in a SNAPSHOT isolation level, you must turn on the database option ALLOW_SNAPSHOT_ISOLATION.&lt;/FONT&gt;&lt;img src="http://sqljunkies.com/WebLog/aggbug.aspx?PostID=4021" width="1" height="1"&gt;</content><slash:comments>6</slash:comments><wfw:commentRss>http://sqljunkies.com/WebLog/sqldude/commentrss.aspx?PostID=4021</wfw:commentRss></entry></feed>