<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6357505892638015674</id><updated>2012-01-30T18:02:36.273-08:00</updated><category term='Change row value in SQL Server'/><category term='Creating script for SQL Server 2000 from SQL Server 2005'/><category term='SQL Injection in SQL Server'/><category term='To check file exists or not in c#'/><category term='To create format files in SQL Server'/><category term='rebuild indexes in the entire database'/><category term='Collation property in sql server'/><category term='All about Linked Server concept in SQL Server'/><category term='Varchar to Float in SQL Server'/><category term='Land value reducing in india'/><category term='New In SQL Server 2008'/><category term='Connecting SQL Server Analaysis Services Engine'/><category term='Error Handling'/><category term='Memory handling on NULL values using sparse columns'/><category term='Error: &quot;Attempted to access an unloaded AppDomain'/><category term='Get the description of the Collation settings in SQL Server'/><category term='Row_number in SQL Server 2005'/><category term='DIFFERENCE BETWEEN DROP AND TRUNCATE'/><category term='Software Companies firing employees'/><category term='combining column names in sql server'/><category term='Identity insert in SQL Server table'/><category term='Maximum capacity in sql server'/><category term='Query execution time'/><category term='Malicious software removal tool from windows -  Free software'/><category term='SQL Cache Dependency'/><category term='data not loaded properly from excel to sql server'/><category term='Triggers in SQL Server'/><category term='SQL Challenges - Between operator in SQL Server'/><category term='Copying huge data from one table to another table in sql server'/><category term='Combining two views in SQL Server'/><category term='Show updates check box in Add/Remove programs'/><category term='Handling delimeted string in sql server'/><category term='HOW MANY COLUMNS in a SQL Server table'/><category term='Count of records group by month in SQL Server'/><category term='SQL Server Interview questions'/><category term='single quotes character inside the string in sql server'/><category term='The Product level is insufficient for Component in sql server'/><category term='Row data into comma seperated string'/><category term='T-SQL Challenges in SQL Server'/><category term='Merging two rows'/><category term='Get the current designation of an employee in sql server'/><category term='Retrieving physical location of your MDF and LDF file in sql server'/><category term='Datediff functionality in sql server'/><category term='Specifying the schema Name in the Table designer'/><category term='404 Errors after clicking Wordpress links'/><category term='To retrieve current users list in sql server'/><category term='Shortcut to SQL Server 2008 SSMS'/><category term='Convert Varchar to Datetime in sql server'/><category term='Articles in MSDN'/><category term='Convert function in SQL Server'/><category term='&apos;SQLDUMPER library failed error'/><category term='Date value from datetime field'/><category term='Joins on columns in sql server based on conditions'/><category term='Covering Index in SQL Server'/><category term='Service packs and hot fixes for SQL Server 2008'/><category term='Group by month in SQL Server'/><category term='Compare two tables without cursors - A fantastic approach in sql server'/><category term='Hierarchy data retrieval in SQL Server'/><category term='Bulk Insert option in sql server'/><category term='All about sys.dm_os_wait_stats DMV'/><category term='Latest ID through group by in sql server'/><category term='Database size in Express editions'/><category term='Issue with DatetimePicker data'/><category term='SQL Server MSN group'/><category term='Can&apos;t install SQL Server in Windows XP sp3'/><category term='Set Vs Select statement in SQL Server'/><category term='SQL Server error'/><category term='Read the trace file from SSMS'/><category term='Special symbols inside the column name'/><category term='Interview question - Real time problems in sql server'/><category term='Thanking Mail from dotnetspider moderator'/><category term='Recent data from sql server table - TSQL Challenges'/><category term='Table without primary key in sql server'/><category term='Constraints Vs Rules'/><category term='Replace function in SQL Server'/><category term='Namespace not listing in windows forms for class library'/><category term='Optimization tip in SQL Server'/><category term='Columns into rows in sql server'/><category term='Ltrim / Rtrim in SQL Server'/><category term='Toggle key issue in Windows Vista'/><category term='Extents and Pages in SQL Server'/><category term='&quot;Like&quot; Condition in sql server'/><category term='ORDER BY CASE error in SQL Server'/><category term='Some inbuilt functions in SQL Server'/><category term='SQL Server Login error'/><category term='Social article - Increase in rates in india'/><category term='Concatenate row data into a single data in SQL Server'/><category term='Puzzle question in SQL Server'/><category term='Changing the path of the MDF and LDF file for the database'/><category term='Index Creation Memory option in the server properties'/><category term='view in sql server'/><category term='Server restart data in SQL Server'/><category term='Dotnet and SQL Job in Hyderabad'/><category term='Order by clause in views'/><category term='Steps in loading your web contents - About browsers'/><category term='get user created tables in SQL Server'/><category term='Single insert statement to insert multiple records in SQL Server'/><category term='Group by clause in SQL Server'/><category term='list column names for a table'/><category term='Reporting services - Deployment issue'/><category term='Dynamic SQL in sql server'/><category term='About Me'/><category term='DIFF BETWEEN TRUNCATE AND DELETE'/><category term='Identify the Collation settings of the server'/><category term='Query to fetch MDF and LDF location for the database in SQL Server'/><category term='Join operations in SQL Server - Part 1'/><category term='Accessing Text Box content'/><category term='Replication and autonumber generation issue'/><category term='Row number in sql server'/><category term='Server property in SQL Server'/><category term='Publishing database through Internet - SQL Server 2008'/><category term='Installing AdventureWorks database for SQL Server 2008R2 version'/><category term='Cursor Vs While loop in sql server'/><category term='Identity column issue in sql server'/><category term='Problems faced in Migration works'/><category term='SQL Server error in backing up the database'/><category term='Installation problem in sql server'/><category term='Function related to exceptions in sql server'/><category term='T-SQL Interview Questions'/><category term='Unable to create new database diagram in SQL Server'/><category term='SSIS Error'/><category term='Execution time of the stored procedure in sql server'/><category term='SQL Server 2008 message box - Unable to edit the table property'/><category term='Order by in Varchar column with varchar and integers'/><category term='Truncate Vs Delete in sql server'/><category term='Unable to start SQL Server instance - SQL Server errors'/><category term='Got MCITP'/><category term='Telnet client in Windows Vista'/><category term='SSIS with Oracle database'/><category term='To find Index of white spaces in SQL Server'/><category term='sys.messages table in SQL Server'/><category term='DateAdd function in SQL Server'/><category term='Usage of PIVOT in sql server 2005'/><category term='Substring in a string in SQL Server'/><category term='sp_spaceused'/><category term='Read text file line by line in C#'/><category term='View Log file information in SQL Server'/><category term='Index details for a table in sql server'/><category term='NewSequentialId()  in sql server'/><category term='Inserting data in Unique identifier column'/><category term='Something on GO statement in sql server'/><category term='Max type of data stored in a row'/><category term='CHAR function in SQL Server'/><category term='Joining three tables in SQL Server'/><category term='Temporary table Vs Temporary variable in SQL Server'/><category term='Count data value in a group from result set'/><category term='Records in the first table based on the second table reference'/><category term='Cannot connect to Analysis Services version &apos;10.50.1600.1&apos;.'/><category term='Pattern Matching in SQL Server'/><category term='Query on DateTime operations'/><category term='DDL Trigger'/><category term='SQL Server 2005 connection error'/><category term='SQL Server User Group meet at Chennai'/><category term='Resource file missing issue in Dotnet'/><category term='SQL Teaser'/><category term='Renaming SQL Server objects'/><category term='Performance monitoring command in SQL Server'/><category term='SSIS Package error'/><category term='RowNumber in Sql Server'/><category term='SQL Teaser - String pattern matching in sql server'/><category term='SQL Server Installation issue'/><category term='Compare two tables in SQL Server'/><category term='SQLDatasource error while connecting to database'/><category term='Excel to SQL Server'/><category term='Failed to Access IIS Metabase in ASP.net'/><category term='Procedure to get the SQL Agent properties'/><category term='Running vs. Configured Values in SQL Server 2008'/><category term='Database Query tuning'/><category term='Remove common substring from the strings in SQL Server'/><category term='SQL Server memory error'/><category term='Timeout expired.  The timeout period elapsed prior to completion of the operation or the server is not responding in windows appilcation'/><category term='Naming the Constraint in sql server'/><category term='Delete data permanently in SQL Server'/><category term='Convert decimal values in SQL Server'/><category term='Fetch schema names and objects in Oracle database'/><category term='SQL Server interview question'/><category term='Dependent Objects in SQL Server'/><category term='Datetime format in SQL Server'/><category term='Float data type to integer'/><category term='Setting the application name - Ease to monitor the application performance'/><category term='Swap values in a sql server table'/><category term='ISNULL function in SQL Server'/><category term='Listing down Server directories in SQL Server'/><category term='Last backup date of all databases in the server:'/><category term='DateName function in SQL Server'/><category term='Scripting SQL Server 2005 databases'/><category term='invalid character error in SSIS'/><category term='DBCC checkident for reseeding identity column in sql server'/><category term='Stored Procedure Vs User Defined functions'/><category term='Date datatype in SQL Server 2008'/><category term='Find date difference in sql server'/><category term='DBReindex and sp_recompile option in sql server'/><category term='User defined function error in SQL Server'/><category term='Primary Key Vs Unique Key in sql server'/><category term='Copy table structure without data in SQL Server'/><category term='truncate log file in sql server'/><category term='Time dimesions in SSAS'/><category term='Inserting DBCC output into a table in SQL Server'/><category term='ExceptionTemplates failed in SQL Server'/><category term='Restricting input data in SQL Server views'/><category term='Restrict users to acess specific database in SQL Server'/><category term='Deadlocks in SQL Server'/><category term='Strange error message in sql server - Dynamic query execution'/><category term='How to find Network Adapters available in your machine??'/><category term='My session at Sydney Microsoft Office'/><category term='Dotnet 4.0 Chart issue'/><category term='Restore database in sql server 2005'/><category term='XML Schema definition'/><category term='Performance tuning Query'/><category term='Links for adventureworkdw database'/><category term='TSQL Interview Questions - SQL Server'/><category term='SSIS data flow task error'/><category term='SQL Server 2008 SSMS enhancements - Reporting in SQL Server'/><category term='difference between created and updated date group by id'/><category term='SQL Interview Questions'/><category term='New user login in sql server'/><category term='Like operator on a column name in SQL Server'/><category term='Clustered index Vs Non Clustered index'/><category term='Database backup in sql server'/><category term='Triggers inside Stored procedure'/><category term='New feature in sql server 2008'/><category term='Change Blog name in WordPress.com'/><category term='Length of the string in SQL Server'/><category term='Random number generation in SQL Server'/><category term='Time datatype in SQL Server 2008'/><category term='Error while excel document creation'/><category term='Identity usage across table in SQL Server'/><category term='Auto Scroll option in List box'/><category term='charindex in sql server'/><category term='Adventure Works deployment issue in SQL Server Analysis Services'/><category term='Identity_insert in SQL Server'/><category term='Stored procedure output into table in sql server'/><category term='Inline Declaration and value assignation in SQL Server 2008'/><category term='Consolidating Rows based on Column value'/><category term='Primary  key and Foreign key constraints from the database'/><category term='SQL server Connectivity issues.'/><category term='Swapping column data in SQL Server'/><category term='Updating table in different database in sql server'/><category term='Something on HTML ruler hr Tag'/><category term='Extended stored Procedure in SQL Server'/><category term='Create windows authentication user in SQL Server'/><category term='Fetch distinct filenames in sql server'/><category term='Error in executing xp_cmdshell command'/><category term='Prevent read and write permissions to app.config file'/><category term='Know about temporary tables in sql server'/><category term='XML data type in SQL Server 2005- Part I'/><category term='Error in inserting records in SQL Server'/><category term='Display Open Transaction in SQL Server'/><category term='Concatenating two columns in SQL Server'/><category term='T-SQL Interview Questions - Part1'/><category term='Deployment issue in SQL Server Analysis Services'/><category term='Replication in sql server'/><category term='Remote query timeout in SQL Server'/><category term='File System task in SSIS'/><category term='Dynamically naming the table'/><category term='My Session in Sydney SQL User group'/><category term='Debugging stored procedures in SQL Server'/><category term='Table insight information through DBCC command'/><category term='Appending the rows result set as a single column'/><category term='Len Vs Datalength in sql server'/><category term='Listing all the tables in the specified database'/><category term='Constraints on the whole table in SQL Server'/><category term='Profile issue with Outlook'/><category term='Rename the table in SQL Server'/><category term='New features in sql server 2008 + Activity monitor'/><category term='Pages in Cache - Dirty Pages details'/><category term='Session on SQL Server 2008 - Manageability features in chennai'/><category term='Swap values in a column in sql server'/><category term='Rows to Columns in SQL Server'/><category term='Data Compression in SQL Server 2008'/><category term='ASCII function in SQL Server'/><category term='Default value in sql server'/><category term='update with join in SQL Server'/><category term='exec stored procedure into a sql server table.'/><category term='All Tables+rowcount in SQL Server'/><category term='Logged in user details in sql server'/><category term='CASE Operator in SQL Server'/><category term='General options in SQL Server'/><category term='Confused Nation - A Social thought'/><category term='SSIS package problem'/><category term='Grant vs With Grant option in SQL Server'/><category term='migrate data from one database to another database'/><category term='Attaching and Detaching SQL Server database'/><category term='Composite primary key in SQL Server'/><category term='Trigger to trigger other triggers in SQL Server'/><category term='Feedback about this blog'/><category term='revoking the permission in SQL Server'/><category term='Database Log file size in SQL Server'/><category term='The ALTER TABLE statement conflicted with the FOREIGN KEY constraint'/><category term='Round function in SQL Server'/><category term='Horizontal Partitioning and Vertical partitioning'/><category term='Not In Vs Not exists clause in SQL Server - Part 1'/><category term='Unpivot in SQL Server 2005'/><category term='Quoting the input string with the specified character'/><category term='Comparing two queries for performance'/><category term='SSIS deployment error'/><category term='Get Databasename from Database ID in SQL Server'/><category term='Microsoft Wiki'/><category term='Generating Alpha numeric values in SQL Server like Identity property'/><category term='Insert records in an identity column'/><category term='Get autoclose and autoshrink values for the databases in sql server'/><category term='To get last record in the table'/><category term='Dynamic queries with varchar as input variable in sql server'/><category term='Get first and last record in a table in SQL Server'/><category term='List down all the collations available in SQL Server'/><category term='SQL Server 2000 DTS Designer components'/><category term='Microsoft Deep Dive session'/><category term='SQL Server Jobs - In and Outs'/><category term='To find row number in sql server 2000'/><category term='SSIS Warnings'/><category term='Compatibility Level in SQL Server 2008'/><category term='Foreign key relationship in sql server'/><category term='Simple logic on rows to columns in sql server'/><category term='sleep process in c#'/><category term='Stored procedure execution on SQL Server startup'/><category term='Converting nVarchar to Float in SQL Server'/><category term='Enable Backup compression in SQL Server'/><category term='Self Join + Case statement in SQL Server'/><category term='Excel data to database'/><category term='Char / Varchar / Nvarchar datatype in SQL Server'/><category term='Cursors in SQL Server'/><category term='Inputs with Single quotes in SQL Server'/><category term='Compatibility Level in SQL Server'/><category term='Dynamic database name in the stored procedure'/><category term='SQL Server restart error'/><category term='Temporary Table Vs Table variable'/><category term='Find the last executed command in your sql server'/><category term='Started my Training based company'/><category term='Drop all tables in a SQL Server'/><category term='Strange error in dynamic queries in SQL Server'/><category term='Case in Select statement in SQL Server'/><category term='Decode - Equivalent function in SQL Server'/><category term='Fetch random records from the table using NewID() function'/><category term='Variable as column name in sql server'/><category term='Converting RGB image or psd to CMYK'/><category term='Collate in SQL Server'/><category term='SQL Server Integration Services (SSIS)'/><category term='UPdate statment with inner join in sql server'/><category term='Executing SQL Scripts using SQL Server'/><category term='Magic Tables in SQL Server'/><category term='Language ID in SQL Server'/><category term='Indexing Table variables in SQL Server'/><category term='Enable xp_cmdshell in SQL Server 2005 and above version'/><category term='Update table based on the other column'/><category term='Percentage of log file utilised'/><category term='Foreign key constraint in SQL Server'/><category term='Setting Compatibility Levels in SQL Server'/><category term='Datatype filteration in sql server 2005'/><category term='Fantastic chennai event on SQL Server'/><category term='Indexes in SQL Server'/><category term='Calculation based on the month (sum with Group by month) in sq server'/><category term='Total number of SP and triggers in the database'/><category term='To find recently executed queries in SQL Server'/><category term='SQL Server Performance perspectives'/><category term='Issue with Audit enabling in SQL Server 2008'/><category term='Distributed Database Management System'/><category term='Controlling query time execution'/><category term='Count of Null values in sql server'/><category term='sp_who and sp_who2 in SQL Server'/><category term='Copy data from table in SQL Server'/><category term='Tamil Joke - If we got chance to speak truth in interview'/><category term='Created my own Blog'/><category term='Search text in the SQL Stored procedure'/><category term='My Onsite travel'/><category term='DBA issue in SQL Server - Backup size and table size is growing more'/><category term='Numeric datatype in SQL Server'/><category term='Installer issue in Dotnet application'/><category term='SQL server Interview queries'/><category term='Interesting behaviour of SQL Server'/><category term='Select Statement execution order in sql server'/><category term='Inline variable assignments in SQL Server 2008'/><category term='Get the n th value from the table'/><category term='All about tempdb database in SQL Server'/><category term='Identify hard coded values in stored procedures'/><category term='Session expiration timeout in asp.net'/><category term='Retrieve Owner of the database in SQL Server'/><category term='Keyboard Shortcuts in SQL Server'/><category term='XML to XSD'/><category term='My Photo'/><category term='Cleared 070-443 exam'/><category term='Insert records from other table using insert statement'/><category term='Union operator in SQL Server'/><category term='Interesting facts about Case statement in SQL Server'/><category term='Download Service packs for SQL Server 2005'/><category term='Delete duplicate records in SQL Server 2000 and 2005'/><title type='text'>Welcome to SQLServer MVP Blog</title><subtitle type='html'>Venkatesan Prabu MCITP,MCAD,MCTS,CCNA. Worked as a ProjectLead(Senior .Net developer,SQL DBA).

Now, Managing Director of KAASHIV INFO TECH, Chennai
This Blog aims in serving the community in a better way. This blog is read by developers in 159 countries with average of 400 hits per day. Please post your valuable suggestions and hold my hand to serve the community. Lets make a new world with good thoughts and good minds.......

This blog serves the SQL server community all over the world.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default?start-index=101&amp;max-results=100'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>415</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-9070594280920522747</id><published>2012-01-30T18:02:00.000-08:00</published><updated>2012-01-30T18:02:36.281-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='To check file exists or not in c#'/><title type='text'>To check file exists or not in c#</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Method to check whether the file&amp;nbsp;is exist or not,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;C#&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;if(System.IO.File.Exists(@”d:\mytest.xml”))&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //True statements comes here&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code check whether a file named “mytest.xml” exist in the D:\ drive or not.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-9070594280920522747?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/9070594280920522747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=9070594280920522747' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9070594280920522747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9070594280920522747'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/to-check-file-exists-or-not-in-c.html' title='To check file exists or not in c#'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-141411077760828057</id><published>2012-01-27T11:35:00.000-08:00</published><updated>2012-01-27T11:35:22.337-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Namespace not listing in windows forms for class library'/><title type='text'>Unable to invoke a class in C#</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;I've tried to invoke an object for a class in the external project in Windows Forms (C#).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;using&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Somehow, I've added the dll as the reference.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Tried to add the namespace. Unfortunately, I couldn't include the namespace.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Digging the content, I found the real reason for this issue.&amp;nbsp; The reason is,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;1. The class is not declared as public&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;2. May be the issue is with the namespace.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt; ExcelObject;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-141411077760828057?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/141411077760828057/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=141411077760828057' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/141411077760828057'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/141411077760828057'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/unable-to-invoke-class-in-c.html' title='Unable to invoke a class in C#'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4372751543518978648</id><published>2012-01-27T10:58:00.000-08:00</published><updated>2012-01-27T10:58:47.567-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error while excel document creation'/><title type='text'>Exception from HRESULT: 0x800AC472</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Exception from HRESULT: 0x800AC472 - We will get this error while creating excel sheet through C# or while populating the data from the database considering SQL Server.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Reason:&lt;/strong&gt;&lt;/u&gt; A normal issue happening due to cross-threading in the applicaiton. &lt;br /&gt;&lt;br /&gt;It's due to user's interruption while Excel document creation or any other process interrupting Excel document creation.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkat&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4372751543518978648?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4372751543518978648/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4372751543518978648' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4372751543518978648'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4372751543518978648'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/exception-from-hresult-0x800ac472.html' title='Exception from HRESULT: 0x800AC472'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4904544789076935169</id><published>2012-01-27T10:48:00.000-08:00</published><updated>2012-01-27T10:48:39.636-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Toggle key issue in Windows Vista'/><title type='text'>Toggle key issue in Windows Vista</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While pressing Control button for a quite long time, you will be entered into Toggle key mode.&lt;br /&gt;&lt;br /&gt;It disables some of the necessary functionalities like moving the cursor. In turn, it will select the content instead of navigating the cursor.&lt;br /&gt;&lt;br /&gt;Do not get tensed on this issue? here is the solution for the same.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://askville.amazon.com/turn-filter-keys/AnswerViewer.do?requestId=10388385"&gt;http://askville.amazon.com/turn-filter-keys/AnswerViewer.do?requestId=10388385&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;In simple words, Press both the shift button, you will comeout from the toggle mode.&lt;br /&gt;&lt;br /&gt;All the best.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head, KaaShiv InfoTech, Chennai&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4904544789076935169?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4904544789076935169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4904544789076935169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4904544789076935169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4904544789076935169'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/toggle-key-issue-in-windows-vista.html' title='Toggle key issue in Windows Vista'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8402607435001558499</id><published>2012-01-24T17:01:00.000-08:00</published><updated>2012-01-24T17:01:10.532-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dotnet 4.0 Chart issue'/><title type='text'>Dotnet 4.0 Chart issue</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While working with Chart control in .net 4.0. I found the below issue.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;A chart element with the name 'Default' could not be found in the 'ChartAreaCollection'.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Reason for the issue: It indicates that, the element default is not i&lt;span style="color: red;"&gt;nitilized as ChartAreaCollection.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;To resolve this problem, we need to create it.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;chartl.ChartAreaCollection.Add("Default");&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;The above line will resolve the problem.&lt;/div&gt;&lt;span style="color: red;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;Head, www.kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8402607435001558499?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8402607435001558499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8402607435001558499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8402607435001558499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8402607435001558499'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/dotnet-40-chart-issue.html' title='Dotnet 4.0 Chart issue'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7378499868029400585</id><published>2012-01-14T23:35:00.000-08:00</published><updated>2012-01-14T23:35:47.601-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Time dimesions in SSAS'/><title type='text'>Time dimesions in SSAS</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Wish you happy new year to all my readers.&lt;br /&gt;&lt;br /&gt;Once I have started working on Time dimesions for SSAS cubes. I got a peculiar error while executing it. Below is the error,&lt;br /&gt;&lt;br /&gt;A time dimension is required to enable this functionality. Ensure that you have a dimension of type Time, &lt;br /&gt;that contains at least one hierarchy with a level flagged as a time period. &lt;br /&gt;&lt;br /&gt;The reason for this issue is,&lt;br /&gt;&lt;br /&gt;1. Atleast one dimensions for the cube should have the type as "Time"&lt;br /&gt;2. So that, the cubes data can be evaluated based on the time dimensions.&lt;br /&gt;&lt;br /&gt;To create Time dimensions, click "Add Business Intelligence"&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-MYy45gmb5lI/TxKBE7SePtI/AAAAAAAAFZo/Mat1qhAGPYg/s1600/1.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" kba="true" src="http://2.bp.blogspot.com/-MYy45gmb5lI/TxKBE7SePtI/AAAAAAAAFZo/Mat1qhAGPYg/s1600/1.png" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp;For the Time dimensions, you need to right click and change the type in the properties window.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-4HEuipY82eg/TxKBHXSnuHI/AAAAAAAAFZw/GFag53l1AZA/s1600/2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" kba="true" src="http://4.bp.blogspot.com/-4HEuipY82eg/TxKBHXSnuHI/AAAAAAAAFZw/GFag53l1AZA/s320/2.png" width="309" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-w_YPM9PV4Ow/TxKBIXe3LII/AAAAAAAAFZ4/vLqyPjmVRSs/s1600/3.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320" kba="true" src="http://4.bp.blogspot.com/-w_YPM9PV4Ow/TxKBIXe3LII/AAAAAAAAFZ4/vLqyPjmVRSs/s320/3.png" width="257" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Cheers,&lt;/div&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7378499868029400585?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7378499868029400585/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7378499868029400585' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7378499868029400585'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7378499868029400585'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2012/01/time-dimesions-in-ssas.html' title='Time dimesions in SSAS'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-MYy45gmb5lI/TxKBE7SePtI/AAAAAAAAFZo/Mat1qhAGPYg/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8783666231848173583</id><published>2011-11-21T17:43:00.000-08:00</published><updated>2011-11-21T17:43:12.993-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Cannot connect to Analysis Services version &apos;10.50.1600.1&apos;.'/><title type='text'>Cannot connect to Analysis Services version '10.50.1600.1'.</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&amp;nbsp;Here is one of the peculiar issue related to SSAS.&lt;br /&gt;&lt;br /&gt;&lt;b style="color: red;"&gt;&lt;u&gt;Error Details&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Microsoft Visual Studio&lt;br /&gt;---------------------------&lt;br /&gt;Cannot connect to Analysis Services version '10.50.1600.1'.&lt;br /&gt;---------------------------&lt;br /&gt;OK&amp;nbsp;&amp;nbsp; &lt;br /&gt;---------------------------&lt;br /&gt;&lt;br /&gt;Error&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&amp;nbsp;&amp;nbsp;&amp;nbsp; The project could not be deployed to the 'Venkat-PC' server because of the following connectivity problems :&amp;nbsp; Cannot connect to Analysis Services version '10.50.1600.1'.&amp;nbsp; To verify or update the name of the target server, right-click on the project in Solution Explorer, select Project Properties, click on the Deployment tab, and then enter the name of the server.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;------------------------- ---------------------------------------------------------------------------&lt;br /&gt;As usual, I have done the changes specified in the error message. Still, I couldn't figure out the issue.&lt;br /&gt;Eureka, got a strike on this issue.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Can you guess the problem??????????&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: red;"&gt;Solution:&lt;/div&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&lt;span style="color: blue;"&gt;&amp;nbsp; 1. May be ur SSAS port is blocking( add port 2383 to the SQL Server Connections in the Windows Firewall.)&lt;/span&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp; 2. Ensure your SSAS services and Browser services is running fine in Services.msc console.&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp; 3. Right click on the project properties and check the deployment server as your server name instead of "local host"&lt;/div&gt;&lt;div style="color: blue;"&gt;&amp;nbsp; 4. Finally :-) Do not open your project in Microsoft Visual studio console. Instead try to open the BIDS tool to deploy your cubes. Some how, SSAS is not allowing the users to deploy the cubes from this console. (here is the mistake, I have done) Fortunately resolved it.&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8783666231848173583?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8783666231848173583/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8783666231848173583' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8783666231848173583'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8783666231848173583'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/cannot-connect-to-analysis-services.html' title='Cannot connect to Analysis Services version &apos;10.50.1600.1&apos;.'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5710728471461990269</id><published>2011-11-19T23:45:00.000-08:00</published><updated>2011-11-19T23:45:45.016-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Issue with DatetimePicker data'/><title type='text'>Issue with DatetimePicker data</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: red;"&gt;Error String: The string was not recognized as a valid DateTime. There is a unknown word starting at index 0.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp; The reason for this issue is, the application is trying to convert the data from DateTimePicker to datetime and it's failing.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;&amp;nbsp;&amp;nbsp; The reason is, I;ve tried to pick the data wrongly. dtTimePicker.ToString() -&amp;gt; Instead we have to use dtTimePicker.Text.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: blue;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5710728471461990269?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5710728471461990269/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5710728471461990269' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5710728471461990269'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5710728471461990269'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/issue-with-datetimepicker-data.html' title='Issue with DatetimePicker data'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2078218114080246388</id><published>2011-11-16T23:09:00.000-08:00</published><updated>2011-11-16T23:33:37.048-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='404 Errors after clicking Wordpress links'/><title type='text'>404 Errors after clicking Wordpress links</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;h1 class="subject"&gt;&lt;span style="font-size: small;"&gt;404 Errors - Page Not found issue. After clicking Wordpress links&lt;/span&gt;&lt;/h1&gt;&lt;h1 class="subject" style="font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;Here is the steps to escape from this issue.&lt;/span&gt;&lt;/h1&gt;&lt;ol style="font-family: inherit;"&gt;&lt;li&gt;   Login to the WordPress Dashboard&lt;/li&gt;&lt;li&gt;   Click of Settings on the menu on the left hand side.&lt;/li&gt;&lt;li&gt;   Click on Permanlinks under Settings.&lt;/li&gt;&lt;li&gt;   Remember which setting it is set on now.&amp;nbsp; (If you are using a custom structure, copy or save the custom structure somewhere.)&lt;/li&gt;&lt;li&gt;   Select Default&lt;/li&gt;&lt;li&gt;   Click on Save Changes&amp;nbsp;&amp;nbsp;&amp;nbsp; --- &lt;span style="color: red;"&gt;Stay here and check your site. It will work fine :-)&lt;/span&gt;&lt;/li&gt;&lt;li&gt;   Change it back to the setting it was on before you selected Default. (Put the custom structure back if you had one.)&lt;/li&gt;&lt;li&gt;   Click Save Changes&lt;/li&gt;&lt;/ol&gt;&lt;div style="font-family: inherit;"&gt;If the above steps didn't fix your issue. Then, change the .htaccess file.&lt;/div&gt;&lt;div style="color: #20124d; font-family: inherit;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: blue; font-family: inherit;"&gt;&amp;nbsp;&lt;code&gt;# BEGIN WordPress&lt;br /&gt;&lt;ifmodule mod_rewrite.c=""&gt;&lt;br /&gt;RewriteEngine On&lt;br /&gt;RewriteBase /&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-f&lt;br /&gt;RewriteCond %{REQUEST_FILENAME} !-d&lt;br /&gt;RewriteRule . /index.php [L]&lt;br /&gt;&lt;/ifmodule&gt;&lt;br /&gt;&lt;br /&gt;# END WordPress&amp;nbsp;&lt;/code&gt;&lt;/div&gt;&lt;div style="color: blue; font-family: inherit;"&gt;&lt;br /&gt;&lt;div style="color: black;"&gt;Option2:&amp;nbsp;&lt;/div&gt;&lt;br /&gt;rename the .htaccess file. change the permalink settings. This will generate the new .htaccess file and you are able to login perfectly.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;code&gt;Cheers,&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;code&gt;Venkatesan Prabu. J&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: inherit;"&gt;&lt;span style="font-size: small;"&gt;&lt;code&gt;Head, Kaashiv Infotech&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: black; font-family: Arial,Helvetica,sans-serif;"&gt;&lt;span style="font-size: small;"&gt;&lt;code&gt;Chennai.&lt;/code&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2078218114080246388?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2078218114080246388/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2078218114080246388' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2078218114080246388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2078218114080246388'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/404-errors-after-clicking-wordpress.html' title='404 Errors after clicking Wordpress links'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5026041188079006085</id><published>2011-11-04T07:22:00.000-07:00</published><updated>2011-11-04T07:22:53.989-07:00</updated><title type='text'>Carefull while copying the code from pdf</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I've happened to copy a small test code from PDF and while executing, I got the below error. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;System.Windows.Markup.XamlParseException: Invalid character in the given encoding. Line 1, position 13.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The reason is due to Double quotes and it's not a technical bad code :-)&lt;br /&gt;&lt;br /&gt;Be careful while copying the code from PDF. Mostly, it won't work due to this kind of simple issues.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - Kaashiv infotech&lt;br /&gt;www.kaashivinfotech.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5026041188079006085?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5026041188079006085/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5026041188079006085' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5026041188079006085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5026041188079006085'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/carefull-while-copying-code-from-pdf.html' title='Carefull while copying the code from pdf'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2791919770481072640</id><published>2011-11-02T06:36:00.000-07:00</published><updated>2011-11-02T06:36:34.704-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sleep process in c#'/><title type='text'>Enabling delay process in c#</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;To achieve a delay in processing, you have add the name space&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: blue; font-family: Consolas; font-size: x-small;"&gt;using&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt; System.Threading;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add the below code in the place where you want the delay&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;br /&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;Thread&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;.Sleep(200);&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Cheers,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Head, Kaashiv infotech,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;Chennai&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;span style="font-family: Consolas; font-size: x-small;"&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;span style="color: #2b91af; font-family: Consolas; font-size: x-small;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2791919770481072640?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2791919770481072640/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2791919770481072640' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2791919770481072640'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2791919770481072640'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/enabling-delay-process-in-c.html' title='Enabling delay process in c#'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2004260763052510114</id><published>2011-11-02T06:22:00.000-07:00</published><updated>2011-11-02T06:22:00.677-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Auto Scroll option in List box'/><title type='text'>Auto Scroll option in List box</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;Here is a small code snippet to scroll the content in List box. (If the items are more)&lt;br /&gt;&lt;br /&gt;In the top, you should add the code&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;this.listBox1.TopIndex = 0; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;After wards, you have to modify the index of the list box slowly.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;listBox1.Items.Add(line);&lt;/span&gt;&lt;br style="color: #990000;" /&gt;&lt;span style="color: #990000;"&gt;this.listBox1.TopIndex = listBox1.Items.Count - 1;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Check my previous post for the entire piece of code.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head, KaaShiv InfoTech,&lt;br /&gt;Chennai.&lt;br /&gt;&lt;br /&gt;WWW.kaashivinfotech.com&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2004260763052510114?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2004260763052510114/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2004260763052510114' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2004260763052510114'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2004260763052510114'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/auto-scroll-option-in-list-box.html' title='Auto Scroll option in List box'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2508099624074828912</id><published>2011-11-02T06:18:00.000-07:00</published><updated>2011-11-02T06:18:13.494-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Read text file line by line in C#'/><title type='text'>Read text file line by line in C#</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;I happened to work on files. My condition to read the file line by line.&lt;br /&gt;&lt;br /&gt;Here is a small piece of code to read the file line by line.... I got the snippet from Microsoft BOL.&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #990000;"&gt;private void btnBrowse_Click(object sender, EventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; int counter = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; string line;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; rtb_filecontent.Text = "";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Read the file and display it line by line.&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.IO.StreamReader file =&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; new System.IO.StreamReader("D:\\1.txt");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.listBox1.TopIndex = 0;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; while ((line = file.ReadLine()) != null)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // rtb_filecontent.Text = rtb_filecontent.Text + "\n" + line;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; listBox1.Items.Add(line);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //rtb_filecontent.AutoScrollOffset = new Point(rtb_filecontent.AutoScrollOffset.Y, 10);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thread.Sleep(200);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; counter++;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; file.Close();&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/div&gt;&lt;br /&gt;Happy Coding&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head, KaaShiv InfoTech.&lt;br /&gt;Chennai&lt;br /&gt;&lt;br /&gt;www.kaashivinfotech.com&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2508099624074828912?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2508099624074828912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2508099624074828912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2508099624074828912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2508099624074828912'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/read-text-file-line-by-line-in-c.html' title='Read text file line by line in C#'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8019400084015295906</id><published>2011-11-01T16:35:00.000-07:00</published><updated>2011-11-01T16:35:11.616-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Quoting the input string with the specified character'/><title type='text'>Quoting the input string with the specified character</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While focusing injection related issue, I happen to look into the function QuoteName method in SQL Server. It's used to Enclose or Quote a string with the specified character string.&lt;br /&gt;&lt;br /&gt;Consider the below query, am asking SQL Server to enclose the string with [ ] (Bracket)&lt;br /&gt;&lt;br /&gt;SELECT QUOTENAME('abc&amp;nbsp; [&amp;nbsp;&amp;nbsp; ] def','[]')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The output is,&lt;br /&gt;&lt;br /&gt;[abc&amp;nbsp; [&amp;nbsp;&amp;nbsp; ]] def]&lt;br /&gt;&lt;br /&gt;This function is really useful to enclose the string with the specified literal and avoid SQL Injection issues while passing the parameter. &lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;www.kaashivinfotech.com &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8019400084015295906?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8019400084015295906/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8019400084015295906' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8019400084015295906'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8019400084015295906'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/quoting-input-string-with-specified.html' title='Quoting the input string with the specified character'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3418236381962228958</id><published>2011-11-01T06:40:00.000-07:00</published><updated>2011-11-01T06:40:00.433-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Listing down Server directories in SQL Server'/><title type='text'>Listing down Server directories in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&lt;u&gt;Listing down the directories in the server:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp; Below is the command used to list down the directories in the server.&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;span style="color: #4c1130;"&gt; exec master..xp_cmdshell 'dir'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-KvUvuzVihAI/Tq_2VJ_sL6I/AAAAAAAAFZE/F5Mcn1mN8Qs/s1600/2011-11-01_190550.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="205" src="http://1.bp.blogspot.com/-KvUvuzVihAI/Tq_2VJ_sL6I/AAAAAAAAFZE/F5Mcn1mN8Qs/s320/2011-11-01_190550.png" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Thanks and Regards,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Microsoft MVP&lt;br /&gt;Head - KaaShiv InfoTech&lt;br /&gt;Chennai.&lt;br /&gt;&lt;br /&gt;www.kaashivinfotech.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3418236381962228958?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3418236381962228958/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3418236381962228958' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3418236381962228958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3418236381962228958'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/listing-down-server-directories-in-sql.html' title='Listing down Server directories in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-KvUvuzVihAI/Tq_2VJ_sL6I/AAAAAAAAFZE/F5Mcn1mN8Qs/s72-c/2011-11-01_190550.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7928944530312727405</id><published>2011-11-01T06:35:00.000-07:00</published><updated>2011-11-01T06:35:22.044-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error in executing xp_cmdshell command'/><title type='text'>Error in executing xp_cmdshell command</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;xp_cmdshell is one of the important command to access the system resources. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;SQL Server blocked access to procedure 'sys.xp_cmdshell' of component 'xp_cmdshell' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'xp_cmdshell' by using sp_configure. For more information about enabling 'xp_cmdshell', see "Surface Area Configuration" in SQL Server Books Online.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: #274e13;"&gt;Solution:&lt;/div&gt;&lt;br /&gt;As told in my previous post, by default highly secure system related properties will be made disabled.&lt;br /&gt;&lt;br /&gt;&lt;blockquote class="tr_bq" style="color: #4c1130;"&gt;EXEC sp_configure 'show advanced options', 1&lt;br /&gt;RECONFIGURE WITH OVERRIDE&lt;br /&gt;EXEC sp_configure 'xp_cmdshell', 1&lt;br /&gt;RECONFIGURE WITH OVERRIDE&lt;/blockquote&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - KaaShiv InfoTech,&lt;br /&gt;www.kaashivinfotech.com&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7928944530312727405?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7928944530312727405/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7928944530312727405' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7928944530312727405'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7928944530312727405'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/error-in-executing-xpcmdshell-command.html' title='Error in executing xp_cmdshell command'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3553440827242230167</id><published>2011-11-01T04:59:00.000-07:00</published><updated>2011-11-01T04:59:44.597-07:00</updated><title type='text'>Error in executing OpenRowset or OpenDatasource queries</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;While executing&amp;nbsp; OpenRowset or OpenDatasource queries, you will get the below error.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;SQL Server blocked access to STATEMENT 'OpenRowset/OpenDatasource' of component 'Ad Hoc Distributed Queries' because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of 'Ad Hoc Distributed Queries' by using sp_configure. For more information about enabling 'Ad Hoc Distributed Queries', &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div style="color: blue;"&gt;&lt;b&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: blue;"&gt;&lt;span style="color: black;"&gt;By default, SQL Server will disable the options related to the server. We need to enable the same by executing the below queries. &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;blockquote class="tr_bq"&gt;&lt;span style="color: #783f04;"&gt;EXEC sp_configure 'show advanced options', 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;RECONFIGURE WITH OVERRIDE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;EXEC sp_configure 'Ad Hoc Distributed Queries', 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;RECONFIGURE WITH OVERRIDE&lt;/span&gt;&lt;/blockquote&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu. J&lt;br /&gt;Head&amp;nbsp; - Kaashiv InfoTech, Chennai&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3553440827242230167?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3553440827242230167/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3553440827242230167' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3553440827242230167'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3553440827242230167'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/11/while-executing-openrowset-or.html' title='Error in executing OpenRowset or OpenDatasource queries'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-6472815474342444381</id><published>2011-09-03T09:50:00.000-07:00</published><updated>2011-09-03T09:50:20.269-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Session expiration timeout in asp.net'/><title type='text'>Session State Timeout in ASP.Net</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Recently, I thought of including some job related information in my website &lt;/span&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;WWW.KaaShivInfoTech.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;After deploying my code, I faced a typical issue of application pool fill for the objects.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Due to some poor coding, I allowed the user to logged in with a username and password. Unfortunately, I didn't give proper access for signing out.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Guessing, the session of the user took 30 minutes expiration time (Standard session expiration time). Since, most of the users are accessing this site and closing it with proper signing out. The objects started accumulating. At present, I dont have any idea to implement sign out option. &lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;So I thought putting some timeout options in the connection string&amp;nbsp;and web.config file. Thought of sharing the same to you all.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="color: #2b91af;"&gt;&lt;span style="color: #2b91af;"&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;span closure_uid_3fq0o6="484"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;In the connection string, I've added timout option as 5 minutes. If the database is accessed for more than 5 minutes, the connection should be thrown out.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;span closure_uid_3fq0o6="484"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;or else,&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;span closure_uid_3fq0o6="484"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;we can do some changes in web.config file under system.web section&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="485"&gt;&lt;span closure_uid_3fq0o6="484"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;system.web&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;sessionstate &lt;="" font="" timeout="5"&gt;&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div closure_uid_3fq0o6="518"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;cookieless="true"&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="515"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="516"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;regenerateExpiredSessionId="true"&amp;gt;&lt;/sessionstate&gt;&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_3fq0o6="516"&gt;&lt;span style="font-family: Arial;"&gt;&lt;/span&gt;&amp;nbsp; &lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Cheers,&lt;/span&gt; &lt;br /&gt;&lt;div closure_uid_3fq0o6="512"&gt;&lt;span style="color: blue; font-family: Arial, Helvetica, sans-serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_3fq0o6="482"&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #990000;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;String&lt;/span&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt; connection = &lt;span closure_uid_3fq0o6="483"&gt;"Server=xxx; port=3309; DATABASE=xxx;UID=xxx;PASSWORD=xxxxxx#;timeout=5;"&lt;/span&gt;&lt;span closure_uid_3fq0o6="484"&gt;;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-6472815474342444381?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/6472815474342444381/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=6472815474342444381' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6472815474342444381'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6472815474342444381'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/09/session-state-timeout-in-aspnet.html' title='Session State Timeout in ASP.Net'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-6389850724692795936</id><published>2011-08-12T06:57:00.000-07:00</published><updated>2011-08-12T06:57:04.009-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installing AdventureWorks database for SQL Server 2008R2 version'/><title type='text'>Installing AdventureWorks database for SQL Server 2008R2 version</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;Path for getting the sample Adventure works database is,&lt;br /&gt;&lt;br /&gt;&lt;div closure_uid_8d2bz2="615"&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/55926"&gt;http://msftdbprodsamples.codeplex.com/releases/view/55926&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="615"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="615"&gt;Download and execute the exe available in the path.&lt;/div&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" closure_uid_8d2bz2="598" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-QoGo__kH1Dk/TkUwPE6KLMI/AAAAAAAAFYo/FNE_O4mVXAo/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260px" naa="true" src="http://1.bp.blogspot.com/-QoGo__kH1Dk/TkUwPE6KLMI/AAAAAAAAFYo/FNE_O4mVXAo/s320/1.jpg" width="320px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="separator" closure_uid_8d2bz2="598" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" closure_uid_8d2bz2="598" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-wDW0Hi_FXOk/TkUwSrr4a3I/AAAAAAAAFYw/v9slOzterQs/s1600/2.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="260px" naa="true" src="http://1.bp.blogspot.com/-wDW0Hi_FXOk/TkUwSrr4a3I/AAAAAAAAFYw/v9slOzterQs/s320/2.jpg" width="320px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Analysis Services related databases needs to be manually configured and here is the procedure to achieve the same,&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/wikipage?title=Installing%20Analysis%20Services%20Database"&gt;http://msftdbprodsamples.codeplex.com/wikipage?title=Installing%20Analysis%20Services%20Database&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;For any issues, you can check my previous articles&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/2011/08/adventure-works-deployment-issue-in-sql.html"&gt;http://venkattechnicalblog.blogspot.com/2011/08/adventure-works-deployment-issue-in-sql.html&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Cheers,&lt;/div&gt;&lt;div closure_uid_8d2bz2="648" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-6389850724692795936?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/6389850724692795936/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=6389850724692795936' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6389850724692795936'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6389850724692795936'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/08/installing-adventureworks-database-for.html' title='Installing AdventureWorks database for SQL Server 2008R2 version'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-QoGo__kH1Dk/TkUwPE6KLMI/AAAAAAAAFYo/FNE_O4mVXAo/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7152312850279537907</id><published>2011-08-12T06:50:00.000-07:00</published><updated>2011-08-12T06:50:48.170-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Deployment issue in SQL Server Analysis Services'/><title type='text'>Deployment issue in SQL Server Analysis Services</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_moyop7="480"&gt;While trying to deploy SQL Server Analysis related database, I got the below error.&lt;/div&gt;&lt;div closure_uid_moyop7="480"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_moyop7="479"&gt;-------------------------------------------------------------------------------------------------------------&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #660000;"&gt;Microsoft Visual Studio&lt;/span&gt; &lt;br /&gt;&lt;div closure_uid_moyop7="466"&gt;&lt;span style="color: #660000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #660000;"&gt;--------------------------&lt;/span&gt;&lt;br /&gt;&lt;div closure_uid_moyop7="467"&gt;&lt;span style="color: #660000;"&gt;The solution file 'C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project\enterprise\Adventure Works.sln' was not written successfully. Check that the location is available, the file is writeable and there is enough room on the disk.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&lt;span closure_uid_moyop7="489" style="color: #660000;"&gt;-------------------------------------------------------------------------------------------------------------&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&amp;nbsp; &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&lt;span style="color: #20124d;"&gt;&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&amp;nbsp; &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&amp;nbsp;Open the application under administrator rights, Deployment or building the application will work fine. &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;&amp;nbsp; &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;Cheers, &lt;/div&gt;&lt;div closure_uid_moyop7="478"&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7152312850279537907?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7152312850279537907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7152312850279537907' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7152312850279537907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7152312850279537907'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/08/deployment-issue-in-sql-server-analysis.html' title='Deployment issue in SQL Server Analysis Services'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4832330174734907434</id><published>2011-08-12T06:42:00.000-07:00</published><updated>2011-08-12T06:42:34.113-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Adventure Works deployment issue in SQL Server Analysis Services'/><title type='text'>Adventure Works deployment issue in SQL Server Analysis Services</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #660000; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong closure_uid_j3fyud="754"&gt;&lt;u&gt;Errors while deploying the AdventureWorksDW2008R2 database:&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;span closure_uid_j3fyud="753" style="font-family: Arial, Helvetica, sans-serif;"&gt;Not sure, why microsoft made this deployement too complex. Anyway, i've started deploying my database into my server.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Got the database from the path,&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;a href="http://msftdbprodsamples.codeplex.com/releases/view/55926"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;http://msftdbprodsamples.codeplex.com/releases/view/55926&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="475"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="476" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span closure_uid_j3fyud="756" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;"&gt;Error 2 OLE DB error: OLE DB or ODBC error: Login timeout expired; HYT00; A network-related or instance-specific error has occurred while establishing a connection to SQL Server. Server is not found or not accessible. Check if instance name is correct and if SQL Server is configured to allow remote connections. For more information see SQL Server Books Online.; 08001; Named Pipes Provider: Could not open a connection to SQL Server [2]. ; 08001. 0 0 &lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="732" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span closure_uid_j3fyud="759" style="color: #cc0000; font-family: Arial, Helvetica, sans-serif;"&gt;Error 3 Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of 'Adventure Works DW', Name of 'Adventure Works DW'. 0 0 &lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #274e13; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;strong&gt;&lt;u&gt;Solution:&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;The solution file for deploying your database is located in the below path,&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;C:\Program Files\Microsoft SQL Server\100\Tools\Samples\AdventureWorks 2008R2 Analysis Services Project&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Do the below checks,&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #20124d; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 1. Right click on the project -&amp;gt; Properties -&amp;gt; Deployment -&amp;gt; Give the ServerName and Instance Name properly.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #20124d; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 2. Open the application under administrator. So that, you won't face any deployment issue.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span closure_uid_j3fyud="764" style="color: #20124d; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 3. Double click on the Adventure Works.ds (DataSource)- &amp;gt; In connection string, click "Edit" -&amp;gt; Give the Servername and instance name properly and "Test" the connection properly.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="color: #20124d; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 4. Try checking your Analysis services by logging through SSMS.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;That's it, your deployment is successful. All the best.... Keep loving SQL. :-) Server&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="separator" closure_uid_j3fyud="696" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-2qoFtIGYH4s/TkUsgJOaa3I/AAAAAAAAFYk/3fkEcNUJBLQ/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;img border="0" height="301px" naa="true" src="http://2.bp.blogspot.com/-2qoFtIGYH4s/TkUsgJOaa3I/AAAAAAAAFYk/3fkEcNUJBLQ/s320/1.jpg" width="320px" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div closure_uid_j3fyud="484" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Happy Learning!!!&lt;/span&gt;&lt;br /&gt;&lt;div closure_uid_j3fyud="766"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Cheers,&lt;/span&gt; &lt;/div&gt;&lt;div closure_uid_j3fyud="765"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4832330174734907434?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4832330174734907434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4832330174734907434' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4832330174734907434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4832330174734907434'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/08/adventure-works-deployment-issue-in-sql.html' title='Adventure Works deployment issue in SQL Server Analysis Services'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-2qoFtIGYH4s/TkUsgJOaa3I/AAAAAAAAFYk/3fkEcNUJBLQ/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-928917986270743141</id><published>2011-08-12T04:34:00.000-07:00</published><updated>2011-08-12T04:34:31.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Connecting SQL Server Analaysis Services Engine'/><title type='text'>Connecting SQL Server Analaysis Services Engine</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Dear Readers,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;span closure_uid_toirsp="500" style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Writing my article after a very long time. I am totally engaged with my office works and couldn't spend my time to my lovable SQL Server Technology. Anyway, I bagged my Microsoft award as Most Valuable Professional for the fourth year and I would like to thank Microsoft MVP Selection commitee for awarding me this award.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; Ok, here is some interesting topics. Now, am into SQL BI area :-)&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Installed all the services in my machine (SQL Server DB Engine, SQL Server Analysis Services)&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;---------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="461"&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;ADDITIONAL INFORMATION:&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="468"&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="484"&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;A connection cannot be made to redirector. Ensure that 'SQL Browser' service is running. (Microsoft.AnalysisServices.AdomdClient)&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="467"&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="466"&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;No connection could be made because the target machine actively refused it 127.0.0.1:2382 (System)&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;---------------------------------------------------------------------------------------------------------&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Tried to access my SSAS, I couldn't connect. I got the above error while connecting the SSAS engine.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="color: #7f6000; font-family: Arial, Helvetica, sans-serif;"&gt;Reason:&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&lt;span closure_uid_toirsp="487" style="color: #20124d;"&gt;&amp;nbsp; 1. Check your SQL Browser Services and if it's not started then start the same.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span closure_uid_toirsp="490" style="color: #20124d; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; 2. The second interesting thing is :-) :-)&amp;nbsp; All the services should run under the same Service account.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Now refresh the Services.msc console. Goto your SSMS, now try to connect it...Yes, you are into the world of SQL Server Analaysis Services.&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;Keep watching my blog for more SSAS artciles. &lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="color: #660000; font-family: Arial, Helvetica, sans-serif;"&gt;Happy Learning!!!&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="color: #660000; font-family: Arial, Helvetica, sans-serif;"&gt;Cheers,&lt;/span&gt;&lt;/div&gt;&lt;div closure_uid_toirsp="485"&gt;&lt;span style="color: #660000; font-family: Arial, Helvetica, sans-serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-928917986270743141?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/928917986270743141/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=928917986270743141' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/928917986270743141'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/928917986270743141'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/08/connecting-sql-server-analaysis.html' title='Connecting SQL Server Analaysis Services Engine'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8528730728636757833</id><published>2011-07-14T07:29:00.000-07:00</published><updated>2011-07-14T07:29:13.727-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Error: &quot;Attempted to access an unloaded AppDomain'/><title type='text'>Error: "Attempted to access an unloaded AppDomain"</title><content type='html'>If we get the following error "Error: "Attempted to access an unloaded AppDomain"&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The error occurs due to conflict in the Appdomain. &lt;br /&gt;&lt;br /&gt;Solution : Conflict in the Appdomain can be resolved by restarted the IIS &lt;br /&gt;&lt;br /&gt;Step: Goto run type IISreset and click "OK" button.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8528730728636757833?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8528730728636757833/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8528730728636757833' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8528730728636757833'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8528730728636757833'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/07/error-attempted-to-access-unloaded.html' title='Error: &quot;Attempted to access an unloaded AppDomain&quot;'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3142748173537680778</id><published>2011-04-30T09:50:00.000-07:00</published><updated>2011-04-30T09:50:14.554-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DIFFERENCE BETWEEN DROP AND TRUNCATE'/><title type='text'>DIFFERENCE BETWEEN DROP AND TRUNCATE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;----- DIFF BETWEEN DROP AND TRUNCATE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;1. DROP WILL REMOVE THE OBJECT WHERE ARE DELETE WILL REMOVE ONLY THE DATA DELETE WILL DELETE EACH RECORD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;2. NO LOGGING IN TRUNCATE ... LOGGING WILL HAPPEN IN DROP STATEMENT&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - www.kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3142748173537680778?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3142748173537680778/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3142748173537680778' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3142748173537680778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3142748173537680778'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/difference-between-drop-and-truncate.html' title='DIFFERENCE BETWEEN DROP AND TRUNCATE'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1101267095175043367</id><published>2011-04-30T09:47:00.001-07:00</published><updated>2011-04-30T09:47:39.409-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DIFF BETWEEN TRUNCATE AND DELETE'/><title type='text'>DIFF BETWEEN TRUNCATE AND DELETE</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;----- DIFF BETWEEN TRUNCATE AND DELETE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;1. TRUNCATE WILL DELETE THE ENTIRE TABLE @ A STRETCH DELETE WILL DELETE EACH RECORD&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;2. NO LOGGING IN TRUNCATE ... LOGGING DELETE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;3. PROCESS IS TOO FAST AND WE CAN RECOVER THE DATA IN TRUNCATE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #20124d; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #20124d; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #20124d; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - www.kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #20124d; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1101267095175043367?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1101267095175043367/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1101267095175043367' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1101267095175043367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1101267095175043367'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/diff-between-truncate-and-delete.html' title='DIFF BETWEEN TRUNCATE AND DELETE'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5606759293050277392</id><published>2011-04-30T09:35:00.000-07:00</published><updated>2011-04-30T09:35:05.302-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Concatenate row data into a single data in SQL Server'/><title type='text'>Concatenate row data into a single data in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;How to concatenate the row data into a single data?&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;[CODE]&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;DECLARE @NAME VARCHAR(100) =''&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;SELECT @NAME= @NAME + ',' + NAME FROM VENKAT_NAME_TABLE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;SELECT SUBSTRING(@NAME,1,LEN(@NAME))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47;"&gt;[/CODE]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - www.kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5606759293050277392?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5606759293050277392/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5606759293050277392' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5606759293050277392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5606759293050277392'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/concatenate-row-data-into-single-data.html' title='Concatenate row data into a single data in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8608736797949254418</id><published>2011-04-30T09:15:00.000-07:00</published><updated>2011-04-30T09:18:27.288-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Swap values in a sql server table'/><title type='text'>Converting 0 to 1 and 1 to 0 in SQL Server table</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #20124d; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Here is a code snippet to swap the values in SQL Server Table.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;DROP TABLE VENKAT_SAMPLETABLE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;CREATE TABLE VENKAT_SAMPLETABLE(ID INT)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;INSERT INTO VENKAT_SAMPLETABLE VALUES(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;INSERT INTO VENKAT_SAMPLETABLE VALUES(0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;INSERT INTO VENKAT_SAMPLETABLE VALUES(0)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;INSERT INTO VENKAT_SAMPLETABLE VALUES(1)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SELECT * FROM VENKAT_SAMPLETABLE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;UPDATE VENKAT_SAMPLETABLE &lt;/span&gt;&lt;span style="color: #990000;"&gt;SET ID=&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ( CASE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN ID=1 THEN 0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN ID=0 THEN 1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;SELECT * FROM VENKAT_SAMPLETABLE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - www.kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8608736797949254418?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8608736797949254418/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8608736797949254418' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8608736797949254418'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8608736797949254418'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/converting-0-to-1-and-1-to-0-in-sql.html' title='Converting 0 to 1 and 1 to 0 in SQL Server table'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3590263425718313729</id><published>2011-04-25T22:59:00.000-07:00</published><updated>2011-04-25T22:59:37.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Distributed Database Management System'/><title type='text'>Distributed Database Management System</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Distributed Database management system is nothing but the data will be distributed among different databases and may be located in different servers in different locations. But, they are logically interdependent.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;img border="0" height="143px" i8="true" src="http://2.bp.blogspot.com/-yFu4aRhHkBU/TbZdAKEIDBI/AAAAAAAAFX4/cBKY_XvB5DY/s320/1.jpg" width="320px" /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;If we think about an advanced concepts like Database Mirroring, yes it will considered as distributed databases. Because, the data will be distributed to different locations.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="color: #0066cc; font-family: Georgia;"&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;/span&gt;&lt;/u&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3590263425718313729?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3590263425718313729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3590263425718313729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3590263425718313729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3590263425718313729'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/distributed-database-management-system.html' title='Distributed Database Management System'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-yFu4aRhHkBU/TbZdAKEIDBI/AAAAAAAAFX4/cBKY_XvB5DY/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5407361475663199490</id><published>2011-04-25T01:40:00.000-07:00</published><updated>2011-04-25T01:45:14.473-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Confused Nation - A Social thought'/><title type='text'>Confused Nation - A Social thought</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Confused Nation ???&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;WORTH A QUICK READ !!!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;A nation where Rice is Rs.40/- per kg and a SIM Card is free•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Where a pizza you have ordered reaches home faster than an ambulance or police, even if you were being murdered or having a heart attack•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Where a car loan is charged at 5% but an education loan, so necessary for our youth is charged an interest of 12%•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;A nation where students with 45% get into elite institutions through the quota system and those with 90% are sent away because of merit.•&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Where a millionaire buys a cricket team, spending crores instead of donating the money to any charity. Where two IPL teams were auctioned at 3300 crores, yet still a poor country where people starve for two square meals per day.•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;A country where footwear is sold in AC showrooms, but the vegetables we eat, are sold on the footpath and very often next to garbage dumps.•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Where everybody wants to be famous, not by doing good for others, but by looting others and finally getting their names in the newspapers through some scam or other!•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;It’s a strange nation we live in, where complex buildings get ready within a year while public bridges, flyovers and sea links take several years even to get off the drawing board and another decade to be completed•&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;We are a nation where two brothers fight with each other for the nation’s spoils, but the nation doesn’t know that the two of them are cleverly looting the nation while we watch their mock battles.•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;We have malls, and sky-rises, with slums forming their boundary wall.•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;A country where men and women squat on railway tracks, with no where else to go while watching them from windows, are couples with three bathrooms and one for the guests• &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;A country where politicians who are supposed to serve the people accept money from the same people they are supposed to serve, then take a salary from the government for their services to the people•&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;We are a nation where we talk in hushed whispers about the corruption in the country and then dig into our pockets to bribe a cop when we are caught cutting a red light&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;Cheers,&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;Venkatesan Prabu .J&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Georgia;"&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;/span&gt; &lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5407361475663199490?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5407361475663199490/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5407361475663199490' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5407361475663199490'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5407361475663199490'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/confused-nation-social-thought.html' title='Confused Nation - A Social thought'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1440081896357143502</id><published>2011-04-22T22:56:00.000-07:00</published><updated>2011-04-22T22:56:42.693-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Converting RGB image or psd to CMYK'/><title type='text'>Converting RGB image or psd to CMYK</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Usually, we will face a problem while printing the images(For instance, visiting cards).&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;They will advise us to convert the image from RGB(Default one) to CMYK color.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-FYmXlE-ZqJc/TbJpAAyUPpI/AAAAAAAAFX0/DFgYxgJV3ig/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="235px" i8="true" src="http://1.bp.blogspot.com/-FYmXlE-ZqJc/TbJpAAyUPpI/AAAAAAAAFX0/DFgYxgJV3ig/s320/1.jpg" width="320px" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Here is an option in Photoshop to convert your image into required format.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - &lt;/span&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;www.KaaShivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1440081896357143502?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1440081896357143502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1440081896357143502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1440081896357143502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1440081896357143502'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/converting-rgb-image-or-psd-to-cmyk.html' title='Converting RGB image or psd to CMYK'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-FYmXlE-ZqJc/TbJpAAyUPpI/AAAAAAAAFX0/DFgYxgJV3ig/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3282142486216947803</id><published>2011-04-22T12:03:00.000-07:00</published><updated>2011-04-22T23:22:02.143-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='List down all the collations available in SQL Server'/><title type='text'>List down all the collations available in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Below query is used to find all the collations available in SQL Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: blue; font-size: x-small;"&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: small;"&gt;select * from ::fn_helpcollations()&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;span style="color: #b45f06;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/--xqFPLELyso/TbHQvoDV1NI/AAAAAAAAFXw/nt9ElzyGUkI/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="161px" i8="true" src="http://2.bp.blogspot.com/--xqFPLELyso/TbHQvoDV1NI/AAAAAAAAFXw/nt9ElzyGUkI/s320/1.jpg" width="320px" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;span style="color: #351c75;"&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - &lt;/span&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color: #351c75;"&gt;WWW.Kaashivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3282142486216947803?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3282142486216947803/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3282142486216947803' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3282142486216947803'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3282142486216947803'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/list-down-all-collations-available-in.html' title='List down all the collations available in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/--xqFPLELyso/TbHQvoDV1NI/AAAAAAAAFXw/nt9ElzyGUkI/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2960965897991908631</id><published>2011-04-22T11:43:00.000-07:00</published><updated>2011-04-22T11:43:35.342-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Puzzle question in SQL Server'/><title type='text'>Puzzle question in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;I have tried to execute the query and got a different result,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;CREATE TABLE VENKAT_TABLE (ID INT IDENTITY(1,1))&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;INSERT INTO VENKAT_TABLE DEFAULT VALUES&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;GO 100 &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Detailed steps: &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; 1. Created table &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; 2. Insert records in the table with default values &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; 3. Execute the statement for 100 times. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Oops.. One record inserted and for second am getting the error as.... the table is already exists. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Reason, &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The "GO" statement is considering both the statements above it and it's trying to create the table and insert the record into it. &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp; &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;span style="color: #783f04;"&gt;CREATE TABLE VENKAT_TABLE (ID INT IDENTITY(1,1)) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GO&amp;nbsp; -- Should have seperate GO here.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INSERT INTO VENKAT_TABLE DEFAULT VALUES&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #783f04; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GO 100&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers, &lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #990000;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - &lt;/span&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;WWW.Kaashivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2960965897991908631?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2960965897991908631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2960965897991908631' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2960965897991908631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2960965897991908631'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/puzzle-question-in-sql-server.html' title='Puzzle question in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4930972379103500562</id><published>2011-04-22T11:27:00.000-07:00</published><updated>2011-04-22T11:30:13.044-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Generating Alpha numeric values in SQL Server like Identity property'/><title type='text'>Generating Alpha numeric values in SQL Server like Identity property</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: #990000;"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;My application has three atributes id, name, sal and a create button.&lt;/span&gt; &lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;but the task is the user should not enter id according to his choice..&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;it should be generated automatically..... when new user is registering...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;the no's should be like that a1,a2,a2.... b1,b2,..... no's should be alphanumeric...&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;s there any solution for this... help me out....&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Answer for the above query,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;DECLARE @ALPHA_VAL CHAR(1) , @INT_VAL VARCHAR(1000)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;DECLARE @VAL INT =97, @VAL1 INT =1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;WHILE @VAL &amp;lt;= 122&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;BEGIN&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @VAL1=1&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHILE @VAL1 &amp;lt; 1000&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; BEGIN&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @ALPHA_VAL = CHAR(@VAL)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SET @INT_VAL = CONVERT(CHAR,@VAL1) &lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;SET @INT_VAL= @ALPHA_VAL + @INT_VAL&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;PRINT @INT_VAL&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;SET @VAL1 = @VAL1+1&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; END&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;SET @VAL=@VAL+1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;END&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;The output is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;a1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;a2&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;a3&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;a4&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;....b1,b2,....b1000...c1,c2.......etc... to z1000&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4930972379103500562?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4930972379103500562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4930972379103500562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4930972379103500562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4930972379103500562'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/generating-alpha-numeric-values-in-sql.html' title='Generating Alpha numeric values in SQL Server like Identity property'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-6713358847675209451</id><published>2011-04-22T11:09:00.000-07:00</published><updated>2011-04-22T11:09:05.763-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Inline Declaration and value assignation in SQL Server 2008'/><title type='text'>Inline Declaration and value assignation in SQL Server 2008</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="color: blue;"&gt;&lt;span style="color: blue;"&gt; &lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;In older environment, we need to declare the variable and set the value for the varaible as below,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;DECLARE @VAL INT , @VAL1 INT&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;SET @VAL=10&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;SET @VAL=20&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;&lt;/span&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;In the newer version of SQL Serve 2008, we are having inline declaration and value assignation.&lt;/span&gt; &lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;&lt;/span&gt;&amp;nbsp; &lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: #b45f06;"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif; font-size: x-small;"&gt;DECLARE&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;span style="font-size: x-small;"&gt; @VAL INT =97, @VAL1 INT =1&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;Cheers,&lt;/span&gt; &lt;br /&gt;&lt;span style="color: #351c75;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;span style="font-size: x-small;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-6713358847675209451?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/6713358847675209451/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=6713358847675209451' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6713358847675209451'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6713358847675209451'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/inline-declaration-and-value.html' title='Inline Declaration and value assignation in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-494603169006378061</id><published>2011-04-22T10:52:00.000-07:00</published><updated>2011-04-22T10:52:05.272-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CHAR function in SQL Server'/><title type='text'>CHAR function in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Char is a data type which everyone knows. Do you know char is a function which is a reverse of ASCII function in SQL Server?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Select Char(65) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;will return the output as "A"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-494603169006378061?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/494603169006378061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=494603169006378061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/494603169006378061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/494603169006378061'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/char-function-in-sql-server.html' title='CHAR function in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2292455179370124672</id><published>2011-04-22T10:45:00.000-07:00</published><updated>2011-04-22T10:45:50.760-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Server User Group meet at Chennai'/><title type='text'>SQL Server User Group meet at Chennai</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Dear Blog readers,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; We are planning for SQL Server User group monthly meeting @ KaashivInfoTech chennai (My Office).&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span lang="EN-US" style="font-family: 'Harlow Solid Italic'; font-size: 13pt; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;a href="http://sql-articles.com/cssug/april-2011-ug-scheduled"&gt;&lt;span style="color: #0b5394; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://sql-articles.com/cssug/april-2011-ug-scheduled&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span lang="EN-US" style="font-family: 'Harlow Solid Italic'; font-size: 13pt; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;"&gt;&lt;span style="font-family: Georgia;"&gt;I am presenting a sesssion on DBA track (Management DataWarehouse).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span lang="EN-US" style="font-family: 'Harlow Solid Italic'; font-size: 13pt; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;"&gt;&lt;span style="font-family: Georgia;"&gt;It's free for everyone. Please register it ASAP.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;span lang="EN-US" style="font-family: 'Harlow Solid Italic'; font-size: 13pt; mso-ansi-language: EN-US; mso-bidi-font-family: Calibri; mso-bidi-language: AR-SA; mso-fareast-font-family: Calibri; mso-fareast-language: EN-IN; mso-fareast-theme-font: minor-latin;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2292455179370124672?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2292455179370124672/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2292455179370124672' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2292455179370124672'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2292455179370124672'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/sql-server-user-group-meet-at-chennai.html' title='SQL Server User Group meet at Chennai'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5340724952656259404</id><published>2011-04-22T10:41:00.000-07:00</published><updated>2011-04-22T10:41:38.264-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Varchar to Float in SQL Server'/><title type='text'>Varchar to Float in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Convert function can be used to convert your varchar value to Float.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;declare @abc varchar(30)&lt;br /&gt;set @abc = '10.5'&lt;br /&gt;select convert(float,@abc)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cast function will perform the same operation.&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;declare @abc varchar(30)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;set @abc = '10.5'&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;select cast(@abc as float)&lt;/span&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5340724952656259404?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5340724952656259404/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5340724952656259404' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5340724952656259404'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5340724952656259404'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/varchar-to-float-in-sql-server.html' title='Varchar to Float in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3577183507058036502</id><published>2011-04-22T10:32:00.000-07:00</published><updated>2011-04-22T10:32:38.225-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Constraints on the whole table in SQL Server'/><title type='text'>Constraints on the whole table in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;One of my blog reader have asked me a query, Is it possible to give constraints to all the columns in a table in a single shot?&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;CREATE TABLE dbo.Venkat_Table&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;(&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; id int primary key,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; Name varchar(50) unique,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&amp;nbsp;&amp;nbsp; Age int Unique&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;) &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Yes it's possible. We can provide the constraints. &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Applying terms and conditions -&amp;gt; The constraints should not conflict with one another. Primary key constraints can be given only once for a table.&lt;/span&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Cheers,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #4c1130;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3577183507058036502?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3577183507058036502/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3577183507058036502' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3577183507058036502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3577183507058036502'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/constraints-on-whole-table-in-sql.html' title='Constraints on the whole table in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7781799055755727793</id><published>2011-04-22T10:13:00.000-07:00</published><updated>2011-04-22T10:13:35.468-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='combining column names in sql server'/><title type='text'>combining column names in sql server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Consider am having column's as FirstName and another column as SecondName. If your result needs the output Name which is the combination of FirstName and SecondName or LastName.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04; font-family: Arial, Helvetica, sans-serif;"&gt;&amp;nbsp;&amp;nbsp; &lt;span style="color: #0b5394;"&gt;Select FirstName +' '+ LastName as Name from YourTable&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color: #4c1130;"&gt;http://venkattechnicalblog.blogspot.com&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7781799055755727793?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7781799055755727793/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7781799055755727793' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7781799055755727793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7781799055755727793'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/combining-column-names-in-sql-server.html' title='combining column names in sql server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2127065280599010386</id><published>2011-04-21T08:23:00.000-07:00</published><updated>2011-04-22T10:56:15.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Replace function in SQL Server'/><title type='text'>Replace function in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Replace is one of the nice function in SQL Server. It's used to replace a particular string in the string.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;The Syntax is,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #990000; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Replace("Actual String","String to be replaced","String to replace")&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;-------- REPLACES THE STRING WITH THE PROVIDED STRING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;SELECT REPLACE('VENKAT STRING','VENKAT','SANTHOSH')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #741b47; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;The output is SANTHOSH STRING.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #351c75; font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;Head - WWW.Kaashivinfotech.com&lt;/span&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="font-family: Georgia, &amp;quot;Times New Roman&amp;quot;, serif;"&gt;&lt;span style="color: #351c75;"&gt;http://venkattechnicalblog.blogspot.com&lt;/span&gt;/&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2127065280599010386?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2127065280599010386/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2127065280599010386' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2127065280599010386'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2127065280599010386'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/replace-is-one-of-nice-function-in-sql.html' title='Replace function in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3139803099737465729</id><published>2011-04-21T06:38:00.000-07:00</published><updated>2011-04-21T06:38:56.491-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Changing the path of the MDF and LDF file for the database'/><title type='text'>Changing the path of the MDF and LDF file for the database</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;One of my friend have asked a query to me. How can I change my database files&amp;nbsp;from one drive to another drive. Is it possible to achieve it?&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #783f04;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;span style="color: #783f04;"&gt;Right Click on the database -&amp;gt; Properties -&amp;gt; Files - &amp;gt;Path &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;Here you can change the path your MDF and LDF files.&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TMNAhu4EhSI/AAAAAAAAFQE/02y6PbKGT3k/s1600/1.jpg"&gt;&lt;img alt="" border="0" id="BLOGGER_PHOTO_ID_5531335715604170018" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TMNAhu4EhSI/AAAAAAAAFQE/02y6PbKGT3k/s400/1.jpg" style="cursor: hand; display: block; height: 282px; margin: 0px auto 10px; text-align: center; width: 400px;" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Head - KaaShivInfotech&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3139803099737465729?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3139803099737465729/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3139803099737465729' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3139803099737465729'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3139803099737465729'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/changing-path-of-mdf-and-ldf-file-for.html' title='Changing the path of the MDF and LDF file for the database'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TMNAhu4EhSI/AAAAAAAAFQE/02y6PbKGT3k/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3981057888073485572</id><published>2011-04-21T06:36:00.000-07:00</published><updated>2011-04-21T06:36:00.029-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Some inbuilt functions in SQL Server'/><title type='text'>Some inbuilt functions in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;span style="font-family: Arial, Helvetica, sans-serif;"&gt;&lt;span style="color: blue;"&gt;Let's see some of the Sytem inbuilt functions in SQL Server&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;------- RETURNS ASCII VALUE FOR THE CHARACTER&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT ASCII('A')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;------- RETURNS ASCII VALUE FOR THE FIRST CHARACTER OF THE STRING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT ASCII('ASK')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;------- CONVERT YOUR CAPITAL LETTERS TO SMALL LETTERS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT LOWER('ASK')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;------- CONVERT YOUR LOWER LETTERS TO UPPER LETTERS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT UPPER('ask')&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #783f04;"&gt;------- GIVES YOU THE LENGTH OF THE STRING&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;SELECT LEN('ask')&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-rynZcoF-bjg/TbAyOQR5rKI/AAAAAAAAFXs/k3SE55CzOTY/s1600/1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="320px" i8="true" src="http://4.bp.blogspot.com/-rynZcoF-bjg/TbAyOQR5rKI/AAAAAAAAFXs/k3SE55CzOTY/s320/1.jpg" width="269px" /&gt;&lt;/a&gt;&lt;/div&gt;Cheers, &lt;br /&gt;Venkatesan Prabu .J &lt;br /&gt;&lt;span style="color: #4c1130;"&gt;Head - KaaShivInfotech&lt;/span&gt; &lt;br /&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color: #4c1130;"&gt;www.KaaShivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3981057888073485572?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3981057888073485572/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3981057888073485572' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3981057888073485572'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3981057888073485572'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/some-inbuilt-functions-in-sql-server.html' title='Some inbuilt functions in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-rynZcoF-bjg/TbAyOQR5rKI/AAAAAAAAFXs/k3SE55CzOTY/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2490174215837549030</id><published>2011-04-21T06:29:00.000-07:00</published><updated>2011-04-21T06:29:36.847-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SQL Cache Dependency'/><title type='text'>SQL Cache dependency</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;div&gt;&lt;br /&gt;SQL Cache dependency is a fantastic concept introduced with SQL Server 2005. It's nothing but maintaining the table data in the cache until the table is getting altered.&lt;br /&gt;&lt;br /&gt;Conserdering am having a table named Venkat_table in the database Venkat_database.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;The first step is to execute the below command in the command prompt,&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color: #3333ff;"&gt;aspnet_regsql.exe -Saa &lt;server&gt;-Uaa &lt;username&gt;-Paa &lt;password&gt;-ed -d Venkat_database -et -t Venkat_table&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color: #3333ff;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;(Search your machine for aspnet_regsql.exe and go to that path for executing the above command)&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;Once if you execute the above command &lt;span style="color: red;"&gt;AspNet_SqlCacheTablesForChangeNotification&lt;/span&gt; table will be created in the database and the above Venkat_table will be added in the Cache list.&lt;br /&gt;&lt;br /&gt;This will increase the performance of data retrieval for this table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;Cheers,&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;Venkatesan Prabu .J&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color: #351c75;"&gt;Head - KaaShivInfoTech&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2490174215837549030?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2490174215837549030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2490174215837549030' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2490174215837549030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2490174215837549030'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/sql-cache-dependency.html' title='SQL Cache dependency'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-487568736138758182</id><published>2011-04-18T05:21:00.000-07:00</published><updated>2011-04-18T05:21:49.416-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Identity insert in SQL Server table'/><title type='text'>Identity insert in SQL Server table</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;&lt;br /&gt;"An explicit value for the identity column in table 'VENKAT_TABLE' can only be specified when a column list is used and IDENTITY_INSERT is ON."&lt;br /&gt;&lt;br /&gt;Usually, we will get this error while inserting the records/data into the identity column. &lt;br /&gt;&lt;br /&gt;The reason for this error is,&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #20124d;"&gt;&amp;nbsp; "We can't explicitly insert data into the identity. If we want to achieve the same, we should first execute the command Identify insert on the table is ON"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Here is a small code snippet,&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;CREATE TABLE VENKAT_TABLE(ID INT IDENTITY(1,1),NAME VARCHAR(100),AGE INT)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;SP_HELP VENKAT_TABLE&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;SET IDENTITY_INSERT VENKAT_TABLE ON&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #20124d;"&gt;-- WE CAN INSERT THE IDENTITY VALUES EXPLICITLY&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;INSERT INTO VENKAT_TABLE(ID,NAME,AGE) VALUES(1,'VENKAT',20)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;INSERT INTO VENKAT_TABLE VALUES(2,'SANTHOSH',20)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;INSERT INTO VENKAT_TABLE VALUES(3,'DEEPAN',20)&lt;/span&gt; &lt;br /&gt;&amp;nbsp; &lt;br /&gt;OOPs, still am getting the same error. The reason is Microsoft SQL Server is insisting us to insert the records with the column specified in the query. Let's sse the actual solution to resolve the same. &lt;br /&gt;&lt;br /&gt;&lt;span style="color: blue; font-size: x-small;"&gt;INSERT&lt;br /&gt;&lt;br /&gt;&lt;span style="color: purple; font-size: x-small;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color: purple; font-size: x-small;"&gt;Venkatesan Prabu. J&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size: x-small;"&gt;&lt;span style="color: purple;"&gt;Head - &lt;/span&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color: purple;"&gt;WWW.Kaashivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;INTO&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; VENKAT_TABLE&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;ID&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;NAME&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;AGE&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;span style="font-size: x-small;"&gt; &lt;/span&gt;&lt;span style="color: blue; font-size: x-small;"&gt;VALUES&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;(&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;1&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;span style="color: red; font-size: x-small;"&gt;'VENKAT'&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;,&lt;/span&gt;&lt;span style="font-size: x-small;"&gt;20&lt;/span&gt;&lt;span style="color: grey; font-size: x-small;"&gt;)&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-487568736138758182?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/487568736138758182/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=487568736138758182' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/487568736138758182'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/487568736138758182'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/identity-insert-in-sql-server-table.html' title='Identity insert in SQL Server table'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4109346009903964797</id><published>2011-04-06T04:00:00.001-07:00</published><updated>2011-04-06T04:05:20.728-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='ASCII function in SQL Server'/><title type='text'>ASCII function in SQL Server</title><content type='html'>&lt;div dir="ltr" style="text-align: left;" trbidi="on"&gt;ASCII function is used to return the ascii value of the character which is provided as input.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;------- RETURNS ASCII VALUE FOR THE CHARACTER&lt;/span&gt;&lt;br /&gt;&lt;span style="color: red;"&gt;SELECT ASCII('A')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #b45f06;"&gt;The output is 65.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu&lt;br /&gt;&lt;span style="color: blue;"&gt;http://kaashivinfotech.com/&lt;/span&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4109346009903964797?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4109346009903964797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4109346009903964797' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4109346009903964797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4109346009903964797'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/ascii-function-is-used-to-return-ascii.html' title='ASCII function in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8859088733061461228</id><published>2011-04-06T03:35:00.000-07:00</published><updated>2011-04-06T03:54:04.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fetch random records from the table using NewID() function'/><title type='text'>Fetch random records from the table using NewID() function</title><content type='html'>&lt;STRONG&gt;Query:&lt;/STRONG&gt; &lt;FONT color=#006600&gt;Am having 10000 records and I need some 2000 random records. How can I fetch the same? Answer: &lt;/FONT&gt;&lt;br /&gt;&lt;P&gt;&lt;/P&gt;&lt;br /&gt;&lt;P&gt;This can be acheived using NEWID() function. NewID() will try to generate a unique id of 32 bit length. (Ex value &lt;FONT color=#ff0000&gt;A1E7AB10-3E0C-4685-9FEE-00239FB80F4F&lt;/FONT&gt;) &lt;/P&gt;&lt;br /&gt;&lt;P&gt;&lt;/P&gt;&lt;br /&gt;&lt;P&gt;&lt;/P&gt;---------Am creating a sample table and insert the records into the table &lt;FONT color=#000099&gt;DROP TABLE VENKAT_TABLE&lt;/FONT&gt; &lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;GO&lt;/FONT&gt; &lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;CREATE TABLE VENKAT_TABLE (ID INT IDENTITY(0,1))&lt;/FONT&gt; &lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;GO&lt;/FONT&gt; &lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;INSERT INTO VENKAT_TABLE DEFAULT VALUES &lt;/FONT&gt;&lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;GO 1000&lt;/FONT&gt; &lt;FONT color=#000000&gt;------- Inserting 1000 records into the table&lt;/FONT&gt; &lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#000000&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;SELECT * FROM VENKAT_TABLE&lt;/FONT&gt; &lt;br /&gt;&lt;P&gt;&lt;FONT color=#000099&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;br /&gt;&lt;P&gt;&lt;FONT color=#000099&gt;--------- Query to fetch random 100 records from the table.&lt;/P&gt;&lt;/FONT&gt;&lt;FONT color=#000099&gt;SELECT TOP 100 * FROM VENKAT_TABLE ORDER BY NEWID()&lt;/FONT&gt; &lt;/FONT&gt;&lt;br /&gt;&lt;P&gt;&lt;IMG id=BLOGGER_PHOTO_ID_5592420492105862562 style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 267px; CURSOR: hand; HEIGHT: 251px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/-r2wJW4Stk-c/TZxEzsKVzaI/AAAAAAAAFXY/g8rkBRtfbr8/s400/1.jpg" border=0&gt; &lt;/P&gt;&lt;br /&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;br /&gt;&lt;P&gt;Venkatesan Prabu .J&lt;/P&gt;&lt;br /&gt;&lt;P&gt;&lt;/P&gt;&lt;br /&gt;&lt;P&gt;&lt;A href="http://kaashivinfotech.com/"&gt;http://kaashivinfotech.com/&lt;/A&gt;&lt;/P&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8859088733061461228?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8859088733061461228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8859088733061461228' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8859088733061461228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8859088733061461228'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/fetch-random-records-from-table-using.html' title='Fetch random records from the table using NewID() function'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-r2wJW4Stk-c/TZxEzsKVzaI/AAAAAAAAFXY/g8rkBRtfbr8/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3456061499595761499</id><published>2011-04-04T00:51:00.000-07:00</published><updated>2011-04-04T02:33:36.995-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Change Blog name in WordPress.com'/><title type='text'>Change Blog name in WordPress.com</title><content type='html'>Recetly, I have created another blog in wordpress.com. Thought of changing the blog name. Struggled to find the option in the bunch of options available. &lt;span style="color:#ff0000;"&gt;Goto Setting - &amp;gt; General, you will get the text box to get the new name for your blog.&lt;/span&gt; Reconfirm the name in the second text box. Thats why, you are ready to go. Cheers, Venkatesan Prabu .J &lt;a href="http://kaashivinfotech.com/"&gt;http://kaashivinfotech.com/&lt;/a&gt; &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3456061499595761499?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3456061499595761499/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3456061499595761499' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3456061499595761499'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3456061499595761499'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/change-blog-name-in-wordpresscom.html' title='Change Blog name in WordPress.com'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3522026573176385169</id><published>2011-04-01T03:24:00.000-07:00</published><updated>2011-04-01T03:44:52.137-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Creating script for SQL Server 2000 from SQL Server 2005'/><title type='text'>Creating script for SQL Server 2000 from SQL Server 2005</title><content type='html'>I got a peculiar question like, &lt;span style="color:#cc0000;"&gt;"Can we create a script for downgraded version in the current higher version environment. For instance, am having SQL Server 2008 database and I would like to create the database script for SQL Server 2005. Is it possible? "&lt;/span&gt; &lt;a href="http://3.bp.blogspot.com/-yW6BF_FV6IQ/TZWrQrO1_4I/AAAAAAAAFXQ/6p1uB6Cky3k/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5590562815421579138" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 370px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/-yW6BF_FV6IQ/TZWrQrO1_4I/AAAAAAAAFXQ/6p1uB6Cky3k/s400/1.jpg" border="0" /&gt;&lt;/a&gt; &lt;br /&gt;&lt;div&gt;Yes, it's possible with an option. It's hidden safely somewhere and we need to dig the same to resolve the problem.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;1) Right-click over the desired Database at 2005, Choose Tasks and the Generate Scripts (Option). &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;2) At the pop-up Dialog Box click at the Script All Objects in the selected Databases check box, to activate it and then Click the Next Button. &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;3) Set the following Elements to the following Values &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;a. Script Collation , set to TRUE &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;b. Script Database Create, set to TRUE &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;c. Script of SQL Version, set to SQL SERVER 2000 &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;d. Script foreign keys, set to TRUE &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;e. Script Triggers, set to TRUE Then Hit the Next button&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;4) Select the way the generated scripts should be saved (There are different selections. The most common one is Clipboard). Finally click the Next button till you reach the end. &lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;5) Click Finish&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;Cheers, Venkatesan Prabu .J &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt; &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3522026573176385169?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3522026573176385169/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3522026573176385169' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3522026573176385169'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3522026573176385169'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/creating-script-for-sql-server-2000.html' title='Creating script for SQL Server 2000 from SQL Server 2005'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-yW6BF_FV6IQ/TZWrQrO1_4I/AAAAAAAAFXQ/6p1uB6Cky3k/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4873895272524037611</id><published>2011-04-01T03:18:00.000-07:00</published><updated>2011-04-01T03:23:22.331-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Prevent read and write permissions to app.config file'/><title type='text'>Prevent read and write permissions to app.config file</title><content type='html'>I started thinking about an option of restricting the read/write permission on my app.config file. Oops, as a typical programmer. I am things "inside the box" in the dotnet environment. &lt;a href="http://2.bp.blogspot.com/-VeF6YOhi_7o/TZWmsJwaKwI/AAAAAAAAFXI/ljHUDqOc91E/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5590557789913754370" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 332px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/-VeF6YOhi_7o/TZWmsJwaKwI/AAAAAAAAFXI/ljHUDqOc91E/s400/1.jpg" border="0" /&gt;&lt;/a&gt; Let me clear out the exact problem. Can we restrict the programmer to modify the config file? Because, all my connections are sitting in my config file and I would like to keep it safe. Afterwards came out from Dotnet world and started thinking as a windows user. &lt;span style="color:#ff0000;"&gt;It's really too simple, you can achieve the same through your windows Security property.Right click on the file -&amp;gt; Properties -&amp;gt; Security -&amp;gt; Click on the specific user and click the edit button, you can change the options by selecting or deselecting the check boxes.&lt;/span&gt; Cheers, Venkatesan Prabu .J &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt; &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4873895272524037611?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4873895272524037611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4873895272524037611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4873895272524037611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4873895272524037611'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/prevent-read-and-write-permissions-to.html' title='Prevent read and write permissions to app.config file'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-VeF6YOhi_7o/TZWmsJwaKwI/AAAAAAAAFXI/ljHUDqOc91E/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3176799100894997989</id><published>2011-04-01T02:57:00.000-07:00</published><updated>2011-04-01T03:47:55.293-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Installer issue in Dotnet application'/><title type='text'>Installer issue in Dotnet application</title><content type='html'>I have an installer that runs seamlessly in any 32bit -x86 OS. But if I tried to run the exe(installer) to any 64bit OS, yeah it runs and creates a database, but does not create a tables on it... The installer is compiled in a platform 32bit OS. Do you have any idea about this? Do I need to recompile the application in a 64bit OS? I got the below issue: "&lt;span style="color:#ff0000;"&gt;SQL Server 2005 Setup cannot continue because the installation package could not be opened. The installation package has a missing file, or you are running a 32-bit only Setup program on a 64-bit computer. To continue, verify the SQL Server 2005 package you are running is supported on WOW64. If you are certain that you are running a supported SQL Server 2005 package, and you continue to see this message, contact the application vendor&lt;/span&gt;." Answer: Obviously, you need to provide two types of installers &lt;span style="color:#ff0000;"&gt;1. One for 64 bit - x64 platform&lt;/span&gt; &lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;2&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;. One for 32 bit - x86 platform.&lt;/span&gt; While creating the installer, you need to change the targerplatform property. Cheers, Venkatesan Prabu .J &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt; &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3176799100894997989?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3176799100894997989/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3176799100894997989' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3176799100894997989'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3176799100894997989'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/04/installer-issue-in-dotnet-application.html' title='Installer issue in Dotnet application'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4350168430041644113</id><published>2011-03-31T08:31:00.001-07:00</published><updated>2011-03-31T09:24:59.932-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Case in Select statement in SQL Server'/><title type='text'>Case in Select statement in SQL Server</title><content type='html'>DROP TABLE VENKAT_TABLE GO CREATE TABLE VENKAT_TABLE(ID INT, NAME VARCHAR(100),MARKS INT) INSERT INTO VENKAT_TABLE VALUES (1,'VENKAT',20) INSERT INTO VENKAT_TABLE VALUES (2,'SUBA',80) INSERT INTO VENKAT_TABLE VALUES (3,'LAKSHMI',45) INSERT INTO VENKAT_TABLE VALUES (4,'SANTHI',70) SELECT ID, NAME, CASE WHEN MARKS &amp;gt;50 THEN 'GOOD' ELSE 'BAD' END AS RESULT FROM VENKAT_TABLE&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4350168430041644113?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4350168430041644113/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4350168430041644113' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4350168430041644113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4350168430041644113'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/case-in-select-statement-in-sql-server.html' title='Case in Select statement in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1907631154546196685</id><published>2011-03-31T08:31:00.000-07:00</published><updated>2011-03-31T09:12:31.397-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Select Statement execution order in sql server'/><title type='text'>Order of Execution of Select Statement</title><content type='html'>This article is not clearly displayed in this blog, I have posted the same article in my other blog too. &lt;a href="http://www.c-sharpcorner.com/Blogs/4536/order-of-execution-of-select-statement.aspx"&gt;http://www.c-sharpcorner.com/Blogs/4536/order-of-execution-of-select-statement.aspx&lt;/a&gt; One of my blog reader have asked a query on SQL Server query execution order. Thought of writing an article on the same. select * from Student where id&amp;lt; 5000 group by studentID having subjectid=10 order by student name Here is the order of execution for your select statement. FROM --&amp;gt; Which Primary table ON --&amp;gt; On which column to join JOIN --&amp;gt;With which table, you want to join WHERE --&amp;gt; what are the conditions to filter the record GROUP BY --&amp;gt; on what basis, you want to group. WITH CUBE or WITH ROLLUP --&amp;gt; Show the data in the form of knowledge cubes. HAVING --&amp;gt; Another filter criteria S ELECT --&amp;gt; Get the data DISTINCT --&amp;gt; Remove duplicates ORDER BY --&amp;gt; Display in this order TOP --&amp;gt; Display only this much. That's really awesome processing of your query. My only concern is, why we are grouping the data afterwards we are having another filter criteria like having. May be having can be placed front before grouping it. Anyway, I will put this question to Microsoft. For our example, select * from Student where id &amp;lt; 5000 group by studentID having subjectid=10 order by student name The order of execution is, from --&amp;gt;where --&amp;gt; group by --&amp;gt;having --&amp;gt; select --&amp;gt;; Order by Cheers, Venkatesan prabu .J &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt; &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1907631154546196685?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1907631154546196685/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1907631154546196685' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1907631154546196685'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1907631154546196685'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/order-of-execution-of-select-statement.html' title='Order of Execution of Select Statement'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-511828787755819854</id><published>2011-03-31T08:14:00.000-07:00</published><updated>2011-03-31T08:28:45.877-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Something on HTML ruler hr Tag'/><title type='text'>Horizontal ruler in HTML</title><content type='html'>&lt;div&gt;I happened to use HTML for my company website (&lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;). During my design for segregating the content, I've used table row and table data with lines in the boundary like, OOps, it's a costliest work to do and it's not efficient way to give a break line between the contents. &lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5590266135609266802" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 52px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/--_CR5jMkDvY/TZSdbozi0nI/AAAAAAAAFXA/FaKXsF5TSh4/s400/1.jpg" border="0" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;tr&gt;&lt;td style="BORDER-TOP-WIDTH: 1px; BORDER-LEFT-WIDTH: 1px; BORDER-LEFT-COLOR: black; VISIBILITY: visible; BORDER-BOTTOM-WIDTH: 1px; BORDER-BOTTOM-COLOR: black; WIDTH: 70%; BORDER-TOP-COLOR: black; BORDER-RIGHT-WIDTH: 1px; BORDER-RIGHT-COLOR: black"&gt;&lt;/td&gt;&lt;/tr&gt;On my random search, I found the horizontal ruler in my VS tool box. Awesome, Here is the one line code to achieve the same, &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5590266136387191890" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 133px; CURSOR: hand; HEIGHT: 47px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/-uyPgsXVr480/TZSdbrtBBFI/AAAAAAAAFW4/Ae_Tukp-xAE/s400/2.jpg" border="0" /&gt; To provide colour to the ruler &lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;hr color="orange"&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5590266130900290434" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 201px; CURSOR: hand; HEIGHT: 37px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/-RxKw1GU0vTA/TZSdbXQ1i4I/AAAAAAAAFWw/pFnPnsdksgM/s400/3.jpg" border="0" /&gt; &lt;/span&gt;To provide the size to the ruler. Here is an option &lt;br /&gt;&lt;hr width="100" color="orange" size="1"&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5590266131853686498" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 315px; CURSOR: hand; HEIGHT: 55px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/-klNixn7f4_Q/TZSdba0JNuI/AAAAAAAAFWo/nAGHwf1pygw/s400/4.jpg" border="0" /&gt; &lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;width - Indicates the length of the ruler &lt;/div&gt;&lt;br /&gt;&lt;div&gt;size - Indicates the thickness of the ruler. &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Cheers, &lt;/div&gt;&lt;br /&gt;&lt;div&gt;Venkatesan Prabu .J &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-511828787755819854?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/511828787755819854/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=511828787755819854' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/511828787755819854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/511828787755819854'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/horizontal-ruler-in-html.html' title='Horizontal ruler in HTML'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/--_CR5jMkDvY/TZSdbozi0nI/AAAAAAAAFXA/FaKXsF5TSh4/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8673235051672100974</id><published>2011-03-23T00:11:00.000-07:00</published><updated>2011-03-23T01:06:45.634-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Combining two views in SQL Server'/><title type='text'>Combining two views in SQL Server</title><content type='html'>&lt;p&gt;Let's talk about views in SQL Server. Views are nothing but virtual tables which covers the table in SQL Server.&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Am creating two tables,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;DROP TABLE VENKAT_TABLE&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE VENKAT_TABLE(ID INT, NAME VARCHAR(100))&lt;br /&gt;GO&lt;br /&gt;INSERT INTO VENKAT_TABLE VALUES(1,'SUBA')&lt;br /&gt;GO&lt;br /&gt;INSERT INTO VENKAT_TABLE VALUES(1,'ARUN')&lt;br /&gt;GO&lt;br /&gt;DROP TABLE VENKAT_SECOND_TABLE&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE VENKAT_SECOND_TABLE(ID INT, AGE INT)&lt;br /&gt;GO&lt;br /&gt;INSERT INTO VENKAT_SECOND_TABLE VALUES(1,20)&lt;br /&gt;GO&lt;br /&gt;INSERT INTO VENKAT_SECOND_TABLE VALUES(1,30)&lt;br /&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p&gt;-- Now am creating the views for the tables. &lt;/p&gt;&lt;p&gt;-- Views are nothing but virtual table which is like a mask on the table. For security reasons, instead of allowing the user to access the tables directly we will use views.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;CREATE VIEW VENKAT_VIEW&lt;br /&gt;AS&lt;br /&gt;SELECT * FROM VENKAT_TABLE&lt;br /&gt;GO&lt;br /&gt;CREATE VIEW VENKAT1_VIEW&lt;br /&gt;AS&lt;br /&gt;SELECT * FROM VENKAT_TABLE&lt;br /&gt;GO&lt;br /&gt;CREATE VIEW VENKAT_SECOND_VIEW&lt;br /&gt;AS&lt;br /&gt;SELECT * FROM VENKAT_SECOND_TABLE&lt;br /&gt;GO&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Joining two views&lt;/span&gt;&lt;/p&gt;&lt;p&gt;------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="color:#000099;"&gt;SELECT V1. * FROM VENKAT_VIEW V1 INNER JOIN VENKAT_SECOND_VIEW V2&lt;br /&gt;ON V1.ID=V2.ID&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;Merging the results sets of the view. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#ff0000;"&gt;(For merging the result set, we can use union all or union operator)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;------------------------------------------------------------------------------------&lt;br /&gt;&lt;span style="color:#000099;"&gt;SELECT * FROM VENKAT1_VIEW UNION ALL&lt;br /&gt;SELECT * FROM VENKAT_VIEW&lt;/span&gt;&lt;/p&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8673235051672100974?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8673235051672100974/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8673235051672100974' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8673235051672100974'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8673235051672100974'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/combining-two-views-in-sql-server.html' title='Combining two views in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7952020702049531368</id><published>2011-03-22T23:05:00.000-07:00</published><updated>2011-03-22T23:20:27.080-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Enable Backup compression in SQL Server'/><title type='text'>Enable Backup compression in SQL Server</title><content type='html'>Backup compression is a very important feature introduced in SQL Server 2008. Using this technique, the daily backups from the server were compressed and lot of spaces were saved.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#003300;"&gt;"Usually in production servers, DBA's /jobs will take the backup frequently. In least case, 1 backup per day. The file will be ended with *.bak". The size of the backup depends on the size of the database. To avoid more space for the backup's, Microsoft have introduced this backup compression technique." We will see more details on the new compression techniques in my future article.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Let's see how to enable the backup compression option in SQL Server.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;USE master&lt;br /&gt;GO&lt;br /&gt;EXEC sp_configure 'backup compression default'&lt;br /&gt;GO&lt;br /&gt;EXEC sp_configure 'backup compression default', '1'&lt;br /&gt;RECONFIGURE WITH OVERRIDE&lt;br /&gt;GO&lt;br /&gt;EXEC sp_configure 'backup compression default'&lt;br /&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5587155981801450786" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 263px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-FQChYi4MrKA/TYmQw2_5bSI/AAAAAAAAFWg/QGqCXuGUlw4/s400/1.jpg" border="0" /&gt;&lt;br /&gt;Cheers,Venkatesan Prabu .J&lt;/p&gt;&lt;p&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;&lt;span style="color:#000066;"&gt;www.KaaShivinfotech.com&lt;/span&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color:#000099;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000099;"&gt; &lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7952020702049531368?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7952020702049531368/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7952020702049531368' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7952020702049531368'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7952020702049531368'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/enable-backup-compression-in-sql-server.html' title='Enable Backup compression in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-FQChYi4MrKA/TYmQw2_5bSI/AAAAAAAAFWg/QGqCXuGUlw4/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8885632405786108345</id><published>2011-03-22T22:53:00.000-07:00</published><updated>2011-03-22T23:04:34.690-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Get the description of the Collation settings in SQL Server'/><title type='text'>Get the description of the Collation settings</title><content type='html'>In my previous post, we have seen how to identify the collation settings in the server. The output which we got is not much clear to the normal users.  That's why, Microsoft have introduced a built in function to identify the collation which can be understood by normal users.&lt;br /&gt;&lt;br /&gt;The function name is &lt;span style="color:#990000;"&gt;sys.fn_helpcollations() &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;In my previous post, I got my collation setting for my server as, 'Latin1_General_CI_AI'. Below is the query to get the detailed description of the collation.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;SELECT description FROM sys.fn_helpcollations() WHERE name = 'Latin1_General_CI_AI'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The output is,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;Latin1-General, case-insensitive, accent-insensitive, kanatype-insensitive, width-insensitive&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Kanatype - It's Japanese support data&lt;br /&gt;Width - Width of the data is not considered.&lt;br /&gt;&lt;br /&gt;Try your query like below to get the collation settings and their detailed description.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;SELECT description FROM sys.fn_helpcollations() WHERE name = 'Latin1_General_CI_AI'&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;www.KaaShivinfotech.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8885632405786108345?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8885632405786108345/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8885632405786108345' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8885632405786108345'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8885632405786108345'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/get-description-of-collation-settings.html' title='Get the description of the Collation settings'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8681318021746160030</id><published>2011-03-22T22:50:00.000-07:00</published><updated>2011-03-22T22:52:51.333-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Identify the Collation settings of the server'/><title type='text'>Identify the Collation settings of the server</title><content type='html'>Here is the handy query to identify the Collation settings on the Server.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;            SELECT SERVERPROPERTY('Collation')&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;The output is,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;            Latin1_General_CI_AI&lt;/span&gt; &lt;br /&gt;It indicates my server will support Latin general language, with Case insensitivenss and Accent insensitiveness.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;www.KaaShivinfotech.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8681318021746160030?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8681318021746160030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8681318021746160030' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8681318021746160030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8681318021746160030'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/identify-collation-settings-of-server.html' title='Identify the Collation settings of the server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7237330526333000122</id><published>2011-03-22T22:47:00.000-07:00</published><updated>2011-03-22T22:49:43.389-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='How to find Network Adapters available in your machine??'/><title type='text'>How to find Network Adapters available in your machine??</title><content type='html'>Option 1:&lt;br /&gt;   In Control panel, you can see the available network adapters.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-6XPFCKxVZxk/TYmJtH1AXwI/AAAAAAAAFWY/gBuGUhHmjLo/s1600/2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5587148221018300162" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 374px; CURSOR: hand; HEIGHT: 273px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-6XPFCKxVZxk/TYmJtH1AXwI/AAAAAAAAFWY/gBuGUhHmjLo/s400/2.jpg" border="0" /&gt;&lt;/a&gt; Option 2:&lt;br /&gt;    Goto Control Panel -&gt; Device Manager -&gt; Network Adapter&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/-SSdOf_fKGWY/TYmJtPp6C6I/AAAAAAAAFWQ/-dw_-HDs5gE/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5587148223119231906" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 297px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/-SSdOf_fKGWY/TYmJtPp6C6I/AAAAAAAAFWQ/-dw_-HDs5gE/s400/1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;div&gt;Managing Director - &lt;a href="http://www.kaashivinfotech.com/"&gt;www.Kaashivinfotech.com&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7237330526333000122?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7237330526333000122/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7237330526333000122' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7237330526333000122'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7237330526333000122'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/how-to-find-network-adapters-available.html' title='How to find Network Adapters available in your machine??'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-6XPFCKxVZxk/TYmJtH1AXwI/AAAAAAAAFWY/gBuGUhHmjLo/s72-c/2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1184345407821122684</id><published>2011-03-03T07:27:00.001-08:00</published><updated>2011-03-03T07:34:48.691-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Accessing Text Box content'/><title type='text'>Accessing Text Box content</title><content type='html'>I have seen the below query in a popular forum. Thought of writing something on this. This is the below query,&lt;br /&gt;&lt;br /&gt;Conversion failed when converting the varchar value 'System.Web.UI.WebControls.TextBox' to data type int.&lt;br /&gt;&lt;br /&gt;I cant understand why it will occur,i insert the data regarding to the correct datatype only&lt;br /&gt;&lt;br /&gt;The guy is trying to access the text box value and he want to convert the value to integer.&lt;br /&gt;&lt;br /&gt;Guessing, he is trying to get the value 'System.Web.UI.WebControls.TextBox'. Error indicates, the guy is trying to access the textbox property instead of text box data. In turn you need to access the textbox content like textbox.text and after wards convert the same to integer.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Head - &lt;a href="http://www.kaashivinfotech.com/"&gt;www.KaaShivinfotech.com&lt;/a&gt;&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1184345407821122684?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1184345407821122684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1184345407821122684' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1184345407821122684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1184345407821122684'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/accessing-text-box-content.html' title='Accessing Text Box content'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-408077774284899562</id><published>2011-03-03T06:30:00.000-08:00</published><updated>2011-03-03T07:21:11.474-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Naming the Constraint in sql server'/><title type='text'>Naming the Constraint in sql server</title><content type='html'>&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-size:180%;color:#006600;"&gt;&lt;em&gt;&lt;u&gt;Dynamically naming the constraint:&lt;/u&gt;&lt;/em&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;     Constraint is nothing but a condition placed on the column or object. Let's see a small example to create a Primary Key constraint.&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;CREATE TABLE SANTHOSH_TABLE (NAME VARCHAR(100),ID INT PRIMARY KEY,DOB DATETIME) &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;---- INSERT RECORDS INTO THE TABLE ----------&lt;br /&gt;INSERT INTO SANTHOSH_TABLE VALUES('VENKAT',1,'1/1/2010')&lt;br /&gt;INSERT INTO SANTHOSH_TABLE VALUES('LINGAM',2,'1/1/2009')&lt;br /&gt;INSERT INTO SANTHOSH_TABLE VALUES('ILAM',3,'1/2/2010')&lt;br /&gt;INSERT INTO SANTHOSH_TABLE VALUES('SANTHOSH',4,'1/3/2010')&lt;br /&gt;INSERT INTO SANTHOSH_TABLE VALUES('SIVARAM',5,'1/4/2010') &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;SELECT * FROM SANTHOSH_TABLE&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5579872459727839986" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 338px; CURSOR: hand; HEIGHT: 180px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/-uHnqDGKhvew/TW-wcE4QIvI/AAAAAAAAFWI/Bsq4OBS3v_E/s400/1.jpg" border="0" /&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;The Primary key constraint name is&lt;br /&gt;PK__SANTHOSH__3214EC2762AFA012 which looks tougher to remember the name. This name is automatically generated by SQL Server. Can we have a specific name to the Constriant?&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Below query will drop the constraint located in to your table.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;--------- DROP CONSTRAINT ON THE TABLE&lt;br /&gt;&lt;span style="color:#000099;"&gt;ALTER TABLE SANTHOSH_TABLE DROP CONSTRAINT PK__SANTHOSH__3214EC2762AFA012&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Now, lets see how to name a constraint.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;---- DROPPING THE TABLE------------&lt;br /&gt;DROP TABLE SANTHOSH_TABLE&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;---- NAMING THE CONSTRAINTS EXPLICITLY------------&lt;br /&gt;CREATE TABLE SANTHOSH_TABLE (NAME VARCHAR(100),ID INT ,DOB DATETIME,&lt;br /&gt;CONSTRAINT PK_ID_SANTHOSH PRIMARY KEY (ID))&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Now, you constraint name is PK_ID_SANTHOSH.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Happy Learning!!!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Cheers,&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#000099;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-408077774284899562?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/408077774284899562/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=408077774284899562' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/408077774284899562'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/408077774284899562'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/naming-constraint-in-sql-server.html' title='Naming the Constraint in sql server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-uHnqDGKhvew/TW-wcE4QIvI/AAAAAAAAFWI/Bsq4OBS3v_E/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2884503994203130297</id><published>2011-03-02T07:58:00.000-08:00</published><updated>2011-03-02T08:01:15.000-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Performance tuning Query'/><title type='text'>Performance tuning Query</title><content type='html'>&lt;p&gt;    This is Dastagiri from hyderabad .I have two years experience in Database’s SQL Server 2005, MySql, ADS servers.But I dint not understand how to  apply performance tuning for large time taking queries.Could you please send me any material or video links to me.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Dastagiri.&lt;/p&gt;Sir,&lt;br /&gt;&lt;br /&gt;Advising you to get some good books on performance tuning.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.sql-server-performance.com/tips/performance_main.aspx"&gt;http://www.sql-server-performance.com/tips/performance_main.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.mssqltips.com/category.asp?catid=9"&gt;http://www.mssqltips.com/category.asp?catid=9&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://msdn.microsoft.com/en-us/library/ff647793.aspx"&gt;http://msdn.microsoft.com/en-us/library/ff647793.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Here are some of the useful links to start your performance tuning with SQL Server&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;&lt;a href="http://www.kaashivinfotech.com/"&gt;www.Kaashivinfotech.com&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2884503994203130297?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2884503994203130297/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2884503994203130297' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2884503994203130297'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2884503994203130297'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/performance-tuning-query.html' title='Performance tuning Query'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2057619673224329831</id><published>2011-03-02T07:54:00.000-08:00</published><updated>2011-03-02T07:57:23.224-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Query on DateTime operations'/><title type='text'>Query on DateTime operations</title><content type='html'>Anyway, here is the tips to resolve the problem.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Not working:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;select  *  from Production_Table WHERE [Rep_Code] IN ('117','118','146','147','148','701','702','704','705','706','707','709','710','711','712','713','202') and  Rep_Type LIKE '6%' and CONVERT(VARCHAR(8),CONVERT(DATETIME,(Load_Date)),112) between '20110120' and  '20110126' &lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Error message:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;   Server: Msg 242, Level 16, State 3, Line 1  The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Working:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;SELECT CONVERT(VARCHAR(8),CONVERT(DATETIME,(Load_Date)),112) FROM from Production_Table WHERE [Rep_Code] IN ('117','118','146','147','148','701','702','704','705','706','707','709','710','711','712','713','202') and  Rep_Type LIKE '6%'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So, the loop hole is with the between operator.&lt;br /&gt;&lt;br /&gt;  &lt;span style="color:#ff0000;"&gt; Step 1:&lt;/span&gt; Most probably, the issue is with the data. It’s a data issue.&lt;br /&gt; &lt;span style="color:#ff0000;"&gt; Step 2:&lt;/span&gt; Check your objects whether any changes happened on the column.&lt;br /&gt;   &lt;span style="color:#ff0000;"&gt;Step 3:&lt;/span&gt; Check for the data, any manual entry to add special symbols (Single quotes) may happen.&lt;br /&gt;  &lt;span style="color:#ff0000;"&gt; Step 4:&lt;/span&gt;  Use a loop operations to identify the exact error data or use top operator to identify it  manually.&lt;br /&gt;&lt;br /&gt;All the best and sorry for my delay response.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;Managing Director – KaaShiv Info Tech&lt;br /&gt;&lt;br /&gt;MVP / MVM / MCITP / MCTS / MCAD / CCNA / QAI&lt;br /&gt;Microsoft SQL Server MVP / Mind Cracker MVP&lt;br /&gt;&lt;br /&gt;Website : &lt;a href="http://www.kaashivinfotech.com/"&gt;http://www.kaashivinfotech.com/&lt;/a&gt;&lt;br /&gt;Blog      : &lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;br /&gt;Profile   : &lt;a href="http://beyondrelational.com/members/jvprabhusanthi/default.aspx"&gt;http://beyondrelational.com/members/jvprabhusanthi/default.aspx&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Check my Microsoft Profile for more details about me : &lt;a href="https://mvp.support.microsoft.com/default.aspx/profile/venkatesan"&gt;https://mvp.support.microsoft.com/default.aspx/profile/venkatesan&lt;/a&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------&lt;br /&gt;Hi Venkat,&lt;br /&gt;&lt;br /&gt;Did you get a chance to look at this email?&lt;br /&gt;&lt;br /&gt;Regards&lt;br /&gt;Alex Madaswamy&lt;br /&gt;On Fri, Jan 28, 2011 at 2:31 PM, &gt; wrote:&lt;br /&gt;Hi Venkat,&lt;br /&gt;&lt;br /&gt;I was looking through some forums to find a solution my issue and got your blog information and your email id. Can you please help me to resolve this issue?&lt;br /&gt;&lt;br /&gt;We have a table with more than 1M records and we are retrieving records from this table in my application. This was working fine till two days back, but now its throuwing an error. See below the query and the error message we are getting.&lt;br /&gt;&lt;br /&gt;select  *  from Production_Table WHERE [Rep_Code] IN ('117','118','146','147','148','701','702','704','705','706','707','709','710','711','712','713','202') and  Rep_Type LIKE '6%' and CONVERT(VARCHAR(8),CONVERT(DATETIME,(Load_Date)),112) between '20110120' and  '20110126' &lt;br /&gt;&lt;br /&gt;Please note:&lt;br /&gt;All the fields in WHERE condition are of the data type VARCHAR&lt;br /&gt;Values in the field Load_Date is in the format yymmdd&lt;br /&gt;&lt;br /&gt;Error message:&lt;br /&gt;Server: Msg 242, Level 16, State 3, Line 1The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.&lt;br /&gt;&lt;br /&gt;I tried this as well:&lt;br /&gt;&lt;br /&gt;Removed the condition for the Load_Date from the WHERE condition and ran the query with just Rep_Code and Rep_Type, query returns the value without any issue.&lt;br /&gt;Removed the condition for the Load_Date from the WHERE condition and included in the SELECT part and ran the query with just Rep_Code and Rep_Type, query runs well without any issue. Below is the modified query.&lt;br /&gt;SELECT CONVERT(VARCHAR(8),CONVERT(DATETIME,(Load_Date)),112) FROM from Production_Table WHERE [Rep_Code] IN ('117','118','146','147','148','701','702','704','705','706','707','709','710','711','712','713','202') and  Rep_Type LIKE '6%'&lt;br /&gt; Can you please help me to find a solution for this issue?&lt;br /&gt;&lt;br /&gt;Thanks in advance,&lt;br /&gt;Alex Madaswamy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2057619673224329831?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2057619673224329831/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2057619673224329831' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2057619673224329831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2057619673224329831'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/03/query-on-datetime-operations.html' title='Query on DateTime operations'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7710155632127381462</id><published>2011-02-15T03:20:00.000-08:00</published><updated>2011-02-15T03:24:38.917-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Telnet client in Windows Vista'/><title type='text'>Telnet client in Windows Vista</title><content type='html'>By default, you can't see your telnet window. I happened to run my telnet in my command prompt and found that, Telnet client is not installed. Below are the steps to get the "Telnet" client.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;1. Open the Programs and Features Control Panel applet (Start, Control Panel, Programs and Features).&lt;br /&gt;Select "Turn Windows features on or off."&lt;br /&gt;Select the Telnet Client option and click OK.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You will get a window informing "Telnet" is getting installed in your machine.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5573875238475431842" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 354px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-wz1hquOWVaI/TVph_2usf6I/AAAAAAAAFWA/a3anEwS-4nk/s400/Untitled-1%2Bcopy.jpg" border="0" /&gt;Regards,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7710155632127381462?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7710155632127381462/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7710155632127381462' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7710155632127381462'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7710155632127381462'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/02/telnet-client-in-windows-vista.html' title='Telnet client in Windows Vista'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-wz1hquOWVaI/TVph_2usf6I/AAAAAAAAFWA/a3anEwS-4nk/s72-c/Untitled-1%2Bcopy.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8204951374245403004</id><published>2011-02-14T08:26:00.000-08:00</published><updated>2011-02-14T08:51:02.966-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Started my Training based company'/><title type='text'>My new Training based software company @ Chennai</title><content type='html'>After a very long career with HCL and finishing my Australian trip, I resigned my job and started my new company "KaaShiv Info Tech" at Anna Nagar.  It's a training based placement company.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-v97Fz6DzsL0/TVlahlSV1gI/AAAAAAAAFVQ/IIJ8JNUIj7U/s1600/2011-02-14_215708.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573585546838922754" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 215px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/-v97Fz6DzsL0/TVlahlSV1gI/AAAAAAAAFVQ/IIJ8JNUIj7U/s400/2011-02-14_215708.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Typical Pooja:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/-sm2-3OLokIo/TVlZWYmbAhI/AAAAAAAAFVI/5JHnXMRgsIc/s1600/2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573584254943298066" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 278px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-sm2-3OLokIo/TVlZWYmbAhI/AAAAAAAAFVI/5JHnXMRgsIc/s400/2.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Gift from my relatives:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-u4HXx4wD7o0/TVlZWPLkihI/AAAAAAAAFVA/qCTc4EmZFqU/s1600/3.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573584252414757394" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 286px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-u4HXx4wD7o0/TVlZWPLkihI/AAAAAAAAFVA/qCTc4EmZFqU/s400/3.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;With my brothers and Sister:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/--Gi3BfSOt8k/TVlZWP8w4nI/AAAAAAAAFU4/90ciM6qn6Jg/s1600/4.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573584252621087346" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 251px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/--Gi3BfSOt8k/TVlZWP8w4nI/AAAAAAAAFU4/90ciM6qn6Jg/s400/4.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Ribbon cutting by my mother: Am taking the photograph&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-rgf-42zv7jw/TVlZVkVi5EI/AAAAAAAAFUw/On75uHo1TFk/s1600/5.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573584240913867842" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 288px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-rgf-42zv7jw/TVlZVkVi5EI/AAAAAAAAFUw/On75uHo1TFk/s400/5.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;My mother, switching on the official DELL laptop (i5 with 8GB RAM)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/-Rat-muPsIFI/TVlZVWh_I3I/AAAAAAAAFUo/tkwea798W3w/s1600/6.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5573584237207954290" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 272px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/-Rat-muPsIFI/TVlZVWh_I3I/AAAAAAAAFUo/tkwea798W3w/s400/6.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;KaaShiv&lt;br /&gt;           Info Tech&lt;br /&gt;&lt;/span&gt;Get Training from Microsoft Awarded And Oracle Certified Experts&lt;br /&gt;&lt;strong&gt;&lt;span style="font-size:180%;color:#ff0000;"&gt;100% Placement Guaranteed&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;  &lt;span style="color:#000099;"&gt;Technology Training&lt;/span&gt;  &lt;br /&gt;&lt;/strong&gt;  &lt;br /&gt;Dot Net( C#, ASP.Net,&lt;br /&gt;                           VB.Net)&lt;br /&gt;Oracle&lt;br /&gt;Linux&lt;br /&gt;SQL Server&lt;br /&gt;Java&lt;br /&gt;Networking&lt;br /&gt;Testing&lt;br /&gt;Hardware&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;&lt;strong&gt;  Project Guidance (IEEE projects)&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Information Security&lt;br /&gt;Image Processing&lt;br /&gt;Mobile Computing&lt;br /&gt;Data Mining and&lt;br /&gt;      Data Warehousing&lt;br /&gt;Networking Placement Training&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;Placement Training&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;InterPersonal&lt;br /&gt;               Communication&lt;br /&gt;Public Speaking&lt;br /&gt;Aptitude&lt;br /&gt;Technical Skills&lt;br /&gt;Interview Skills&lt;br /&gt;Motivation Classes&lt;br /&gt;HR Development&lt;br /&gt;Similar Competencies&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#000099;"&gt;In – Plant Training&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Working on Live Projects&lt;br /&gt;Technology Training&lt;br /&gt;Inter Personal&lt;br /&gt;           Skills Development&lt;br /&gt;Training based on&lt;br /&gt;           SDLC Technique&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#006600;"&gt;  Address&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;   KaaShiv Info Tech,&lt;br /&gt;Shinandha Building, X41, 5th Floor,&lt;br /&gt; 2nd Avenue (Near Ayyappan Temple),&lt;br /&gt;      Anna Nagar, Chennai – 40&lt;br /&gt;          Ph No : 044 - 42057542&lt;br /&gt;      Mob : 9003718877, 9840678906,&lt;br /&gt;            9566060601,996-2345637&lt;br /&gt;     Email : &lt;a href="mailto:Kaashiv.info@gmail.com"&gt;Kaashiv.info@gmail.com&lt;/a&gt;&lt;br /&gt;     Website : &lt;a href="http://www.kaashivinfotech.com/"&gt;www.KaaShivInfotech.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Course Fees    –          Rs. 6000&lt;br /&gt;Offer Price 25%  Discount   -    Rs. 4500&lt;br /&gt;Grab an Opportunity to work in&lt;br /&gt;Live Projects&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8204951374245403004?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8204951374245403004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8204951374245403004' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8204951374245403004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8204951374245403004'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/02/my-new-training-based-software-company.html' title='My new Training based software company @ Chennai'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-v97Fz6DzsL0/TVlahlSV1gI/AAAAAAAAFVQ/IIJ8JNUIj7U/s72-c/2011-02-14_215708.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8514748198551720467</id><published>2011-01-02T03:24:00.000-08:00</published><updated>2011-01-02T04:28:37.581-08:00</updated><title type='text'>MDF data to MSSQL Server - Data Migration</title><content type='html'>&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBoBkNcVQI/AAAAAAAAFTQ/uKn23HgnGRY/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556316284409090" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 290px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBoBkNcVQI/AAAAAAAAFTQ/uKn23HgnGRY/s400/1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBoBavnoHI/AAAAAAAAFTI/6Me0F8XXB7I/s1600/2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556313743401074" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBoBavnoHI/AAAAAAAAFTI/6Me0F8XXB7I/s400/2.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBoBfLRlNI/AAAAAAAAFTA/I3LNGVWGoGg/s1600/3.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556314933138642" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBoBfLRlNI/AAAAAAAAFTA/I3LNGVWGoGg/s400/3.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBn4aN653I/AAAAAAAAFS4/Vela4_S-beM/s1600/4.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556158983235442" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 394px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBn4aN653I/AAAAAAAAFS4/Vela4_S-beM/s400/4.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBn4AOguNI/AAAAAAAAFSw/pbk-RfL0YDM/s1600/5.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556152006392018" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBn4AOguNI/AAAAAAAAFSw/pbk-RfL0YDM/s400/5.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBn4PsH-iI/AAAAAAAAFSo/-D0gbtRR_8Q/s1600/6.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556156157131298" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBn4PsH-iI/AAAAAAAAFSo/-D0gbtRR_8Q/s400/6.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBn31mJ-6I/AAAAAAAAFSg/S1md-aGFyng/s1600/7.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556149152775074" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBn31mJ-6I/AAAAAAAAFSg/S1md-aGFyng/s400/7.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBn3j-cCVI/AAAAAAAAFSY/YItBFJkEqYs/s1600/8.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557556144422783314" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 392px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBn3j-cCVI/AAAAAAAAFSY/YItBFJkEqYs/s400/8.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBntMCvY8I/AAAAAAAAFSQ/-_PjmS1SQeo/s1600/9.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557555966199686082" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 377px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TSBntMCvY8I/AAAAAAAAFSQ/-_PjmS1SQeo/s400/9.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBntPFGicI/AAAAAAAAFSI/pZraEy2gkb8/s1600/10.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557555967014898114" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 286px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBntPFGicI/AAAAAAAAFSI/pZraEy2gkb8/s400/10.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TSBns8QmafI/AAAAAAAAFSA/1ylYAHAXBIY/s1600/11.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557555961962850802" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 295px; CURSOR: hand; HEIGHT: 383px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TSBns8QmafI/AAAAAAAAFSA/1ylYAHAXBIY/s400/11.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBns8IdadI/AAAAAAAAFR4/qo4pqda-dBo/s1600/12.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557555961928706514" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 234px; CURSOR: hand; HEIGHT: 206px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TSBns8IdadI/AAAAAAAAFR4/qo4pqda-dBo/s400/12.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBnskR8RRI/AAAAAAAAFRw/rBCwRmd0Ung/s1600/13.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5557555955526026514" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 209px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBnskR8RRI/AAAAAAAAFRw/rBCwRmd0Ung/s400/13.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8514748198551720467?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8514748198551720467/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8514748198551720467' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8514748198551720467'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8514748198551720467'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/01/mdf-data-to-mssql-server-data-migration.html' title='MDF data to MSSQL Server - Data Migration'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/TSBoBkNcVQI/AAAAAAAAFTQ/uKn23HgnGRY/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1586935708272527762</id><published>2011-01-02T03:03:00.001-08:00</published><updated>2011-01-02T03:04:00.225-08:00</updated><title type='text'>Wishing you Happy New Year</title><content type='html'>&lt;span xmlns=''&gt;&lt;p&gt;Dear Blog Readers,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br/&gt; &lt;span style='color:red'&gt;&lt;strong&gt;My heartiest wishes for this new year. May be your wishes comes true in this year 2011.&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt; &lt;br /&gt; &lt;/p&gt;&lt;p&gt;Cheers,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1586935708272527762?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1586935708272527762/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1586935708272527762' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1586935708272527762'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1586935708272527762'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2011/01/wishing-you-happy-new-year.html' title='Wishing you Happy New Year'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7240011056266035300</id><published>2010-12-06T20:02:00.001-08:00</published><updated>2010-12-06T20:04:58.899-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Data Compression in SQL Server 2008'/><title type='text'>Data Compression in SQL Server 2008</title><content type='html'>Data compression is a new feature introduced in SQL Server 2008. It enables the DBA’s to effectively manage the MDF files and Backup files. There are two types of compressions,&lt;br /&gt;&lt;br /&gt;1.      &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Row Level Compression:&lt;/strong&gt;&lt;/span&gt; This type of compression will work on the row level of the data page.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;     a.       Operations like changing the fixed length datatype to Variable length data type. For instance, Char(10) is a fixed length datatype and If we store “Venkat” as data. The space occupied by this name is 6 and remaining 4 spaces will be wasted in the legacy system. Whereas, In SQL Server 2008, it is utilised effectively. Only 6 spaces will be given to this variable.&lt;br /&gt;    b.      Removal of Null value and zeros. These values will not be stored in the disk. Instead, they will have a reference in the CI Structure.&lt;br /&gt;    c.       Reduce the amount of metadata used to store the row.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;2.      &lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Page Level Compression:&lt;/strong&gt;&lt;/span&gt; This compression will be effective in the page level.&lt;br /&gt;&lt;br /&gt;     &lt;span style="color:#3333ff;"&gt;a.       This compression follows Row Level Compression. On top of that, Page level compression will work.&lt;br /&gt;    b.      Prefix Compression - This compression will work on the column level. Repeated data will be removed and a reference will be stored in the Compression information (CI) structure which is located next to the page header.&lt;br /&gt;    c.       Dictionary Compression – This compression will be implemented as a whole on the page. It will remove all the repeated data and a reference will be placed on the page.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt; How it works:&lt;br /&gt;&lt;br /&gt;             Considering, If you a user is requesting for a data. In that case, Relational Engine will take care of getting the request compile, parse and it will request the data from the Storage engine.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TP2x-tRbw0I/AAAAAAAAFRk/m_Wlc7sFjs0/s1600/2.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5547786006853043010" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 236px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TP2x-tRbw0I/AAAAAAAAFRk/m_Wlc7sFjs0/s400/2.jpg" border="0" /&gt;&lt;/a&gt; Now, our data is in the compressed format. Storage engine will send the compressed data to the Buffer cache which in turn will take care of sending the data to relational engine in uncompressed format. Relational engine will do the modifications on the uncompressed data and it will send the same to buffer cache. Buffer cache will take care of compressing the data and have it for future use. In turn, it will send a copy to the Storage Engine.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Advantages:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;1.      More data will be stored in the Buffer cache. So, no need to go and search in the disk which inturn reduce the I/O.&lt;br /&gt;2.      Disk space is highly reduced.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;Disadvantages:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;1.      More  CPU cycles will be used to decompress the data.&lt;br /&gt;2.      It will be a negative impact, if the data doesn’t have more null values, zeros and compact/exact data (Equivalent to the declared data type).&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7240011056266035300?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7240011056266035300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7240011056266035300' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7240011056266035300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7240011056266035300'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/12/data-compression-in-sql-server-2008_06.html' title='Data Compression in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/TP2x-tRbw0I/AAAAAAAAFRk/m_Wlc7sFjs0/s72-c/2.jpg' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7832857346875686635</id><published>2010-12-06T18:49:00.001-08:00</published><updated>2010-12-06T19:59:40.452-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Indexing Table variables in SQL Server'/><title type='text'>Indexing Table variables in SQL Server</title><content type='html'>Table variables is a very nice handy tool to store the result set. The major advantage of table variable is that, it will log a very minimal information in the temp database. Initially, I had a thoughts that table variable will reside only in the memory and it won’t interact with any of the database. But, it’s not the case. The data will reside in the temp database but logged very minimally. Index created on the table variables will reside in the tempdb.&lt;br /&gt;&lt;br /&gt;Let’s see, how to create indexes on the table variable.&lt;br /&gt;&lt;br /&gt;-- Temp table created  &lt;br /&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VENKAT_VAR TABLE (ID INT)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;-- Trying to create an index on the column. It's throwing error.&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;CREATE CLUSTERED INDEX IDX_VENKAT_VAR ON @VENKAT_VAR(ID)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Trying to alter the table variable. It's throwing error.&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;ALTER TABLE @VENKAT_VAR ADD CONSTRAINT CON_VENKAT_VAR PRIMARY KEY (ID)&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Here is an option to create the clustered index or primary key on the temp variable.Index on the table variable can be created  during table variable creation itself.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt; DECLARE @VENKAT_VAR TABLE&lt;br /&gt;            (ID INT PRIMARY KEY CLUSTERED )&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;-- We can query on the sys.indexes table to get the index details created on the table variable.&lt;br /&gt;           &lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SELECT * FROM TEMPDB.SYS.indexes A INNER JOIN TEMPDB.SYS.tables B&lt;br /&gt;            ON A.object_id=B.object_id ORDER BY create_date DESC&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7832857346875686635?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7832857346875686635/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7832857346875686635' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7832857346875686635'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7832857346875686635'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/12/data-compression-in-sql-server-2008.html' title='Indexing Table variables in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3848324948212241716</id><published>2010-10-23T09:23:00.000-07:00</published><updated>2010-10-23T12:55:02.913-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Composite primary key in SQL Server'/><title type='text'>Composite primary key in SQL Server</title><content type='html'>&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;Primary Key:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A column which is used to identify the records uniquely is referred to as Primary Key.&lt;br /&gt;&lt;br /&gt;1. Primary key won't allow Null values.&lt;br /&gt;2. If a Primary key is created, It will automatically create the clustered index on the table. In turn, the data will be sorted based on this column.&lt;br /&gt;3. Only one Primary key can be created for a table.&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Composite Primary Key:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;1. Multiple columns can participate in the Primary Key which is referred to as composite primary key.&lt;br /&gt;&lt;br /&gt;Am creating the table with Composite Primary key on the column ID and Name&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;CREATE TABLE VENKAT_SAMPLE_TABLE ( ID INT, NAME VARCHAR(100),BIRTHDATE DATETIME&lt;br /&gt;,PRIMARY KEY(ID,NAME))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To get the information about your Primary key on the columns.You can use the below system view.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;SELECT TABLE_NAME,COLUMN_NAME,CONSTRAINT_NAME FROM INFORMATION_SCHEMA.CONSTRAINT_COLUMN_USAGE&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TMMNDtGuwyI/AAAAAAAAFP0/sHm7sYG4qiI/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5531279124639695650" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 55px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TMMNDtGuwyI/AAAAAAAAFP0/sHm7sYG4qiI/s400/1.jpg" border="0" /&gt;&lt;/a&gt; In one of the popular forum, I have seen a query. How to achieve it your designer window. Right click on the table and you will get the columns. Press control or Shift key and select the columns -&gt; Right click and you can set the primary key.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5531280920619586882" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 153px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TMMOsPptFUI/AAAAAAAAFP8/3L3Oxz3d07Y/s400/2.jpg" border="0" /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3848324948212241716?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3848324948212241716/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3848324948212241716' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3848324948212241716'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3848324948212241716'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/10/composite-primary-key-in-sql-server.html' title='Composite primary key in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uFLzmYkXKOI/TMMNDtGuwyI/AAAAAAAAFP0/sHm7sYG4qiI/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4045556433259928202</id><published>2010-10-17T04:21:00.000-07:00</published><updated>2010-10-17T09:52:50.351-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Specifying the schema Name in the Table designer'/><title type='text'>Specifying the schema Name in the Table designer</title><content type='html'>I have seen a query in a popular forum and I would like to answer the query,&lt;br /&gt;&lt;br /&gt; When I create a table, it creates under dbo.&lt;br /&gt;I would like to create it under a different schema, but when I use the 'New Table' dialog, I can never find the field where to specify this.&lt;br /&gt;&lt;br /&gt;The answer is,&lt;br /&gt;    You need to specify the schema name in the Properties window of the table.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TLso9eMetOI/AAAAAAAAFPo/Ym-JQvtZS6Q/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5529058004069954786" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 209px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TLso9eMetOI/AAAAAAAAFPo/Ym-JQvtZS6Q/s400/1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4045556433259928202?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4045556433259928202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4045556433259928202' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4045556433259928202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4045556433259928202'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/10/specifying-schema-name-in-table.html' title='Specifying the schema Name in the Table designer'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/TLso9eMetOI/AAAAAAAAFPo/Ym-JQvtZS6Q/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8139464346093471663</id><published>2010-10-17T03:18:00.000-07:00</published><updated>2010-10-17T04:21:13.662-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Grant vs With Grant option in SQL Server'/><title type='text'>Grant vs With Grant option in SQL Server</title><content type='html'>&lt;span style="font-size:180%;color:#006600;"&gt;&lt;strong&gt;What's the difference between grant and with grant option in SQL Server?&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Grant will allow the current user to access the object or provide access to the specified user.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff6666;"&gt;CREATE TABLE venkat_Table (ID INT)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff6666;"&gt;GRANT SELECT ON venkat_Table TOVenkatFriend&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;With grant option is nothing but a higher level of access provider. This will inform the database that, this user will have access to the particular object and he is having necessary previlege to provide access to other users on the object.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;GRANT SELECT ON venkat_Table TO VenkatFriend WITH GRANT OPTION&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TLrOmmBh3sI/AAAAAAAAFPI/6mTM22p_BwE/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5528958654988017346" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TLrOmmBh3sI/AAAAAAAAFPI/6mTM22p_BwE/s400/1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;You can see this option in the schema properties window.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8139464346093471663?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8139464346093471663/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8139464346093471663' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8139464346093471663'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8139464346093471663'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/10/whats-difference-between-grant-and-with.html' title='Grant vs With Grant option in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TLrOmmBh3sI/AAAAAAAAFPI/6mTM22p_BwE/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-9004758628197996221</id><published>2010-10-09T20:12:00.000-07:00</published><updated>2010-10-09T23:20:29.537-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Memory handling on NULL values using sparse columns'/><title type='text'>Sparse Columns in SQL Server 2008</title><content type='html'>&lt;div&gt;&lt;span style="font-size:130%;color:#cc0000;"&gt; Memory handling on NULL values using sparse columns:&lt;/span&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;It's a new feature in SQL Server 2008. It enables us to store the null values effectively. Ideally, if the column is NULL. Then, the data won't be stored in the database and it's cost effective solution to save the space. If your table has more Null values, we can opt this solution.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#660000;"&gt;Sparse column is associated with two specialised sub-features:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;1. &lt;span style="color:#cc0000;"&gt;Column Sets -&lt;/span&gt; This will provide you the consolidated report of all the sparse columns. We will see this one in our example below.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;2. &lt;span style="color:#cc0000;"&gt;Filtered index -&lt;/span&gt; Index will be created on the not null data in the sparse columns.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="font-size:130%;color:#660000;"&gt;Limitations and conditions to use Sparse column:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;1. We can create index on the sparse column.&lt;br /&gt;2. Sparse column cannot be added on certain column types like text, filestream datatype, geography, image, ntext etc..,&lt;br /&gt;3. Sparse column could not be bounded with default value or rule cannot be applied on it.&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Let's see an example,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;drop table Venkat_Sparse_ColumnCheck&lt;br /&gt;go&lt;br /&gt;-- created a table to check the sparse column&lt;br /&gt;CREATE TABLE dbo.Venkat_Sparse_ColumnCheck&lt;br /&gt;(&lt;br /&gt;ID INT IDENTITY(1,1) NOT NULL,&lt;br /&gt;FIRST_NAME NVARCHAR(50) NOT NULL,&lt;br /&gt;LAST_NAME NVARCHAR(50) NOT NULL,&lt;br /&gt;ADDRESS1 NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;ADDRESS2 NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;CITY NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;STATE NVARCHAR(2) SPARSE NULL, -- Sparse columns&lt;br /&gt;COUNTRY NVARCHAR(10) SPARSE NULL, -- Sparse columns&lt;br /&gt;ZIP_CODE NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;CONSTRAINT PK_Venkat_Sparse_ColumnCheck PRIMARY KEY (ID)&lt;br /&gt;)&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#000099;"&gt;&lt;div&gt;&lt;br /&gt;GO&lt;br /&gt;set nocount on&lt;br /&gt;go&lt;/div&gt;&lt;div&gt;&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Venkatesan', 'Prabu', '1, first raod', null, 'Dharmapuri', 'TN', 'India', NULL);&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Subs', 'subs', '2 Second road', null, 'trichy', 'tr', 'india', '636701');&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Janu', 'C', '3 Third road', null, 'trichy', 'tr', 'india', '636701');&lt;/div&gt;&lt;div&gt;&lt;br /&gt;-- Here, we are getting a very ordinary output.&lt;br /&gt;Select * from dbo.Venkat_Sparse_ColumnCheck&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#3333ff;"&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5526296663947420290" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 90px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TLFZiUoDIoI/AAAAAAAAFO4/mEpZlVI-eo4/s400/2.jpg" border="0" /&gt;&lt;br /&gt;&lt;div&gt;&lt;/span&gt;&lt;span style="color:#006600;"&gt;To see the exact data storage, we need to use the column sets functionality.&lt;br /&gt;Column Set should be defined with datatype as XML and it should be given the condition as ALL_SPARSE_COLUMNS&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;drop table Venkat_Sparse_ColumnCheck&lt;br /&gt;go&lt;/span&gt;&lt;/div&gt;&lt;span style="color:#000099;"&gt;&lt;div&gt;&lt;br /&gt;-- created a table to check the sparse column&lt;br /&gt;CREATE TABLE dbo.Venkat_Sparse_ColumnCheck&lt;br /&gt;(&lt;br /&gt;ID INT IDENTITY(1,1) NOT NULL,&lt;br /&gt;FIRST_NAME NVARCHAR(50) NOT NULL,&lt;br /&gt;LAST_NAME NVARCHAR(50) NOT NULL,&lt;br /&gt;ADDRESS1 NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;ADDRESS2 NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;CITY NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;STATE NVARCHAR(2) SPARSE NULL, -- Sparse columns&lt;br /&gt;COUNTRY NVARCHAR(10) SPARSE NULL, -- Sparse columns&lt;br /&gt;ZIP_CODE NVARCHAR(20) SPARSE NULL, -- Sparse columns&lt;br /&gt;ADDRESS_SET XML COLUMN_SET FOR ALL_SPARSE_COLUMNS, -- Column Set to get all the details of the sparse columns&lt;br /&gt;CONSTRAINT PK_Venkat_Sparse_ColumnCheck PRIMARY KEY (ID)&lt;br /&gt;)&lt;br /&gt;GO&lt;/div&gt;&lt;div&gt;&lt;br /&gt;set nocount on&lt;br /&gt;go&lt;/div&gt;&lt;div&gt;&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Venkatesan', 'Prabu', '1, first raod', null, 'Dharmapuri', 'TN', 'India', NULL);&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Subs', 'subs', '2 Second road', null, 'trichy', 'tr', 'india', '636701');&lt;br /&gt;insert into dbo.Venkat_Sparse_ColumnCheck (first_name, last_name, ADDRESS1, ADDRESS2, city, STATE, country, zip_code)&lt;br /&gt;values ('Janu', 'C', '3 Third road', null, 'trichy', 'tr', 'india', '636701');&lt;/div&gt;&lt;div&gt;&lt;br /&gt;-- Here, we are getting a very ordinary output.&lt;br /&gt;Select * from dbo.Venkat_Sparse_ColumnCheck&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5526296670746679506" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 85px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TLFZit9HmNI/AAAAAAAAFPA/tpureMZONLs/s400/1.jpg" border="0" /&gt;&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;&lt;p&gt;Output for the first record,&lt;/p&gt;&lt;p&gt;&lt;span style="color:#990000;"&gt;&lt;address1&gt;1, first raod&lt;/address1&gt;&lt;br /&gt;&lt;city&gt;Dharmapuri&lt;/city&gt;&lt;br /&gt;&lt;state&gt;TN&lt;/state&gt;&lt;br /&gt;&lt;country&gt;India&lt;/country&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Output for the Second record,&lt;/p&gt;&lt;p&gt;&lt;span style="color:#990000;"&gt;&lt;address1&gt;2 Second road&lt;/address1&gt;&lt;br /&gt;&lt;city&gt;trichy&lt;/city&gt;&lt;br /&gt;&lt;state&gt;tr&lt;/state&gt;&lt;br /&gt;&lt;country&gt;india&lt;/country&gt;&lt;br /&gt;&lt;zip_code&gt;636701&lt;/zip_code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Output for the Third record,&lt;/p&gt;&lt;p&gt;&lt;span style="color:#990000;"&gt;&lt;address1&gt;3 Third road&lt;/address1&gt;&lt;br /&gt;&lt;city&gt;trichy&lt;/city&gt;&lt;br /&gt;&lt;state&gt;tr&lt;/state&gt;&lt;br /&gt;&lt;country&gt;india&lt;/country&gt;&lt;br /&gt;&lt;zip_code&gt;636701&lt;/zip_code&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-9004758628197996221?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/9004758628197996221/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=9004758628197996221' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9004758628197996221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9004758628197996221'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/10/sparse-columns-in-sql-server-2008.html' title='Sparse Columns in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TLFZiUoDIoI/AAAAAAAAFO4/mEpZlVI-eo4/s72-c/2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3938429379326597613</id><published>2010-10-03T05:11:00.000-07:00</published><updated>2010-10-03T05:15:42.092-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Replication and autonumber generation issue'/><title type='text'>Replication and autonumber generation issue</title><content type='html'>&lt;span style="color:#ff0000;"&gt;Sent: 30 September 2010 22:22&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;To: &lt;/span&gt;&lt;a href="mailto:jvprabhusanthi@gmail.com"&gt;&lt;span style="color:#ff0000;"&gt;jvprabhusanthi@gmail.com&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;Subject: Invoice Number Generation in offline/online database&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#660000;"&gt;Hi Venkatesan Prabu&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I would like to get your suggestions in regards to invoice number generation in an application that work offline and online&lt;br /&gt;&lt;br /&gt;We have a inventory application developed in .net and sql server ,that can work in a LAN by connecting to the server database&lt;br /&gt;&lt;br /&gt;Now we need to provide the offline feature for the application, a counter can work independenly without connecting to the server database.i.e, by connecting&lt;br /&gt;to a local copy of the server database&lt;br /&gt;&lt;br /&gt;Before the enter any sales data in the counter ,the sales person has to synchronize the data with the server database .to get the stock details and all&lt;br /&gt;Once synchronistation is done,sales bills can be entered from the counter.and in the end of the day or before starting next days work the sales person has to&lt;br /&gt;synchronise the data with the server again.so the Sales details will be available in the server.&lt;br /&gt;&lt;br /&gt;The problem here is that the invcoice number generation.Currently the Automatic invoice number is generated using the query&lt;br /&gt;&lt;br /&gt;select isNull(Max(BillNumber),0)+1 from PurchaseHeader&lt;br /&gt;&lt;br /&gt;If there is more one sales counters that work on local copy of the server database ,the sales billnumber will be duplicated.&lt;br /&gt;because the billNumber is generated from the local database only. when this is uploaded to server there will be duplicate billnumbers&lt;br /&gt;&lt;br /&gt;Could you please suggest me some possible solutions to this problem&lt;br /&gt;&lt;br /&gt;--&lt;br /&gt;Thanks,&lt;br /&gt;Bijith&lt;/span&gt;&lt;br /&gt;Check my Reply for the above problem. Share your thoughts and post some more solutions&lt;br /&gt;&lt;span style="color:#006600;"&gt;Hi Bijith,&lt;br /&gt;&lt;br /&gt;Very good practical problem. We can provide multiple solution for your problem.&lt;br /&gt;&lt;br /&gt;Below is the best solution for your problem.&lt;br /&gt;&lt;br /&gt;1. You need to use Replication for updating your data from local database to master database.&lt;br /&gt;2. In the local database, generate a unique id (Your Invoice number) and amend another unique number (Local counter number). (Your invoice number is 120 and counter id is 20, then the actual invoice number is 12020. The last two number will be unique for your counter).&lt;br /&gt;3. While pushing this data to the master database, generate unique id in the master database and another column will hold the invoice number generated in the local database.&lt;br /&gt;&lt;br /&gt;Let me know for any other details needed.&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;MVP / MVM / MCITP / MCTS / MCAD / CCNA / QAI&lt;br /&gt;Microsoft SQL Server MVP / Mind Cracker MVP&lt;br /&gt;&lt;/span&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;&lt;span style="color:#006600;"&gt;http://venkattechnicalblog.blogspot.com/&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3938429379326597613?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3938429379326597613/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3938429379326597613' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3938429379326597613'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3938429379326597613'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/10/replication-and-autonumber-generation.html' title='Replication and autonumber generation issue'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2867759616711219826</id><published>2010-09-20T21:31:00.000-07:00</published><updated>2010-09-21T01:56:20.780-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='My session at Sydney Microsoft Office'/><title type='text'>My session at Sydney Microsoft Office</title><content type='html'>"Presenting a session in Microsoft" It's my greates dream in my life.&lt;br /&gt;&lt;br /&gt;In one word, “It’s a Marvellous evening”. Interesting part is, Adam Cogan is my fellow speaker. Working in Microsoft as a Technical Architect and as a Microsoft Regional Director too :-)&lt;br /&gt;&lt;br /&gt;Presented my session in Microsoft office, Attended Adam’s session, Techie talks with hard core developers and finally my session is recorded and it will published soon in Microsoft portal.&lt;br /&gt;&lt;br /&gt;To be frank, No words to express my joy…. In presenting an evening session to the techie experts in Microsoft, Sydney office.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;Sydney Microsoft Office&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2UnIdlJI/AAAAAAAAFOg/4xVv4pHhOxk/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5519221071072302226" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 277px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2UnIdlJI/AAAAAAAAFOg/4xVv4pHhOxk/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;Speaker’s desk&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2UHYnFhI/AAAAAAAAFOY/r34JhhqHQzE/s1600/2.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519221062550099474" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 310px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2UHYnFhI/AAAAAAAAFOY/r34JhhqHQzE/s400/2.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;Preparing my laptop for the presentation&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg2TvjYvrI/AAAAAAAAFOQ/h3jKzU-3Pkc/s1600/3.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519221056152846002" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 306px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg2TvjYvrI/AAAAAAAAFOQ/h3jKzU-3Pkc/s400/3.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; Oops, very big screen…&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2Tesqi_I/AAAAAAAAFOI/e_dr1Tmv1GI/s1600/4.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519221051628358642" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 295px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2Tesqi_I/AAAAAAAAFOI/e_dr1Tmv1GI/s400/4.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;Started my session with the query, “How a DBA can achieve Enterprise wide Compliance standard?”&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg2S3ZbUnI/AAAAAAAAFOA/yDUXOjYH-RA/s1600/5.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519221041078686322" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 285px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg2S3ZbUnI/AAAAAAAAFOA/yDUXOjYH-RA/s400/5.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; Practical demos&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="font-family:Verdana;font-size:130%;color:#ff0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TJg14-oybEI/AAAAAAAAFN4/fDmwnII3o78/s1600/6.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519220596345564226" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 293px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TJg14-oybEI/AAAAAAAAFN4/fDmwnII3o78/s400/6.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;Adam cogan’s session on Sharepoint 2010 Wiki Vs Sharepoint 2010 Blog&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg14il9MNI/AAAAAAAAFNw/EJycUy6jNqg/s1600/7.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519220588817494226" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 296px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg14il9MNI/AAAAAAAAFNw/EJycUy6jNqg/s400/7.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;My kid playing in Microsoft office&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg14CeKMGI/AAAAAAAAFNo/Wgq0kKKlUPU/s1600/8.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519220580194857058" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 309px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJg14CeKMGI/AAAAAAAAFNo/Wgq0kKKlUPU/s400/8.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; My wife and Kid…in MS office&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg13mrBDuI/AAAAAAAAFNg/LQsunOnel80/s1600/9.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519220572732591842" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 257px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg13mrBDuI/AAAAAAAAFNg/LQsunOnel80/s400/9.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Front row :&lt;/span&gt; My wife, Myself, Adam Cogan and a 22 year experienced Microsoft developer&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;Back row : &lt;/span&gt;Hard core techies&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJg13JiwgtI/AAAAAAAAFNY/BOdhzCrMEGg/s1600/10.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5519220564913324754" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 146px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJg13JiwgtI/AAAAAAAAFNY/BOdhzCrMEGg/s400/10.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;color:#009900;"&gt;Cheers,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;span style="font-size:100%;color:#009900;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;/span&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2867759616711219826?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2867759616711219826/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2867759616711219826' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2867759616711219826'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2867759616711219826'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/my-session-at-sydney-microsoft-office.html' title='My session at Sydney Microsoft Office'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uFLzmYkXKOI/TJg2UnIdlJI/AAAAAAAAFOg/4xVv4pHhOxk/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2465873861371703061</id><published>2010-09-19T04:52:00.000-07:00</published><updated>2010-09-20T21:29:34.844-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='My Session in Sydney SQL User group'/><title type='text'>My Session in Sydney SQL User group</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;My presentation @ Greater Sydney..... &lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;At last, it’s my dream evening. I gave a presentation to the SQL Server Gurus in Sydney…&lt;br /&gt;Almost most of the attendees were having more than 15 years of experience in SQL Server :-)&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color:#3333ff;"&gt;They live with SQL Server technology. It was a pleasant moments and I have learnt a lot on meeting those technology Gurus.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;Intro about me by Grant paisley (SQL Server MVP and Director of Angry Koala pty ltd)&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX_F5Vv0xI/AAAAAAAAFNQ/vnUQ0F-CEgo/s1600/1.png"&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518597395168875282" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 294px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX_F5Vv0xI/AAAAAAAAFNQ/vnUQ0F-CEgo/s400/1.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;My presentations starts with the query…. Can a DBA manage 100 Servers in One go??????? &lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX_FYIyXLI/AAAAAAAAFNI/6tkHIM9zMvE/s1600/2.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518597386256145586" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 275px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX_FYIyXLI/AAAAAAAAFNI/6tkHIM9zMvE/s400/2.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; Discussion on Policy Creation and deployment Strategies&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TJX_EzopcOI/AAAAAAAAFNA/W0lNpn8C9Ug/s1600/3.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518597376457666786" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 306px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TJX_EzopcOI/AAAAAAAAFNA/W0lNpn8C9Ug/s400/3.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; Practical demo on Microsoft in-built policies&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX_EionqVI/AAAAAAAAFM4/YKIkCHIDmbY/s1600/4.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518597371894147410" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 297px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX_EionqVI/AAAAAAAAFM4/YKIkCHIDmbY/s400/4.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; &lt;/strong&gt;&lt;/span&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX_ECzRegI/AAAAAAAAFMw/UJn3urZ4C0k/s1600/5.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518597363348896258" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 291px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX_ECzRegI/AAAAAAAAFMw/UJn3urZ4C0k/s400/5.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt; &lt;div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX64GsDCPI/AAAAAAAAFMo/pi3rEbX25Xk/s1600/6.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518592760187390194" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 251px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX64GsDCPI/AAAAAAAAFMo/pi3rEbX25Xk/s400/6.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt; My favourite pic (With my 2009 MVP Award)… Query section..&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX63oto84I/AAAAAAAAFMg/QxP3OeEoS3E/s1600/7.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518592752141005698" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 218px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX63oto84I/AAAAAAAAFMg/QxP3OeEoS3E/s400/7.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;Thank You slide&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX63THUD7I/AAAAAAAAFMY/lkJRaLUPfK8/s1600/8.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518592746343108530" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 277px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TJX63THUD7I/AAAAAAAAFMY/lkJRaLUPfK8/s400/8.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;My Fellow speaker Darren Geros (22 years in IT, Director of NSI Technology Pty Ltd, Director AVOGA Pty Ltd)&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX622ODHsI/AAAAAAAAFMQ/G8UOFrTsfi0/s1600/9.png"&gt;&lt;span style="font-family:verdana;font-size:130%;color:#ff0000;"&gt;&lt;strong&gt;&lt;img id="BLOGGER_PHOTO_ID_5518592738586730178" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 282px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX622ODHsI/AAAAAAAAFMQ/G8UOFrTsfi0/s400/9.png" border="0" /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;span style="color:#ff0000;"&gt;&lt;strong&gt;&lt;br /&gt;Got a fantastic response from the audience and it’s too nice to see some smile faces&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX62mLhxmI/AAAAAAAAFMI/_fE80yy-TFU/s1600/10.png"&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5518592734281188962" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 285px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TJX62mLhxmI/AAAAAAAAFMI/_fE80yy-TFU/s400/10.png" border="0" /&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="font-family:verdana;font-size:130%;"&gt;&lt;br /&gt;Thanks and Regards,&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-family:Verdana;font-size:130%;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2465873861371703061?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2465873861371703061/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2465873861371703061' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2465873861371703061'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2465873861371703061'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/my-session-in-sydney-sql-user-group.html' title='My Session in Sydney SQL User group'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uFLzmYkXKOI/TJX_F5Vv0xI/AAAAAAAAFNQ/vnUQ0F-CEgo/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7951280084508167523</id><published>2010-09-17T15:05:00.000-07:00</published><updated>2010-09-17T15:12:18.499-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Dotnet and SQL Job in Hyderabad'/><title type='text'>Dotnet and SQL Job in Hyderabad</title><content type='html'>I got this from one of my email... May be useful to some one... who really need it...&lt;br /&gt;&lt;br /&gt;Urgent requirement for ASP.Net professionals with a minimum experience of 3yrs in relevant field in Hyderabad.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Skills&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;ASP.Net 35 frame work, Ajax, sql.server 2005/2008, WCSF, classic ASP&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Package:&lt;/strong&gt;&lt;/u&gt; 2.4L - 3.0L&lt;br /&gt;&lt;u&gt;&lt;strong&gt;Location:&lt;/strong&gt;&lt;/u&gt; Hyderabad&lt;br /&gt;&lt;br /&gt;If anybody is interested Send your resumes to &lt;a href="mailto:bobby.simson13@gmail.com" target="_blank"&gt;bobby.simson13@gmail.com&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7951280084508167523?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7951280084508167523/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7951280084508167523' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7951280084508167523'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7951280084508167523'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/dotnet-and-sql-job-in-hyderabad.html' title='Dotnet and SQL Job in Hyderabad'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8674739806582198027</id><published>2010-09-16T21:08:00.000-07:00</published><updated>2010-09-16T22:24:52.492-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Steps in loading your web contents - About browsers'/><title type='text'>Steps in loading your web contents - About browsers</title><content type='html'>&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Have you questioned yourself, why my browser is too slow ?????&lt;br /&gt;&lt;br /&gt;To load the web page, your browser will traverse 11 sub systems or steps to display your web content :-) Interesting right !!! Let’s see,&lt;br /&gt;&lt;br /&gt;1. &lt;span style="color:#ff0000;"&gt;Network&lt;/span&gt; – First subsystem which is responsible for client / server interaction. This relies on the hosted server’s performance and individual user’s network traffic.&lt;br /&gt;2. &lt;span style="color:#ff0000;"&gt;HTML&lt;/span&gt; – Followed by the HTML – sub system. This allows you to download the HTML content from the server and structured it back to the client machine.&lt;br /&gt;3. &lt;span style="color:#ff0000;"&gt;CSS&lt;/span&gt; – Cascade Style sheet, this will provide you the customised colouring and structure to the content. The details will be collected and it will be used later (In point 8).&lt;br /&gt;4. &lt;span style="color:#ff0000;"&gt;Collections&lt;/span&gt; – Accessing metadata information related to your HTML. This guy will take care of Segregating your head and body contents separately.&lt;br /&gt;5. &lt;span style="color:#ff0000;"&gt;Java script&lt;/span&gt; – Client side scripts which will execute based on the user’s action.&lt;br /&gt;6. &lt;span style="color:#ff0000;"&gt;Marshalling&lt;/span&gt; – Java script engine can’t directly interact with the browser. Marshalling is a special communication layer between JavaScript engine and your browser.&lt;br /&gt;7. &lt;span style="color:#ff0000;"&gt;DOM API&lt;/span&gt; – Special API’s responsible for interaction between JavaScript engine and your browser.&lt;br /&gt;8. &lt;span style="color:#ff0000;"&gt;Formatting&lt;/span&gt; – All your objects will be formatted based on the CSS information collected.&lt;br /&gt;9. &lt;span style="color:#ff0000;"&gt;Block building&lt;/span&gt; – Your objects will be segregated as separate blocks&lt;br /&gt;10. &lt;span style="color:#ff0000;"&gt;Lay out formation&lt;/span&gt; – Now, depends on your Web parts or Frames or div tag or Table. Your layouts will be formed.&lt;br /&gt;11. &lt;span style="color:#ff0000;"&gt;Image Rendering&lt;/span&gt; – Rendering of images (or) drawing to the screen through CPU or GPU.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8674739806582198027?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8674739806582198027/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8674739806582198027' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8674739806582198027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8674739806582198027'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/steps-in-loading-your-web-contents.html' title='Steps in loading your web contents - About browsers'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4103859808647483921</id><published>2010-09-08T22:36:00.000-07:00</published><updated>2010-09-09T22:47:25.613-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Find the last executed command in your sql server'/><title type='text'>SQL Profiler InputBuffer events in SQL Server</title><content type='html'>As a DBA, sometimes you need to identify the last execution happened or happening in your server. What you will exactly do?&lt;br /&gt;1. Start your profiler and check it.&lt;br /&gt;2. Check the process info for the server processes running.&lt;br /&gt;3. In SQL Server 2008, you can opt Activity Monitor.&lt;br /&gt;&lt;br /&gt;What else?????????&lt;br /&gt;&lt;br /&gt;Here is another method using queries? If you got the spid then DBCC Inputbuffer command will provide you the last execution command of your user. Let's see how?????&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Get the current session id&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:130%;color:#ff0000;"&gt;SELECT @@SPID&lt;/span&gt;&lt;br /&gt;The output is, 51&lt;br /&gt;&lt;br /&gt;Let's execute the below query now,&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:100%;"&gt;CREATE TABLE VENKAT_TABLE (Col1 int)&lt;br /&gt;GO&lt;br /&gt;DECLARE @i int;&lt;br /&gt;SELECT @i = 0&lt;br /&gt;BEGIN TRAN&lt;br /&gt;SELECT @i = 0&lt;br /&gt;WHILE (@i &lt; i =" @i"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:85%;color:#ff0000;"&gt;&lt;span style="font-size:130%;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color:#000000;"&gt;Now, open another session or connection, and execute the command&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:arial;font-size:100%;color:#ff0000;"&gt;DBCC INPUTBUFFER (51);&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;color:#000000;"&gt;You will get the last statement executed by the particular session user.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:100%;color:#000000;"&gt;&lt;img id="BLOGGER_PHOTO_ID_5515155523139614482" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 40px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TInEuk3FNxI/AAAAAAAAFLo/nn2gpKxQtl4/s400/1.png" border="0" /&gt; &lt;/span&gt;&lt;span style="font-size:100%;color:#000000;"&gt;Usually, we will get confused on seeing the sequence of below statements in our profiler.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:arial;font-size:130%;color:#ff0000;"&gt;&lt;span style="font-size:100%;"&gt;create table #tmpDBCCinputbuffer ([Event Type] nvarchar(512), [Parameters] int, [Event Info] nvarchar(512))&lt;br /&gt;insert into #tmpDBCCinputbuffer exec ('DBCC INPUTBUFFER(51)')&lt;br /&gt;select [Event Info] from #tmpDBCCinputbuffer&lt;/span&gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:100%;color:#000000;"&gt;It's nothing but the in-house or profiler query itself. The above statements were used to fetch the latest statements of your server processes.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4103859808647483921?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4103859808647483921/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4103859808647483921' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4103859808647483921'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4103859808647483921'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/inputbuffer-events-sql-profiler-in-sql.html' title='SQL Profiler InputBuffer events in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uFLzmYkXKOI/TInEuk3FNxI/AAAAAAAAFLo/nn2gpKxQtl4/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3382612810491946530</id><published>2010-09-08T12:22:00.000-07:00</published><updated>2010-09-08T12:33:59.135-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Like operator on a column name in SQL Server'/><title type='text'>Like operator on a column name in SQL Server</title><content type='html'>&lt;div&gt;To: &lt;a href="mailto:jvprabhusanthi@gmail.com" target="_blank"&gt;jvprabhusanthi@gmail.com&lt;/a&gt;Subject: Help...Urgent&lt;br /&gt;Hi Prabhu,&lt;br /&gt;&lt;br /&gt;i need urgent help from you for sql script.&lt;br /&gt;i have field called "Notes" in table ABC and have another table called XYZ.&lt;br /&gt;XYZ table has five fields 1,2,3,4,5&lt;br /&gt;the requirement is :&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;select * from abc&lt;br /&gt;where 1=1&lt;br /&gt;and abc.notes like '%xyz.1%'&lt;br /&gt;and abc.notes like '%xyz.2%'&lt;br /&gt;and abc.notes like '%xyz.3%'&lt;br /&gt;and abc.notes like '%xyz.4%'&lt;br /&gt;and abc.notes like '%xyz.5%'&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;did you understand?&lt;br /&gt;notes field has some long strings... xyz table clumns string should match with that notes from the abc table.&lt;br /&gt;how do i write the sql script.&lt;br /&gt;becoz i have nearly 2000 records in the table.. can you help out plz....&lt;br /&gt;its urgent.&lt;br /&gt;thanks in advance&lt;br /&gt;pinky&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="color:#993399;"&gt;----------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;It's a very usual question. How to use "Like operator on a column" -&gt; We should use inner join on TableA.Column_Name like TableB.Column_Name&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Let's see a small example to understand a little bit.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;DROP TABLE PINKY1&lt;br /&gt;DROP TABLE PINKY2&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;GO&lt;br /&gt;CREATE TABLE PINKY1(NOTES VARCHAR(100))&lt;br /&gt;INSERT INTO PINKY1 VALUES('VENKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('VENKATESAN PRABU')&lt;br /&gt;INSERT INTO PINKY1 VALUES('rENKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('AENKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('AENKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('zxNKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('zxNKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('zxNKAT')&lt;br /&gt;INSERT INTO PINKY1 VALUES('VERESEAEz')&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;GO&lt;br /&gt;CREATE TABLE PINKY2(VAL1 VARCHAR(100),VAL2 VARCHAR(100),VAL3 VARCHAR(100),VAL4 VARCHAR(100),VAL5 VARCHAR(100))&lt;br /&gt;INSERT INTO PINKY2 VALUES('VE%','%RE%','%SE%','%AE%','%E_')&lt;br /&gt;INSERT INTO PINKY2 VALUES('BE%','%RE%','%SE%','%AE%','%E_')&lt;br /&gt;INSERT INTO PINKY2 VALUES('SE%','%RE%','%SE%','%AE%','%E_')&lt;br /&gt;INSERT INTO PINKY2 VALUES('DE%','%RE%','%SE%','%AE%','%E_')&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#000099;"&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;SELECT * FROM PINKY1 INNER JOIN PINKY2 ON NOTES &lt;span style="color:#006600;"&gt;LIKE&lt;/span&gt; VAL1&lt;br /&gt;WHERE NOTES LIKE VAL2 AND NOTES LIKE VAL3 AND NOTES LIKE VAL4 AND NOTES LIKE VAL5 &lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt; &lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514627402156240306" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 117px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIfkZ44obbI/AAAAAAAAFLQ/JB_kJwyNLvI/s400/1.png" border="0" /&gt;&lt;br /&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3382612810491946530?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3382612810491946530/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3382612810491946530' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3382612810491946530'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3382612810491946530'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/like-operator-on-column-name-in-sql.html' title='Like operator on a column name in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/TIfkZ44obbI/AAAAAAAAFLQ/JB_kJwyNLvI/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-412823899632660142</id><published>2010-09-07T20:47:00.000-07:00</published><updated>2010-09-07T22:06:22.412-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Restrict users to acess specific database in SQL Server'/><title type='text'>All about user creation in SQL Server</title><content type='html'>&lt;span style="font-size:180%;color:#ff0000;"&gt;Creating a new user in SQL Server:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Goto SSMS -&gt; New User. Provide your user name, in my case its sample_user&lt;br /&gt;&lt;br /&gt;Choose the authentication and choose the default database.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIcJ6Ns2MCI/AAAAAAAAFK4/LN6cp7ArLcs/s1600/3.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514387164453285922" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIcJ6Ns2MCI/AAAAAAAAFK4/LN6cp7ArLcs/s400/3.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Default database indicates the database to which the user is having the access. In the next page, you can specify the level of access to the user. The next drop down is Default language -&gt; I have made it as default and it's English.&lt;br /&gt;&lt;br /&gt;Arabic, Brazilian, British English, Bulgarian, Croatian, Czech, Danish are some of the languages listed.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIcJ55X4WRI/AAAAAAAAFKw/2vU-P_UpGIw/s1600/4.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514387158996637970" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 357px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIcJ55X4WRI/AAAAAAAAFKw/2vU-P_UpGIw/s400/4.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;In the next window, you can specify the role of the user and it's server role. I have informed that, this person is a sysadmin and public too.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next option is "User Mapping", here all the database will be listed. You can specify the level of access to be provided to this user for each database.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIcJ5tfkZVI/AAAAAAAAFKo/h0nEfVO2oY0/s1600/5.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514387155807659346" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 360px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIcJ5tfkZVI/AAAAAAAAFKo/h0nEfVO2oY0/s400/5.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I do not want to provide any other access to this user except "VenkatDB".&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Next screen is securables, you will have list of objects like Server, Endpoints and Logins.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;You can choose the object on which you want to provide or deny access.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;For example, I have selected Server -&gt; Select an option "Create any database" and -&gt; Select deny option. Here, we have restricted the user to create any database. Still, he is a sysadmin but he can't create any database.&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514398221031267170" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 358px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIcT9yqdW2I/AAAAAAAAFLI/Fd6GfJahrQ8/s400/6.PNG" border="0" /&gt;The final page is status. It will define the current state of the user.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514398219448604786" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIcT9sxH2HI/AAAAAAAAFLA/PDE4ZP-Cf8w/s400/7.PNG" border="0" /&gt; &lt;div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Now, let's move to our actual topic.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;How to prevent access to a database for a particular SQL Login user????&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Consider am having a user who is having access to multiple databases? I want to restrict the user not to use "VenkatDB" - &gt; A specific database.&lt;br /&gt;&lt;/span&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Now, you need to first make the user as public.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514384559236326930" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 360px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIcHikguJhI/AAAAAAAAFJ4/rrW1VBOb2Nw/s400/1.png" border="0" /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;Provide necessary access level in the database level. Make the user as public for that specific database. Now click "OK". Reopen the login page for that particular user. "VenkatDB" is disappeared.&lt;/div&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514385682316031058" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 320px; CURSOR: hand; HEIGHT: 289px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIcIj8TydFI/AAAAAAAAFKI/C-qDri7UA7o/s320/2.png" border="0" /&gt;&lt;br /&gt;Now, I am trying to access the objects in the database. Below is the message received.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;" &lt;span style="color:#ff0000;"&gt;The server principal "venkat" is not able to access the database "VenkatDB" under the current security context. &lt;/span&gt;"&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-412823899632660142?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/412823899632660142/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=412823899632660142' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/412823899632660142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/412823899632660142'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/all-about-user-creation-in-sql-server.html' title='All about user creation in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TIcJ6Ns2MCI/AAAAAAAAFK4/LN6cp7ArLcs/s72-c/3.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-9080086691114975116</id><published>2010-09-07T01:09:00.000-07:00</published><updated>2010-09-07T01:11:12.068-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Database size in Express editions'/><title type='text'>Database size in Express editions</title><content type='html'>&lt;span style="color:#993399;"&gt;SQL Server 2005 Express editions - Database size is 4 GB&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;SQL Server 2008 Express editions - Database size is 4 GB&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;SQL Server 2008 R2 Express editions - Database size is 10 GB&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;p&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-9080086691114975116?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/9080086691114975116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=9080086691114975116' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9080086691114975116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9080086691114975116'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/database-size-in-express-editions.html' title='Database size in Express editions'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-446117638539467536</id><published>2010-09-07T00:53:00.000-07:00</published><updated>2010-09-07T01:07:39.681-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Show updates check box in Add/Remove programs'/><title type='text'>Check the Updates in our machine</title><content type='html'>This one is pretty interesting findings, I found the check box "Show Updates" in the Add or Remove Program.&lt;br /&gt;&lt;br /&gt;On selecting the check box, you will see a fantastic difference in listing the installed softwares.&lt;br /&gt;It's a tree nature display which will give the information like which one is the master one and what all the patches applied on it.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXvktFmf3I/AAAAAAAAFJw/syBX70ZTgg0/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514076732642459506" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 290px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXvktFmf3I/AAAAAAAAFJw/syBX70ZTgg0/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;It's a fantastic feature and I found it today!!!!! Eurekhaaaaaaaaaaaaaaaa&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;div&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-446117638539467536?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/446117638539467536/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=446117638539467536' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/446117638539467536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/446117638539467536'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/check-updates-in-our-machine.html' title='Check the Updates in our machine'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXvktFmf3I/AAAAAAAAFJw/syBX70ZTgg0/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-9182263906791894645</id><published>2010-09-07T00:37:00.000-07:00</published><updated>2010-09-07T00:48:58.139-07:00</updated><title type='text'>Select Statements to access stored procedures</title><content type='html'>&lt;div&gt;&lt;span style="font-size:180%;color:#ff0000;"&gt;Is it possible to use the select statement to access stored procedures?????&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;In one of the difference between functions and stored procedures is, we can use the &lt;strong&gt;"select"&lt;/strong&gt;&lt;br /&gt;statement in functions whereas we can't use the same in stored procedures.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;Can we make this statement false????? Not completely but a little bit.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Before that, am trying to create a Linked server.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#006600;"&gt;Goto SSMS -&gt; Your DB Server -&gt; ServerObjects -&gt; Linked Server - &gt; Create new Linked Server.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXsFvti4WI/AAAAAAAAFJg/uVbJ58Xf4f8/s1600/7.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072902236037474" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 281px; CURSOR: hand; HEIGHT: 177px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXsFvti4WI/AAAAAAAAFJg/uVbJ58Xf4f8/s400/7.PNG" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;You will get a message box to type your Linked server. You need to provide the servername.&lt;br /&gt;&lt;br /&gt;Specify whether it's SQL Server or not. If it's not SQL Server, provide necessary details to connect it.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIXsFYla4iI/AAAAAAAAFJY/jqxPL5Xm8CI/s1600/8.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072896027943458" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 362px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIXsFYla4iI/AAAAAAAAFJY/jqxPL5Xm8CI/s400/8.PNG" border="0" /&gt;&lt;/a&gt;The second window is authentication, you need to specify the credentials used to access the Linked Server.&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXr-pI_ncI/AAAAAAAAFJQ/rVuRv52Gg6Y/s1600/3.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072780213034434" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXr-pI_ncI/AAAAAAAAFJQ/rVuRv52Gg6Y/s400/3.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The third window specifies the options to be provided for the Linked server. If everything is good. Click "Ok" button.&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXr-VLlDoI/AAAAAAAAFJI/SUurY3xiB78/s1600/4.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072774855167618" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXr-VLlDoI/AAAAAAAAFJI/SUurY3xiB78/s400/4.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, your Linked Server is created.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXr-IKRKzI/AAAAAAAAFJA/jeX5x5QKl-M/s1600/5.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072771360009010" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 201px; CURSOR: hand; HEIGHT: 146px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXr-IKRKzI/AAAAAAAAFJA/jeX5x5QKl-M/s400/5.png" border="0" /&gt;&lt;/a&gt; Now, you can see your catalogs listed under the Linked Server.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXr9x5ZoiI/AAAAAAAAFI4/zpVPJRuNE-4/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072765383680546" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 341px; CURSOR: hand; HEIGHT: 311px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXr9x5ZoiI/AAAAAAAAFI4/zpVPJRuNE-4/s400/1.png" border="0" /&gt;&lt;/a&gt; Now, am trying to access the Linked Server's table,&lt;br /&gt;&lt;span style="color:#009900;"&gt;         SELECT * FROM LinkedServer.VENKATDB.dbo.VENKAT_TABLE&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;Awesome,&lt;br /&gt;&lt;br /&gt;Am able to see my data.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXr9sDkUEI/AAAAAAAAFIw/HAh7_6M9pLI/s1600/2.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514072763815710786" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 256px; CURSOR: hand; HEIGHT: 85px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXr9sDkUEI/AAAAAAAAFIw/HAh7_6M9pLI/s400/2.png" border="0" /&gt;&lt;/a&gt; &lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Goto your Linked Server query window and create a procedure (use the below code)&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;DROP TABLE VENKAT_TABLE_LINKED&lt;br /&gt;CREATE TABLE VENKAT_TABLE_LINKED (ID INT)&lt;br /&gt;INSERT INTO VENKAT_TABLE_LINKED VALUES (1)&lt;br /&gt;INSERT INTO VENKAT_TABLE_LINKED VALUES (2)&lt;br /&gt;INSERT INTO VENKAT_TABLE_LINKED VALUES (3)&lt;br /&gt;INSERT INTO VENKAT_TABLE_LINKED VALUES (4)&lt;br /&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;DROP PROCEDURE VENKAT_PROCEDURE&lt;br /&gt;GO&lt;br /&gt;CREATE PROCEDURE VENKAT_PROCEDURE&lt;br /&gt;AS&lt;br /&gt;BEGIN&lt;br /&gt;SELECT * FROM VENKAT_TABLE_LINKED&lt;br /&gt;END&lt;br /&gt;GO&lt;br /&gt;EXEC VENKAT_PROCEDURE&lt;br /&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Now, your procedure is created in the Linked server and am trying to access that procedure from the actual server using select statement. Le's see how to do it.&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;This can be achieved using OpenQuery statement.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;SELECT * FROM OPENQUERY ([LinkedServerName],'MASTER.DBO.VENKAT_PROCEDURE')&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5514074580423514274" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 193px; CURSOR: hand; HEIGHT: 156px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXtnbcnmKI/AAAAAAAAFJo/c5CahS53M_Y/s400/10.PNG" border="0" /&gt;&lt;/div&gt;&lt;div&gt;So, the statement is wrong :-)&lt;/div&gt;&lt;div&gt;     The actual statement is,&lt;span style="color:#006600;"&gt; "Stored procedures can't use Select statement in it's own server"&lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Hope, you all agree with  my statement.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-9182263906791894645?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/9182263906791894645/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=9182263906791894645' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9182263906791894645'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/9182263906791894645'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/select-statements-to-access-stored.html' title='Select Statements to access stored procedures'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXsFvti4WI/AAAAAAAAFJg/uVbJ58Xf4f8/s72-c/7.PNG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5497896908668501318</id><published>2010-09-06T22:39:00.000-07:00</published><updated>2010-09-07T00:35:36.368-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='All about Linked Server concept in SQL Server'/><title type='text'>Linked servers in SQL Server</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;color:#cc0000;"&gt;Linked Server -&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;It's quite a different area, which I would like to concentrate more. What's this???? linked server......&lt;br /&gt;&lt;br /&gt;Accessing the resource in the other server can be achieved using Linked server. Considering am having a server named "ServerA" and I would like to grab some data from the remote server named "ServerB". In that case, we need to create a linked server. In our scenario, the linked server is "ServerB".&lt;br /&gt;&lt;br /&gt;Let's see, How to link it? How to access the data?&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;Goto SSMS -&gt; Your DB Server -&gt; ServerObjects -&gt; Linked Server - &gt; Create new Linked Server.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXlDXOgE_I/AAAAAAAAFIo/0JwHSaIaSQg/s1600/7.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514065164722246642" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 281px; CURSOR: hand; HEIGHT: 177px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXlDXOgE_I/AAAAAAAAFIo/0JwHSaIaSQg/s400/7.PNG" border="0" /&gt;&lt;/a&gt; You will get a message box to type your Linked server. You need to provide the servername.&lt;br /&gt;&lt;br /&gt;Specify whether it's SQL Server or not. If it's not SQL Server, provide necessary details to connect it.&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXlDAl5hvI/AAAAAAAAFIg/-43hBiCG9eA/s1600/8.PNG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514065158646367986" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 362px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXlDAl5hvI/AAAAAAAAFIg/-43hBiCG9eA/s400/8.PNG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The second window is authentication, you need to specify the credentials used to access the Linked Server.&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIXk6wIIMFI/AAAAAAAAFIY/20oTJ4C3hD4/s1600/3.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514065016787578962" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TIXk6wIIMFI/AAAAAAAAFIY/20oTJ4C3hD4/s400/3.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;The third window specifies the options to be provided for the Linked server. If everything is good. Click "Ok" button.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXk6k4cSKI/AAAAAAAAFIQ/X2r90vYo7bI/s1600/4.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514065013768997026" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIXk6k4cSKI/AAAAAAAAFIQ/X2r90vYo7bI/s400/4.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, your Linked Server is created.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXk6ZCAm0I/AAAAAAAAFII/gNp1U33uLsM/s1600/5.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514065010587900738" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 201px; CURSOR: hand; HEIGHT: 146px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXk6ZCAm0I/AAAAAAAAFII/gNp1U33uLsM/s400/5.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Now, you can see your catalogs listed under the Linked Server.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXk5Oh833I/AAAAAAAAFIA/2oVYp3TArik/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514064990589214578" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 341px; CURSOR: hand; HEIGHT: 311px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXk5Oh833I/AAAAAAAAFIA/2oVYp3TArik/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now, am trying to access the Linked Server's table,&lt;br /&gt;       &lt;span style="color:#009900;"&gt;&lt;strong&gt;   SELECT * FROM LinkedServer.VENKATDB.dbo.VENKAT_TABLE&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;Awesome,&lt;br /&gt;Am able to see my data.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXk4wkV7KI/AAAAAAAAFH4/8E1NSG5tutw/s1600/2.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5514064982546181282" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 256px; CURSOR: hand; HEIGHT: 85px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIXk4wkV7KI/AAAAAAAAFH4/8E1NSG5tutw/s400/2.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J &lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5497896908668501318?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5497896908668501318/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5497896908668501318' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5497896908668501318'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5497896908668501318'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/linked-servers-in-sql-server.html' title='Linked servers in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/TIXlDXOgE_I/AAAAAAAAFIo/0JwHSaIaSQg/s72-c/7.PNG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-4455882199550136719</id><published>2010-09-06T21:25:00.000-07:00</published><updated>2010-09-06T22:39:29.905-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Can&apos;t install SQL Server in Windows XP sp3'/><title type='text'>SQL Server installation issue with Windows XP sp3</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;p&gt;I happened to install SQL Server in Windows XP sp3 version. Oops, I couldn't make it out.&lt;/p&gt;&lt;p&gt;1. Am facing issue with MSXML6.&lt;/p&gt;&lt;p&gt;2. Because of the above point, workstation components and Database services were not installed in my machine.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Reason for this issue:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;&lt;p&gt;MSXML6 is trying to change the language settings of WindowsXP sp3 which it couldn't succeed. So the installation is failing. Looks like, it's a well know bug.&lt;/p&gt;&lt;p&gt;Just checking for the workaround, I found the below blog which may be useful for you. Please check it out,&lt;/p&gt;&lt;p&gt;&lt;a href="http://sqlblog.com/blogs/aaron_bertrand/archive/2009/02/20/the-xp-sp3-msxml6-sp2-sql-server-debacle.aspx"&gt;http://sqlblog.com/blogs/aaron_bertrand/archive/2009/02/20/the-xp-sp3-msxml6-sp2-sql-server-debacle.aspx&lt;/a&gt;&lt;/p&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-4455882199550136719?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/4455882199550136719/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=4455882199550136719' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4455882199550136719'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/4455882199550136719'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/sql-server-installation-issue-with.html' title='SQL Server installation issue with Windows XP sp3'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2844290714418989468</id><published>2010-09-05T23:11:00.000-07:00</published><updated>2010-09-06T02:20:22.579-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='To create format files in SQL Server'/><title type='text'>Format files in SQL Server</title><content type='html'>&lt;div&gt;For many years, I used to think about writing an article on Format files. I got shocked on seeing a procedure which is using format file and I am not aware of this area. Anyway, Learning starts or goes only if we don't know something right!!!! &lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Come one........Let's learn something...........&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;BCP - Bulk copy program&lt;/span&gt;&lt;/strong&gt; &lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;    &lt;span style="color:#993399;"&gt; 1. It's a utility to copy the data in bulk.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;span style="color:#993399;"&gt;      2. Data from files (or) to files in a specific format can be achieved using this BCP.&lt;/span&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Format file:&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;       1. If we want to read a file, it's very hard for SQL Server to read the file and store it in the database. Yes, we can store it but it will varchar field in the database.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;       2. To inform SQL Server about the datatype in the files. We use the Format file.&lt;/div&gt;&lt;br /&gt;&lt;div&gt;       3. The Format file will tell you that, the file holds integer value, datetime field value with length 10 etc..,&lt;/div&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;How to create a Format file????? Let's see the below example to understand it.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Am having a table named Venkat_table&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TISLmLUN9-I/AAAAAAAAFGY/MSa4JDrmMPA/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5513685331797211106" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 301px; CURSOR: hand; HEIGHT: 233px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TISLmLUN9-I/AAAAAAAAFGY/MSa4JDrmMPA/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Below is the command to get the Format file,&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;    &lt;span style="color:#cc0000;"&gt;   bcp Venkat_Table format nul -S servername -T -n -f C:\Venkat_TableFormat.fmt&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;The Syntax is like, BCP DatabaseName.Ownername.ObjectName format nul -S servername -T -n -f formatfilename&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#009900;"&gt;nul - If there is no data file name to load. Here, we are fetching data from the table.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#009900;"&gt;-T - Indicates trusted authentication or else -U and -P should come (SQL Server authentication)&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#009900;"&gt;-n - Indicates native data type. We will discuss more below.&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#009900;"&gt;-f - Informing the format file&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;img id="BLOGGER_PHOTO_ID_5513705417964366818" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 357px; CURSOR: hand; HEIGHT: 62px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TISd3WHpq-I/AAAAAAAAFGo/N8NP81YsV6s/s400/2.png" border="0" /&gt;&lt;br /&gt;We should go to the Windows command prompt and execute the above command, a file will be generated in the desired location.&lt;br /&gt;&lt;div&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TISLlVP4ziI/AAAAAAAAFGI/XUgOGaoDvGM/s1600/3.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5513685317283532322" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 110px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TISLlVP4ziI/AAAAAAAAFGI/XUgOGaoDvGM/s400/3.png" border="0" /&gt;&lt;/a&gt; On opening the Format file, you will get the below details.&lt;br /&gt;&lt;br /&gt;&lt;div&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TISLlFS4iEI/AAAAAAAAFGA/m1I2NgTUNzw/s1600/4.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5513685313001130050" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 104px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TISLlFS4iEI/AAAAAAAAFGA/m1I2NgTUNzw/s400/4.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Here is a generic details to understand the format file.&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5513726439848161842" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 142px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TISw--vUMjI/AAAAAAAAFG4/bBUDc4AT7hc/s400/IC58156.gif" border="0" /&gt;&lt;/div&gt;&lt;div&gt;  &lt;span style="color:#009900;"&gt;bcp Venkat_Table format nul -S servername -T&lt;/span&gt; &lt;span style="font-size:180%;color:#cc0000;"&gt;&lt;strong&gt;-c&lt;/strong&gt;&lt;/span&gt; &lt;span style="color:#009900;"&gt;-f C:\Venkat_TableFormat.fmt&lt;/span&gt; &lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;div&gt;-C indicates the type of columns to be assumed. C indicates the char type. In the below pic, you can see the datatypes were located as character datatype. If it's -n, then the datatype is native datatype.&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;img id="BLOGGER_PHOTO_ID_5513721094826910578" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 67px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TISsH2-8Y3I/AAAAAAAAFGw/NDkrAIHNJV4/s400/5.png" border="0" /&gt; Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2844290714418989468?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2844290714418989468/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2844290714418989468' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2844290714418989468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2844290714418989468'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/format-files-in-sql-server.html' title='Format files in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TISLmLUN9-I/AAAAAAAAFGY/MSa4JDrmMPA/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3397900190390455004</id><published>2010-09-05T22:20:00.000-07:00</published><updated>2010-09-05T23:11:04.576-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Pages in Cache - Dirty Pages details'/><title type='text'>Pages in Cache - Dirty Pages details</title><content type='html'>I got this query from one of the famous article. This query will provide you the information about the pages cached in the memory. Hope, it will useful for the DBA's to identify the performance issues.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;;WITH memusage_CTE AS (SELECT bd.database_id, bd.file_id, bd.page_id, bd.page_type&lt;br /&gt;, COALESCE(p1.object_id, p2.object_id) AS object_id&lt;br /&gt;, COALESCE(p1.index_id, p2.index_id) AS index_id&lt;br /&gt;, bd.row_count, bd.free_space_in_bytes, CONVERT(TINYINT,bd.is_modified) AS 'DirtyPage'&lt;br /&gt;FROM sys.dm_os_buffer_descriptors AS bd&lt;br /&gt;JOIN sys.allocation_units AS au&lt;br /&gt;ON au.allocation_unit_id = bd.allocation_unit_id&lt;br /&gt;OUTER APPLY (&lt;br /&gt;SELECT TOP(1) p.object_id, p.index_id&lt;br /&gt;FROM sys.partitions AS p&lt;br /&gt;WHERE p.hobt_id = au.container_id AND au.type IN (1, 3)&lt;br /&gt;) AS p1&lt;br /&gt;OUTER APPLY (&lt;br /&gt;SELECT TOP(1) p.object_id, p.index_id&lt;br /&gt;FROM sys.partitions AS p&lt;br /&gt;WHERE p.partition_id = au.container_id AND au.type = 2&lt;br /&gt;) AS p2&lt;br /&gt;WHERE bd.database_id = DB_ID() AND&lt;br /&gt;bd.page_type IN ('DATA_PAGE', 'INDEX_PAGE','TEXT_MIX_PAGE') )&lt;br /&gt;SELECT TOP 20 DB_NAME(database_id) AS 'Database',OBJECT_NAME(object_id,database_id) AS 'Table Name', index_id,COUNT(*) AS 'Pages in Cache', SUM(dirtyPage) AS 'Dirty Pages'&lt;br /&gt;FROM memusage_CTE&lt;br /&gt;GROUP BY database_id, object_id, index_id&lt;br /&gt;ORDER BY COUNT(*) DESC&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;img id="BLOGGER_PHOTO_ID_5513678515055886034" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 307px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TISFZY-b_tI/AAAAAAAAFF4/6PXZ4hM9Hx4/s400/1.JPG" border="0" /&gt;&lt;/p&gt;&lt;p&gt; &lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3397900190390455004?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3397900190390455004/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3397900190390455004' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3397900190390455004'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3397900190390455004'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/pages-in-cache-dirty-pages-details.html' title='Pages in Cache - Dirty Pages details'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uFLzmYkXKOI/TISFZY-b_tI/AAAAAAAAFF4/6PXZ4hM9Hx4/s72-c/1.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7355823527056250063</id><published>2010-09-05T21:54:00.000-07:00</published><updated>2010-09-05T22:19:28.942-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Something on GO statement in sql server'/><title type='text'>Auto data population using GO statement</title><content type='html'>Dear Readers, have you tried the below statement????????&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#993399;"&gt;INSERT INTO t1 DEFAULT VALUES;&lt;br /&gt;GO 5  --- What this guy will do?????&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;What's the use of GO statement????? It's just a seperator between statements. It makes the statements as seperate batches.&lt;br /&gt;&lt;br /&gt;Any wild guesses...........???????????????????&lt;br /&gt;&lt;br /&gt;Ok let's see a small example,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;DROP TABLE t1&lt;br /&gt;go&lt;br /&gt;CREATE TABLE t1 (&lt;br /&gt;c1 INT IDENTITY,&lt;br /&gt;c2 as c1*2&lt;br /&gt;);&lt;br /&gt;GO&lt;br /&gt;  -- I have create a table&lt;br /&gt;SET NOCOUNT ON;&lt;br /&gt;GO&lt;br /&gt;INSERT INTO t1 DEFAULT VALUES;&lt;br /&gt;GO 5&lt;br /&gt;select * from t1&lt;/span&gt;&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIR2H0MIYVI/AAAAAAAAFFw/bF6GYRX7orM/s1600/1.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5513661720449016146" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 261px; CURSOR: hand; HEIGHT: 165px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TIR2H0MIYVI/AAAAAAAAFFw/bF6GYRX7orM/s400/1.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;OK, go ahead and start populating your dummy tables.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7355823527056250063?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7355823527056250063/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7355823527056250063' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7355823527056250063'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7355823527056250063'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/09/auto-data-population-using-go-statement.html' title='Auto data population using GO statement'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_uFLzmYkXKOI/TIR2H0MIYVI/AAAAAAAAFFw/bF6GYRX7orM/s72-c/1.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3944309231826563911</id><published>2010-08-31T19:34:00.000-07:00</published><updated>2010-08-31T19:46:31.207-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Update table based on the other column'/><title type='text'>Update table based on the other column</title><content type='html'>I got a new scenario in one of the popular forum. "Update the table based on the other column"&lt;br /&gt;Let's move the exact scenario, there's a table with the below data&lt;br /&gt;--------------------------------&lt;br /&gt;ID Name GroupID GroupName&lt;br /&gt;--------------------------------&lt;br /&gt;1 A 2 ?&lt;br /&gt;2 B 3 ?&lt;br /&gt;3 C 3 ?&lt;br /&gt;4 D 3 ?&lt;br /&gt;--------------------------------&lt;br /&gt;I need to update the groupname based on the group ID column?&lt;br /&gt;&lt;br /&gt;The output should be,&lt;br /&gt;--------------------------------&lt;br /&gt;ID Name GroupID GroupName&lt;br /&gt;--------------------------------&lt;br /&gt;1 A 2 B&lt;br /&gt;2 B 3 C&lt;br /&gt;3 C 3 C&lt;br /&gt;4 D 3 C&lt;br /&gt;--------------------------------&lt;br /&gt;Here we need to use,&lt;br /&gt;1. Self join option - Joining the table with it's own&lt;br /&gt;2. Update statement with inner join&lt;br /&gt;Below is the query to achieve it,&lt;br /&gt;&lt;br /&gt;--- Am creating the table&lt;br /&gt;&lt;span style="color:#330033;"&gt;DROP TABLE VENKAT_TABLE&lt;br /&gt;CREATE TABLE VENKAT_TABLE (ID INT, NAME VARCHAR(100),GROUPID INT, GROUPNAME VARCHAR(100))&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-- Inserting needy data&lt;br /&gt;&lt;span style="color:#330033;"&gt;INSERT INTO VENKAT_TABLE(ID,NAME,GROUPID) SELECT 1,'A',2&lt;br /&gt;UNION ALL SELECT 2,'B',2&lt;br /&gt;UNION ALL SELECT 3,'C',3&lt;br /&gt;UNION ALL SELECT 4,'D',3&lt;br /&gt;UNION ALL SELECT 5,'E',4&lt;/span&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;Self joining the table:&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#330033;"&gt;SELECT A.NAME,* FROM VENKAT_TABLE A INNER JOIN VENKAT_TABLE B&lt;br /&gt;ON A.ID = B.GROUPID&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;update query with Innerjoin / self join:&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#330033;"&gt;UPDATE B&lt;br /&gt;SET GROUPNAME = A.NAME&lt;br /&gt;FROM VENKAT_TABLE A INNER JOIN VENKAT_TABLE B ON A.ID = B.GROUPID &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#330033;"&gt;SELECT * FROM VENKAT_TABLE&lt;br /&gt;&lt;/span&gt;&lt;img id="BLOGGER_PHOTO_ID_5511769741328153186" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 271px; CURSOR: hand; HEIGHT: 154px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TH29YIucemI/AAAAAAAAFFY/qa_GSO0hl7A/s400/1.png" border="0" /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;&lt;p&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt; &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3944309231826563911?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3944309231826563911/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3944309231826563911' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3944309231826563911'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3944309231826563911'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/update-table-based-on-other-column.html' title='Update table based on the other column'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TH29YIucemI/AAAAAAAAFFY/qa_GSO0hl7A/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1268254070203997697</id><published>2010-08-23T02:04:00.000-07:00</published><updated>2010-09-04T04:00:36.785-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Round function in SQL Server'/><title type='text'>Round function in SQL Server</title><content type='html'>&lt;p&gt;&lt;/p&gt;&lt;div&gt;&lt;p&gt;I happened to work in the round function. I found some interesting / peculiar nature of round fucntion. Hope you will enjoy this article. Can you believe you can use round function to validate the input values???????Are you ready for the excitement??&lt;/p&gt;&lt;br /&gt;&lt;p&gt;The syntax for the round function is&lt;br /&gt;&lt;font size="5"&gt;&lt;strong&gt;&lt;font color="#ff0000"&gt;round(value, length)&lt;/font&gt;&lt;/strong&gt;&lt;/font&gt;&lt;br /&gt;length indicates the rounding at the precion level (If positive)...Or else it will round the actual value (If the value is negative)&lt;/p&gt;&lt;p&gt;&lt;br /&gt;You will understand it from the below sample queries.&lt;br /&gt;Now, I am trying to round the below value. Let's see how it goes....&lt;br /&gt;&lt;br /&gt;&lt;font color="#000099"&gt;SELECT ROUND(19.46,0 ) as total&lt;/font&gt;&lt;font color="#3333ff"&gt;&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;-- In above query, am informing sql to round the value with no precisions.&lt;/font&gt;&lt;/p&gt;&lt;font color="#ff0000"&gt;&lt;br /&gt;&lt;p&gt;&lt;/font&gt;&lt;font color="#000099"&gt;SELECT ROUND(19.46123,1 ) as total&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;-- In above query, am informing sql to round the value with 1 precisions. (.46) value is round off to (.5).&lt;br /&gt;--if the value is (.44) it will rounded off to (.40). Since its (.46) which is greater than (.45) the value is (.50)&lt;br /&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#000099"&gt;SELECT ROUND(19.46123,2 ) as total&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;-- In above query, am informing sql to round the value with 2 precisions.&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;font color="#000099"&gt;SELECT ROUND(19.46123,-1 ) as total&lt;br /&gt;&lt;/font&gt;&lt;font color="#ff0000"&gt;---- In above query, am informing sql to round the value not the precisions.&lt;br /&gt;--If the value is negative, the rounding operation will start from the left side. Here, it's trying the value 19 and not&lt;br /&gt;--checking the precisions (.46123)&lt;/font&gt;&lt;/p&gt;&lt;p&gt;&lt;font color="#ff0000"&gt;&lt;/font&gt;&lt;br /&gt;&lt;font color="#000099"&gt;SELECT ROUND(19.46123,-2 ) as total&lt;/font&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;-- In above query, am informing sql to round the value. If the length is equal or more than the value. Then round function will make the value as 0.&lt;/font&gt; &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Interesting right!!!!&lt;/p&gt;&lt;p&gt;So, If two digit value is mandatory and if the user is trying to give 1 digit. The above query will help us to evaluate the inputs. &lt;/p&gt;&lt;br /&gt;&lt;p&gt;Good one right!!!!!&lt;br /&gt;&lt;/p&gt;&lt;img id="BLOGGER_PHOTO_ID_5513011325341279378" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 232px; CURSOR: hand; HEIGHT: 321px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TIIml1msJJI/AAAAAAAAFFo/zX_R5-mFaYg/s400/1.png" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Venkatesan Prabu .J&lt;/p&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1268254070203997697?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1268254070203997697/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1268254070203997697' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1268254070203997697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1268254070203997697'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/round-function-in-sql-server.html' title='Round function in SQL Server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TIIml1msJJI/AAAAAAAAFFo/zX_R5-mFaYg/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5095151347082861152</id><published>2010-08-23T01:56:00.001-07:00</published><updated>2010-08-23T02:04:03.280-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Date datatype in SQL Server 2008'/><title type='text'>Date datatype in SQL Server 2008</title><content type='html'>&lt;strong&gt;&lt;span style="font-size:130%;color:#cc0000;"&gt;DATE DATA-TYPE:&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;      &lt;span style="color:#3333ff;"&gt; Date datatype is one of the new data type introduced in SQL Server 2008. It provided you the date.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;Reason for this data type:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;           &lt;span style="color:#3333ff;"&gt;There are lot of scenarios where, we need to get only date. In our legacy system, we dont have an option to get only date. We need to do some logic on the datetime column to get the time.&lt;br /&gt;&lt;br /&gt;Let's play around this Date datatype in our SSMS :-)&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;------------------------------------------------------------------------------------- &lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VAL DATE&lt;br /&gt;SELECT @VAL = GETDATE()&lt;br /&gt;PRINT @VAL &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#990000;"&gt;The output is &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;2010-08-23 ( The format is  Year:Month)&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;strong&gt;Memory space taken: &lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;       This datatype will take 3 bytes of memory.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;&lt;span style="color:#cc0000;"&gt;Implicit conversion from datetime datatype:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;From Datetime to Date , implicit conversion will happen. No need to explicitly convert the datatypes. Below is an example for the same.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VAL DATETIME&lt;br /&gt;DECLARE @VAL1 DATE&lt;br /&gt;SELECT @VAL = GETDATE()&lt;br /&gt;SELECT @VAL1 = @VAL&lt;br /&gt;PRINT @VAL&lt;br /&gt;PRINT @VAL1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;The Output is,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      &lt;span style="color:#3333ff;"&gt;Aug 23 2010 7:01PM&lt;br /&gt;      2010-08-23&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5095151347082861152?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5095151347082861152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5095151347082861152' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5095151347082861152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5095151347082861152'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/date-datatype-in-sql-server-2008.html' title='Date datatype in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-5111985832334051688</id><published>2010-08-23T01:41:00.000-07:00</published><updated>2010-08-23T02:04:02.118-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Time datatype in SQL Server 2008'/><title type='text'>Time datatype in SQL Server 2008</title><content type='html'>&lt;span style="font-size:130%;color:#cc0000;"&gt;&lt;strong&gt;TIME DATA-TYPE:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;Time data type is one of the new data type introduced in SQL Server 2008. It provided you the time with the accuracy of 100 nanoseconds.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;strong&gt;Reason for this data type:&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;There are lot of scenarios where, we need to get only time. In our legacy system, we dont have an option to get only time. We need to do some logic on the datetime column to get the time.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Let's play around this Time datatype in our SSMS :-)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;-------------------------------------------------------------------------------------&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VAL TIME&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;SELECT @VAL = GETDATE()&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;PRINT @VAL&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;The output is&lt;br /&gt;&lt;/span&gt;&lt;span style="color:#3333ff;"&gt;18:45:29.0230000 ( The format is hour:Minute:Second:Nanoseconds upto 7 precision)&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Memory space taken:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;This datatype will take 3 to 5 bytes memory.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Let's see another example,&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VAL TIME(0) -- This will take 3 bytes to store. Because it doesn't have nanoseconds to store&lt;br /&gt;DECLARE @VAL1 TIME(7) -- -- This will take 5 bytes to store. Because, it holds nanoseconds&lt;br /&gt;SELECT @VAL = GETDATE()&lt;br /&gt;SELECT @VAL1= GETDATE()&lt;br /&gt;PRINT @VAL&lt;br /&gt;PRINT @VAL1&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;The output is,&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#009900;"&gt;18:48:43 -- 3 bytes to store only hour:minute:seconds&lt;br /&gt;18:48:42.5530000 -- 5 bytes to store&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;Implicit conversion from datetime datatype:&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;From Datetime to time, implicit conversion will happen. No need to explicitly convert the datatypes. Below is an example for the same.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;&lt;span style="color:#3333ff;"&gt;DECLARE @VAL DATETIME&lt;br /&gt;DECLARE @VAL1 TIME(7)&lt;br /&gt;SELECT @VAL = GETDATE()&lt;br /&gt;SELECT @VAL1 = @VAL&lt;br /&gt;PRINT @VAL&lt;br /&gt;PRINT @VAL1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;strong&gt;The Output is,&lt;/strong&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#3333ff;"&gt;Aug 23 2010 6:51PM&lt;br /&gt;18:51:40.3500000&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;-------------------------------------------------------------------------------------&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#cc0000;"&gt;&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;br /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-5111985832334051688?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/5111985832334051688/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=5111985832334051688' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5111985832334051688'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/5111985832334051688'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/time-datatype-in-sql-server-2008.html' title='Time datatype in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-3830847644620407968</id><published>2010-08-23T01:32:00.000-07:00</published><updated>2010-08-23T01:35:03.075-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Running vs. Configured Values in SQL Server 2008'/><title type='text'>Running vs Configured Values in SQL Server 2008</title><content type='html'>Have you noticed an option Running vs. Configured Values. What's this?&lt;br /&gt;&lt;br /&gt;      1.  &lt;span style="color:#ff0000;"&gt;Configured values -&lt;/span&gt; Modified value and it's effectively only if you click OK button (Some options may be after server restart)&lt;br /&gt;      2.  &lt;span style="color:#ff0000;"&gt;Running values -&lt;/span&gt; Current values stored or current property of the server.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/THIyHdfvjnI/AAAAAAAAFBg/2YN7EFdfYoc/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5508520397985779314" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/THIyHdfvjnI/AAAAAAAAFBg/2YN7EFdfYoc/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-3830847644620407968?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/3830847644620407968/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=3830847644620407968' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3830847644620407968'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/3830847644620407968'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/running-vs-configured-values-in-sql.html' title='Running vs Configured Values in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_uFLzmYkXKOI/THIyHdfvjnI/AAAAAAAAFBg/2YN7EFdfYoc/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-6818258097688216125</id><published>2010-08-23T00:39:00.000-07:00</published><updated>2010-08-23T01:31:47.510-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Index Creation Memory option in the server properties'/><title type='text'>Index Creation Memory option in SQL Server 2008</title><content type='html'>This option will control the maximum amount of memory to be allocated for the index creation. It's a defined size allocated for the index creation.&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;&lt;span style="font-family:times new roman;color:#ff0000;"&gt;Scenario 1 :&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt; If the server memory is available and if the index needs more memory space. In that case, SQL Server will try to use the available server memory.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:times new roman;color:#ff0000;"&gt;&lt;u&gt;&lt;strong&gt;Scenario 2 :&lt;/strong&gt;&lt;/u&gt;&lt;/span&gt; If the server memory is not available and if the index needs more memory space. In that case, SQL Server will try to use the existing allocated index space.&lt;br /&gt;&lt;br /&gt;Right click on the server -&gt;Properties -&gt; Memory. You will get this option.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/THImHFxzy2I/AAAAAAAAFBY/MZnhOArhyuo/s1600/1.png"&gt;&lt;img id="BLOGGER_PHOTO_ID_5508507197479570274" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 359px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/THImHFxzy2I/AAAAAAAAFBY/MZnhOArhyuo/s400/1.png" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;div&gt;&lt;/div&gt;By default, the value is 0&lt;br /&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Coniguring this setting through query,&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;&lt;strong&gt;&lt;span style="color:#3333ff;"&gt;--------------------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;/strong&gt;&lt;span style="color:#009900;"&gt;sp_configure 'show advanced options', 1;&lt;br /&gt;GO&lt;br /&gt;RECONFIGURE;&lt;br /&gt;GO&lt;br /&gt;sp_configure 'index create memory', 4096 &lt;span style="color:#3333ff;"&gt;-- Am setting the value as 4096KB&lt;br /&gt;&lt;/span&gt;GO&lt;br /&gt;RECONFIGURE;&lt;br /&gt;GO&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="color:#3333ff;"&gt;&lt;strong&gt;--------------------------------------------------------------------------------&lt;/strong&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;/div&gt;&lt;div&gt;Cheers,&lt;/div&gt;&lt;div&gt;Venkatesan Prabu .J&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-6818258097688216125?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/6818258097688216125/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=6818258097688216125' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6818258097688216125'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/6818258097688216125'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/index-creation-memory-option-in-sql.html' title='Index Creation Memory option in SQL Server 2008'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/THImHFxzy2I/AAAAAAAAFBY/MZnhOArhyuo/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-8871328330500557401</id><published>2010-08-22T06:20:00.000-07:00</published><updated>2010-08-22T06:27:21.503-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Function related to exceptions in sql server'/><title type='text'>Function related to exceptions in sql server</title><content type='html'>&lt;div&gt;I happened to read an article on SQL Server exception. I found some of the useful functions which will be very useful to find the exception details like,&lt;br /&gt;&lt;br /&gt;1. ERROR_NUMBER() - This function will provide your the exact error number.&lt;br /&gt;2. ERROR_MESSAGE() - This function will provide the error message thrown&lt;br /&gt;3. ERROR_LINE() - This function will provide you the exact line number where error occurs.&lt;br /&gt;4. ERROR_PROCEDURE() - This function will provide your the procedure where error occurs.&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;BEGIN TRY BEGIN TRAN&lt;br /&gt;DECLARE @dividebyzero INT&lt;br /&gt;SET @dividebyzero = 100&lt;br /&gt;SET @dividebyzero = @dividebyzero/0&lt;br /&gt;COMMIT&lt;br /&gt;END&lt;br /&gt;TRY&lt;br /&gt;BEGIN CATCH&lt;br /&gt;PRINT ERROR_NUMBER()&lt;br /&gt;PRINT ERROR_MESSAGE()&lt;br /&gt;PRINT ERROR_LINE()&lt;br /&gt;PRINT ERROR_PROCEDURE()&lt;br /&gt;ROLLBack&lt;br /&gt;END CATCH &lt;/span&gt;&lt;/div&gt;&lt;div&gt; &lt;/div&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;img id="BLOGGER_PHOTO_ID_5508225124007076226" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 271px; CURSOR: hand; HEIGHT: 167px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/THElkQNS4YI/AAAAAAAAFBQ/zkk4TzXb9A8/s400/1.png" border="0" /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;Cheers,&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;Venkatesan Prabu .J&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-8871328330500557401?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/8871328330500557401/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=8871328330500557401' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8871328330500557401'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/8871328330500557401'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/function-related-to-exceptions-in-sql.html' title='Function related to exceptions in sql server'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uFLzmYkXKOI/THElkQNS4YI/AAAAAAAAFBQ/zkk4TzXb9A8/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-411758902176576822</id><published>2010-08-22T04:26:00.000-07:00</published><updated>2010-08-22T04:42:10.854-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Swap values in a column in sql server'/><title type='text'>Swap values in a column</title><content type='html'>I got a query from one of the blog reader. How to swap the values in a column?&lt;br /&gt;There is a column "availability" in a table and it's have 2 values "Yes" or "No".&lt;br /&gt;&lt;br /&gt;The user have wrongly entered the values. Instead of yes they have inserted No and similary for No, they have entered Yes. How to rectify this problem?&lt;br /&gt;&lt;br /&gt;Here is the solution to solve this problem&lt;br /&gt;&lt;br /&gt;DROP TABLE VENKAT&lt;br /&gt;CREATE TABLE VENKAT(ID INT, NAME VARCHAR(100))&lt;br /&gt;INSERT INTO VENKAT VALUES(1,'VENKAT1')&lt;br /&gt;INSERT INTO VENKAT VALUES(2,'VENKAT2')&lt;br /&gt;INSERT INTO VENKAT VALUES(3,'VENKAT1')&lt;br /&gt;INSERT INTO VENKAT VALUES(4,'VENKAT2')&lt;br /&gt;SELECT * FROM VENKAT&lt;br /&gt;BEGIN TRANSACTION&lt;br /&gt;UPDATE VENKAT SET NAME='VENKAT12' WHERE NAME='VENKAT2'&lt;br /&gt;UPDATE VENKAT SET NAME='VENKAT2' WHERE NAME='VENKAT1'&lt;br /&gt;UPDATE VENKAT SET NAME='VENKAT1' WHERE NAME='VENKAT12'&lt;br /&gt;COMMIT&lt;br /&gt;SELECT * FROM VENKAT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5508197189370208850" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 251px; CURSOR: hand; HEIGHT: 283px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/THEMKPk3YlI/AAAAAAAAFBI/zpt9eaubYcc/s400/1.png" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;br /&gt;&lt;a href="http://venkattechnicalblog.blogspot.com/"&gt;http://venkattechnicalblog.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-411758902176576822?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/411758902176576822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=411758902176576822' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/411758902176576822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/411758902176576822'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/swap-values-in-column.html' title='Swap values in a column'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_uFLzmYkXKOI/THEMKPk3YlI/AAAAAAAAFBI/zpt9eaubYcc/s72-c/1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-436685273596491473</id><published>2010-08-21T05:25:00.000-07:00</published><updated>2010-08-21T06:04:34.094-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Profile issue with Outlook'/><title type='text'>Profile issue with Outlook</title><content type='html'>I happened to configure my exchange server and gmail in my Outlook 2007.&lt;br /&gt;&lt;br /&gt;   Initially, I tried to configure my exchange server. I had some problem in connecting my server. After that, I have configured my gmail. Yahooo.... am able to access my gmails. But while opening my Outlook am getting errors about the exchange server. I thought of removing the same from my outlook.&lt;br /&gt;&lt;br /&gt;  Went to Options and tried deleting the exchange server under mail section. I couldn't succeed.&lt;br /&gt;&lt;br /&gt;I got the below error,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;"You cannot delete this Outlook data file. Configuration information in the file is being copied to your new default data file. You can delete the file after this information is copied."&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;I moved to data tab and tried to remove the data file. Am getting the below error,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;"This data file is associated with a mail account. To remove it use the 'E-Mail' tab.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;How can I solve this??????&lt;br /&gt;&lt;br /&gt;Here is the simple approach,&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;1. Once you configured your email. A profile will be created for you.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000099;"&gt;2. Got control panel -&gt; Mail -&gt; You will get Email accounts/Data files/Profiles. Click the third button and remove your current profile. Create a new profile and add your Gmail account. Yes, now are ready to go -&gt; Am able to check my gmails...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-436685273596491473?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/436685273596491473/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=436685273596491473' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/436685273596491473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/436685273596491473'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/profile-issue-with-outlook.html' title='Profile issue with Outlook'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-7862039476720179156</id><published>2010-08-15T13:48:00.000-07:00</published><updated>2010-08-15T14:15:12.944-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Not In Vs Not exists clause in SQL Server - Part 1'/><title type='text'>Not In Vs Not exists clause in SQL Server - Part 1</title><content type='html'>NOT IN Operator and NOT EXISTS Operator will work or produce similar results. But, the operational flow in getting the results will differ a lot.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not In operator will check for a particular value in the subquery list. Subquery will provide a list of values and our main query will check for the non availability of specific column values in the subquery list. It will use nested loops to fetch the data. We will see in details while analysing the execution plans.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;SELECT NAME FROM VENKAT WHERE ID NOT IN (SELECT ID FROM VENKAT_SECOND_TABLE)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Not Exists operator will do a similar kind of operation but the matching is done with correlated join and it will utilise the index to fetch the records. So performance wise, this will give you an apt solution.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;SELECT NAME FROM VENKAT V1 WHERE NOT EXISTS (SELECT ID FROM VENKAT_SECOND_TABLE V2 WHERE V2.ID=V1.ID)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;color:#009900;"&gt;Your code snippet,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;DROP TABLE VENKAT&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE VENKAT(ID INT, NAME VARCHAR(100))&lt;br /&gt;INSERT INTO VENKAT VALUES(1,'VENKAT1')&lt;br /&gt;INSERT INTO VENKAT VALUES(2,'VENKAT2')&lt;br /&gt;INSERT INTO VENKAT VALUES(3,'VENKAT3')&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;GO&lt;br /&gt;DROP TABLE VENKAT_SECOND_TABLE&lt;br /&gt;GO&lt;br /&gt;CREATE TABLE VENKAT_SECOND_TABLE(ID INT, NAME VARCHAR(100))&lt;br /&gt;INSERT INTO VENKAT_SECOND_TABLE VALUES(1,'VENKAT1')&lt;br /&gt;INSERT INTO VENKAT_SECOND_TABLE VALUES(2,'VENKAT2')&lt;br /&gt;INSERT INTO VENKAT_SECOND_TABLE VALUES(4,'VENKAT4')&lt;br /&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;SELECT NAME FROM VENKAT WHERE ID NOT IN (SELECT ID FROM VENKAT_SECOND_TABLE)&lt;br /&gt;GO&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;SELECT NAME FROM VENKAT V1 WHERE NOT EXISTS (SELECT ID FROM VENKAT_SECOND_TABLE V2 WHERE V2.ID=V1.ID)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Both above statements were providing a similar kind of results. Let's see the execution plan for both,&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5505747186586539378" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 240px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TGhX5T-Y1XI/AAAAAAAAE4c/Ruw9IAhL0Lo/s400/112.png" border="0" /&gt;&lt;br /&gt;&lt;br /&gt;From the execution plan, we can easily identify the performance comparison these two operators. Hope, you will be using not exists operator in your future queries:-)&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-7862039476720179156?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/7862039476720179156/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=7862039476720179156' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7862039476720179156'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/7862039476720179156'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/not-in-vs-not-existing-in-sql-server.html' title='Not In Vs Not exists clause in SQL Server - Part 1'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TGhX5T-Y1XI/AAAAAAAAE4c/Ruw9IAhL0Lo/s72-c/112.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-2456684865690258577</id><published>2010-08-13T08:09:00.000-07:00</published><updated>2010-08-13T08:24:21.584-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='single quotes character inside the string in sql server'/><title type='text'>Single quotes inside the string</title><content type='html'>Storing character or string is possible in the database. For storing the value we will put the string inside the single quotes and we will insert it. For instance,&lt;br /&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;      INSERT INTO VENKAT_TABLE VALUES(1,'VENKAT')&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Now, I want to insert a data like Venkat's instead of venkat. Let's see the query now,&lt;br /&gt;&lt;br /&gt;     &lt;font color="#ff0000"&gt;INSERT INTO VENKAT_TABLE SELECT 1,'MEN'S'&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Am getting the error,&lt;br /&gt;&lt;br /&gt;&lt;font color="#009900"&gt;Msg 105, Level 15, State 1, Line 3&lt;br /&gt;Unclosed quotation mark after the character string '&lt;/font&gt;&lt;br /&gt;&lt;font color="#009900"&gt;&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;In this case, we need to use two single quotes to insert one single quote between the characters in a string.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;font color="#ff0000"&gt;DROP TABLE VENKAT_TABLE&lt;br /&gt;CREATE TABLE VENKAT_TABLE(ID INT, NAME VARCHAR(100))&lt;br /&gt;INSERT INTO VENKAT_TABLE SELECT 1,'MEN''S'&lt;br /&gt;SELECT * FROM VENKAT_TABLE&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TGViRJJMTNI/AAAAAAAAE3k/bAhYZsd-2fY/s1600/1.jpg"&gt;&lt;img id="BLOGGER_PHOTO_ID_5504914166182071506" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 202px; CURSOR: hand; HEIGHT: 96px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TGViRJJMTNI/AAAAAAAAE3k/bAhYZsd-2fY/s400/1.jpg" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt; Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-2456684865690258577?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/2456684865690258577/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=2456684865690258577' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2456684865690258577'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/2456684865690258577'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/single-quotes-inside-string.html' title='Single quotes inside the string'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TGViRJJMTNI/AAAAAAAAE3k/bAhYZsd-2fY/s72-c/1.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6357505892638015674.post-1707211886104684103</id><published>2010-08-10T21:38:00.000-07:00</published><updated>2010-08-12T21:24:42.405-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fantastic chennai event on SQL Server'/><title type='text'>My SQL Server session in Chennai - One of the fabulous event</title><content type='html'>Writing in my blog after a very long time. Last month, I got a very nice opportunity to share my knowledge on SQL Server 2008 - Manageability features to chennai SQL experts.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;It was a unforgottable experience and I enjoyed the whole day with my fellow MVP's. &lt;u&gt;&lt;strong&gt;&lt;span style="color:#ff0000;"&gt;I came to know about me.&lt;/span&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="font-family:verdana;color:#3333ff;"&gt;As usual am late:&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;br /&gt;My session is in the afternoon and am bit late for the session. I missed Pinal's morning session on spatial indexing. Anyway, I have attended his final session.&lt;br /&gt;&lt;br /&gt;This program is well organised and the entire credit goes to the organisers &lt;span style="color:#cc33cc;"&gt;Sugesh, Vidya sagar, Madhivanan and Deepak&lt;/span&gt;. No words to express my joyfullness in meeting all the technology experts at the same time in Chennai.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_uFLzmYkXKOI/TGIqnrPFRxI/AAAAAAAAEyA/SG2fWAADz0o/s1600/1.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5504008555709417234" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 366px; CURSOR: hand; HEIGHT: 400px; TEXT-ALIGN: center" alt="" src="http://4.bp.blogspot.com/_uFLzmYkXKOI/TGIqnrPFRxI/AAAAAAAAEyA/SG2fWAADz0o/s400/1.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="color:#3333ff;"&gt;My Laptop problem:&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;span style="color:#3333ff;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;br /&gt;&lt;strong&gt;&lt;u&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;span style="color:#ff0000;"&gt;&lt;span style="color:#000000;"&gt;Unfortunately, my laptop is not connecting to the Projector. We tried our level best but nothing works for me.&lt;/span&gt; &lt;/span&gt;&lt;span style="color:#000000;"&gt;Moved all my presentation materials to vidya sagar's laptop. Unfortunately, VS2010 demo is not working in his laptop. Atlast, I moved my presentation materials to Deepak's laptop. Thank god, It's working fine. Everyone is too friendly, but I couldn't come out from my tension. Had little bit of food and started my session.&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:verdana;color:#3333ff;"&gt;&lt;u&gt;My session:&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ff0000;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;Am bit tensed and faced a problem with SQL Server authentication. Deepak and vidya sagar understood my situation and helped me at the initial stage. Now, I am relaxed a little bit.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/_uFLzmYkXKOI/TGIp7jDwdqI/AAAAAAAAEx4/2iB-SZ68fOM/s1600/DSC03550.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5504007797600188066" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 300px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TGIp7jDwdqI/AAAAAAAAEx4/2iB-SZ68fOM/s400/DSC03550.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Below are the topics covered in my session,&lt;br /&gt;1. Activity Monitor&lt;br /&gt;2. Policy Based Management&lt;br /&gt;3. Resource Governor&lt;br /&gt;4. SQL Server Audit&lt;br /&gt;&lt;br /&gt;I have provided the Sample scenario, Details and Sample demo for each topics.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/_uFLzmYkXKOI/TGIp7L8wsaI/AAAAAAAAExw/BeHWxjeKjyg/s1600/DSC03548.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5504007791396827554" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 300px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TGIp7L8wsaI/AAAAAAAAExw/BeHWxjeKjyg/s400/DSC03548.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color:#006600;"&gt;My snap with other technology experts Vidya sagar, Madhu K.Nair, Mathivanan, Pinal Dave, Deepak and myself (To know more about these people, you can just google their names)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5504008739986685938" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 291px; TEXT-ALIGN: center" alt="" src="http://3.bp.blogspot.com/_uFLzmYkXKOI/TGIqyZuNP_I/AAAAAAAAEyI/BgYQdVH72Jc/s400/2.png" border="0" /&gt;&lt;br /&gt;I got a friendly gift/honor from SQL Server Chennai User group (Gift from vidya sagar). All attendees have got a black colour T-shirt with CSSUG embossed on it. In addition to this, speakers should select 2 active attendees and those two will be rewarded with SQL Server related books. Speakers will put their autograph and presented the books to the active participants.&lt;br /&gt;&lt;a href="http://2.bp.blogspot.com/_uFLzmYkXKOI/TGIp6gBrd2I/AAAAAAAAExo/HdjYpWl6TWY/s1600/DSC03546.JPG"&gt;&lt;img id="BLOGGER_PHOTO_ID_5504007779606296418" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 300px; TEXT-ALIGN: center" alt="" src="http://2.bp.blogspot.com/_uFLzmYkXKOI/TGIp6gBrd2I/AAAAAAAAExo/HdjYpWl6TWY/s400/DSC03546.JPG" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-family:verdana;color:#3333ff;"&gt;Special note on Pinal Dave:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;OOPS, Pinal is an extra ordinary person. I can remember he speaks atleast 30 minutes continuously on seeing me. He had the capability to talk on any topics for atleast 1 hour :-) (Just kidding). Too realistic, too jovial, too friendly and finally a very strong SQL Server expert. Proud to tell you all that, I am a big fan of Pinal Dave.&lt;br /&gt;&lt;br /&gt;&lt;img id="BLOGGER_PHOTO_ID_5504015391087270658" style="DISPLAY: block; MARGIN: 0px auto 10px; WIDTH: 400px; CURSOR: hand; HEIGHT: 219px; TEXT-ALIGN: center" alt="" src="http://1.bp.blogspot.com/_uFLzmYkXKOI/TGIw1jAKGwI/AAAAAAAAEyQ/-NuQiRDEScY/s400/21.png" border="0" /&gt;&lt;br /&gt;Anyway, Thanks to CSSUG organisers for providing me a very nice opportunity to share my knowledge and to meet everyone.&lt;br /&gt;&lt;br /&gt;Cheers,&lt;br /&gt;Venkatesan Prabu .J&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/6357505892638015674-1707211886104684103?l=venkattechnicalblog.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://venkattechnicalblog.blogspot.com/feeds/1707211886104684103/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=6357505892638015674&amp;postID=1707211886104684103' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1707211886104684103'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6357505892638015674/posts/default/1707211886104684103'/><link rel='alternate' type='text/html' href='http://venkattechnicalblog.blogspot.com/2010/08/my-sql-server-session-in-chennai-one-of.html' title='My SQL Server session in Chennai - One of the fabulous event'/><author><name>Venkatesan Prabu</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='18' height='32' src='http://1.bp.blogspot.com/_uFLzmYkXKOI/SKVH1DhtONI/AAAAAAAABkM/NzRKDHLXC3o/S220/vp.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_uFLzmYkXKOI/TGIqnrPFRxI/AAAAAAAAEyA/SG2fWAADz0o/s72-c/1.bmp' height='72' width='72'/><thr:total>2</thr:total></entry></feed>
