<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3682177839638728927</id><updated>2026-10-20T01:25:51.060+05:30</updated><category term="SQL Server Denali"/><category term="Deadlock"/><category term="Backup"/><category term="Mirroring"/><category term="DBCC CHECKDB"/><category term="Database Mirroring"/><category term="Level 16"/><category term="XML"/><category term="Collation Conflict"/><category term="Group By"/><category term="Index"/><category term="Order By"/><category term="Running Total"/><category term="TempDB"/><category term="attach MDF file"/><category term="8910"/><category term="8929"/><category term="8944"/><category term="Attach Database Failed"/><category term="Blocking"/><category term="COALESCE"/><category term="CheckDB"/><category term="Cross Join"/><category term="Database is in transition"/><category term="Delete Duplicate Rows"/><category term="Drop Column"/><category term="Edition"/><category term="Error 29506"/><category term="Error 8921"/><category term="Error 8930"/><category term="Error 916"/><category term="Error 926"/><category term="Error log"/><category term="FETCH"/><category term="IntelliSense"/><category term="Line 1"/><category term="List tables which are dependent on a given table"/><category term="Log Shipping"/><category term="NULLIF"/><category term="Number to Word"/><category term="OFFSET"/><category term="Password"/><category term="Reclaim Table space after dropping column"/><category term="Recover MDF File"/><category term="Remove Auto Shrink from all databases"/><category term="Replace"/><category term="Round"/><category term="SELECT"/><category term="SQL Azure"/><category term="SQL Server Cannot resolve collation conflict for equal to operation"/><category term="Shrink Log File"/><category term="Start"/><category term="State 1"/><category term="State 2"/><category term="String or binary data would be truncated"/><category term="Stuff"/><category term="Temp Table VS Table Variable"/><category term="Timeout expired"/><category term="Trigger"/><category term="Unable to modify table."/><category term="Union"/><category term="Unused Indexes"/><category term="connectivity"/><category term="pre-login handshake"/><category term="recover SQL database"/><category term="&quot;The SQL Server System Configuration Checker cannot be executed due to WMI configuration on the machine DI-ERP2 Error:2148007941 (0x80080005)"/><category term=".net Framework 3.5"/><category term="000 Characters"/><category term="10054"/><category term="2148007941"/><category term="22001"/><category term="25 New Features in SSMS 2008"/><category term="2501"/><category term="2537"/><category term="2570"/><category term="32 bit"/><category term="5235"/><category term="5242"/><category term="64 bit"/><category term="7105"/><category term="7903"/><category term="7906"/><category term="7955"/><category term="7995"/><category term="8903"/><category term="8906"/><category term="8908"/><category term="8928"/><category term="8931"/><category term="8947"/><category term="8959"/><category term="8966"/><category term="8999"/><category term="A severe error occurred on the current command"/><category term="A transport-level error has occurred when sending the request to the server"/><category term="ACID Rule"/><category term="ALTER DATABASE failed because a lock could not be placed on database"/><category term="Activity Monitor"/><category term="Add a Linked Server"/><category term="Add or Modify IDENTITY property to an existing column"/><category term="Add or Remove a node in SQLServer 2005 Failover Cluster"/><category term="Advantage and disadvantage of Database Mirroring"/><category term="All Chars of a string are same"/><category term="AlphaNumeric ID"/><category term="Already in use"/><category term="Alter failed for Login sa. Cannot set a credential for principal &#39;sa&#39;."/><category term="Alter table error"/><category term="Amount in Word Function"/><category term="An error has occurred while establishing a connection to the server."/><category term="Archive old database backup files using TSQL Script"/><category term="Arithmetic overflow error converting IDENTITY to data type int"/><category term="Arithmetic overflow error converting expression to data type int."/><category term="Attach MDF without LDF"/><category term="Attributes do not match"/><category term="Authentication Mode"/><category term="Auto Generate AlphaNumeric ID"/><category term="Auto Update Statistics"/><category term="Auto generate change scripts in SQL Server Management Studio"/><category term="Automatic Statistics Update"/><category term="Avoid using INSERT without a column list"/><category term="Azure"/><category term="BAckup Progressbar"/><category term="BAckup and Restore through VB.net"/><category term="BI Tools"/><category term="Back file info"/><category term="Backing up and Restoring the database with splitting files to multiple disks"/><category term="Backup Analysis Service Database"/><category term="Backup Database to Remote Location"/><category term="Backup MSSQL Database on Windows Dedicated Server"/><category term="Backup all Database"/><category term="Backup job failed -File in use Error 32"/><category term="Backup job failed – no space Error 112"/><category term="Backup not starting for Database with Full Text Catalog"/><category term="Backup types in sql server"/><category term="Batch Separator"/><category term="Browser"/><category term="Business Intelligence Tools"/><category term="CALCULATE THE NUMBER OF WEEK DAYS BETWEEN TWO DATES"/><category term="CHECKTABLE ends abruptly"/><category term="CHECK_EXPIRATION option cannot be used when CHECK_POLICY is OFF"/><category term="CLR Integration"/><category term="CONCAT()"/><category term="CPU Usage"/><category term="CPU usage by each database"/><category term="CSV File"/><category term="CTE"/><category term="Calculate Indexes Size via dm_db_index_physical_stats"/><category term="Calculate Percentile"/><category term="Cannot Connect to WMI Provider"/><category term="Cannot add column to existing table"/><category term="Cannot alter the user &#39;dbo&#39;. (Microsoft SQL Server"/><category term="Cannot connect to WMI provider – Invalid class"/><category term="Cannot connect to WMI provider. You do not have permission or the server is unreachable."/><category term="Cannot detach a suspect or recovery pending database."/><category term="Cannot find the template file for the new query"/><category term="Causes for network related errors in SQL Server"/><category term="Ceiling"/><category term="Change Batch Separator"/><category term="Change Edit Top 200 Rows and Select Top 1000 Rows to Select/Edit All"/><category term="Change Password"/><category term="Change Recovery Model"/><category term="Change SQL Server Password"/><category term="Change all databases compatibility level at once"/><category term="Change collation for tempdb"/><category term="Change database compatibility level"/><category term="Change of safety level not allowed."/><category term="Change tables owner to dbo with sp_changeobjectowner"/><category term="Changing column type for a table with clustered index"/><category term="Check Database existance"/><category term="Check Disk Space though SQL Server"/><category term="Check If Stored Procedure Exists"/><category term="Check constraint to allow alphabets and numbers only in SQL Server"/><category term="Check dependencies"/><category term="Check leap year"/><category term="Checking Existence and to Drop Temp Tables"/><category term="Choose"/><category term="Choose() Function"/><category term="Cleaning up TempDB"/><category term="Clear Recent Server List"/><category term="Clear recent server list from SSMS"/><category term="Clear the server list in SSMS"/><category term="Cluster"/><category term="Clustered Index vs Non Clustered Index"/><category term="Clustered SQL Server fail to start"/><category term="Clustering"/><category term="Collation"/><category term="Collation Conflicts in a SQL Server Join"/><category term="ColumnStore()"/><category term="CommandTimout"/><category term="Compare Table using EXCEPT and INTERSECT"/><category term="Comparing 2 Results Sets to see if they are identical"/><category term="Compatibility Level"/><category term="Configure SQL Server"/><category term="Configure SQL Server Agent Mail to Use SQL Mail"/><category term="Configuring SQL Server to Listen on An Alternative Port"/><category term="Configuring Server Startup Parameters in SQL Server Denali"/><category term="Connect PerfMon to a Remote Server"/><category term="Connect to SQL Server from command prompt"/><category term="Connecting SQL Server on Different Port using Management Studio"/><category term="Connecting to SQL Server Using SQLCMD Utility"/><category term="Connection error"/><category term="Connection handshake failed"/><category term="Connection problem"/><category term="Constraint"/><category term="Conversion from Hex String to VarBinary and vice versa"/><category term="Convert Delimited String to Table"/><category term="Convert Number to Word"/><category term="Convert Second to HH:MM:SS"/><category term="Convert Seconds to HH:MM"/><category term="Copy Database"/><category term="Copy Database to Other Servers"/><category term="Copy table structure"/><category term="Corrupt MS SQL Server database"/><category term="Corrupt Master Database"/><category term="Could not connect to the report server."/><category term="Count Occurrences of Characters"/><category term="Count Rows based on Condition"/><category term="Count Rows in Tables and its Size"/><category term="Create Backup File with Password protection"/><category term="Create Custom Reports for SQL Server Management Studio"/><category term="Create Database"/><category term="Create Database error"/><category term="Create Folder"/><category term="Create Single Table Backup"/><category term="Create a Comma-Delimited List Without Using a Cursor"/><category term="Create/Drop Scripts for All Existing Foreign Keys"/><category term="Creating a comma-separated list"/><category term="Creating a linked server in SQL Server for My SQL Database"/><category term="Ctrl + N shortcut key is not working in SQL Server 2008"/><category term="Cursor"/><category term="Customize SSMS query window"/><category term="DBCC CHECKDB is unable to recover Error 5242"/><category term="DBCC CHECKTABLE"/><category term="DBCC Commands"/><category term="DBCC DBREINDEX failed"/><category term="DBCC InputBuffer and error code 800A0E78"/><category term="DBCC command failed"/><category term="DCL–Data control language"/><category term="DISTINCT"/><category term="DMV to check SQL Server edition specific feature"/><category term="Damaged Filegroups"/><category term="Damaged MS SQL Server database"/><category term="Database &#39;msdb&#39; cannot be opened."/><category term="Database Consistency Check"/><category term="Database Corrupt when set online"/><category term="Database Corruption on Write-Caching Enable System"/><category term="Database Engine Tuning Adviser not found"/><category term="Database Mirror"/><category term="Database Mirroring login attempt by User &#39; &#39; failed with error: &#39;Connection handshake failed&#39;"/><category term="Database Object Information"/><category term="Database Stuck In Restoring State"/><category term="Database level permissions for SQL Server 2005 and 2008"/><category term="Date Range Table"/><category term="Date Table"/><category term="DateDiff"/><category term="DateFromParts()"/><category term="DateTime"/><category term="DateTime DataTypes"/><category term="Debug"/><category term="Debug query in SSMS"/><category term="Default Data"/><category term="Default Language"/><category term="Delete Duplicate Records"/><category term="Delete Duplicate Records Using Common Tabel Expression"/><category term="Delete all Data from all tables in a database"/><category term="Delete from Registry using SQL"/><category term="Delete older backup files"/><category term="Delete or truncate all tables data within a database SQL Server 2008 R2"/><category term="Deleted all login from SQL Server and now unable to Login to SQL Server"/><category term="Denormalization"/><category term="Dense_Rank"/><category term="Detach Database"/><category term="Detach and Attach a SQL Server 2008 Analysis Services Database"/><category term="Details of current running query"/><category term="Detect SQL Server Version"/><category term="Detect torn pages in SQL Server"/><category term="Difference"/><category term="Difference Between SET and SELECT"/><category term="Difference between CUBE and ROLLUP"/><category term="Difference between TRUNCATE command and DELETE Command"/><category term="Difference between a regular backup and a copy only backup"/><category term="Difference between two dates in SQL Server"/><category term="Different Options for Query Results"/><category term="Differential Backup"/><category term="Disable All Constraints or Triggers in a Single Command"/><category term="Disable Trace Flag"/><category term="Disable a Job via TSQL"/><category term="Disable all SQL Server Jobs"/><category term="Disabled Constraint"/><category term="Disconnect all users from a database"/><category term="Dismantling SQL Server Cluster"/><category term="Divide tempdb Into Multiple Files"/><category term="Drawing a circle in SQL Server 2008 R2"/><category term="Drop All Indexes and Stats in one Script"/><category term="Drop all Database Connections"/><category term="Duplicate Records"/><category term="EOMONTH()"/><category term="Enable CLR"/><category term="Enable Object Explorer in SQL server 2008 R2"/><category term="Enable Remote Connection on SQL Server 2008 Express"/><category term="Enable Trace Flag"/><category term="Enabling IntelliSense"/><category term="Encryption"/><category term="Encryption Algorithm"/><category term="Error 0xC0014062: Unable to complete login process due to delay in opening server connection"/><category term="Error 1117"/><category term="Error 1418"/><category term="Error 1618"/><category term="Error 1813"/><category term="Error 233"/><category term="Error 2522"/><category term="Error 3023"/><category term="Error 3154 - The backup set holds a backup of a database other than the existing database."/><category term="Error 3205"/><category term="Error 4929"/><category term="Error 5030"/><category term="Error 64"/><category term="Error 7139"/><category term="Error 8152"/><category term="Error 8645: A timeout occurred while waiting for memory resources to execute the query. Re-run the query."/><category term="Error 8993"/><category term="Error 8994"/><category term="Error 952"/><category term="Error Attaching Database"/><category term="Error Attaching MDF File"/><category term="Error Locating Server/Instance Specified"/><category term="Error Message 3241"/><category term="Error Number: 18272"/><category term="Error The trasaction log for database is full."/><category term="Error coming in Client system while running query"/><category term="Error coming while dropping Database"/><category term="Error converting data type varchar to int"/><category term="Error during Backup"/><category term="Error executing extended stored procedure: Invalid Parameter"/><category term="Error showing on windows vista when connecting to sql server in remote server"/><category term="Error: 1326"/><category term="Error: 15150)"/><category term="Error: 18456"/><category term="Error: 3241"/><category term="Error: 3314"/><category term="Error: 3316"/><category term="Error: 3707"/><category term="Error: 5133 SQL Server while attaching the Database"/><category term="Error: 5242"/><category term="Error: 7139"/><category term="Error: 9002"/><category term="Error: 948"/><category term="Errors after Running DBCC Checkdb Command"/><category term="Errors found in text ID"/><category term="Errors related to restore database"/><category term="Estimated completion time for Backup and Restore"/><category term="Estimated time of Backup"/><category term="Event ID 17204"/><category term="Event Log"/><category term="Expiry Date"/><category term="Expiry Date of SQL Server Evaluation Version"/><category term="Export data from SQL Server to Excel without using SSIS or DTS"/><category term="Export query result to Excel or CSV"/><category term="Extra or Invalid Key"/><category term="Extract File Name from File Path"/><category term="Extracting Only Numbers from a String"/><category term="FILESTREAM"/><category term="FILESTREAM Data Type in SQL Server 2008"/><category term="FIRST_VALUE()"/><category term="FORCESCAN"/><category term="FORCESEEK"/><category term="FRunCM"/><category term="FTP"/><category term="Failed to retrieve directory Listing"/><category term="Failover Cluster"/><category term="Failover Clustering"/><category term="File Growth"/><category term="File Info"/><category term="Fill Factor"/><category term="Filtered Index"/><category term="Find Duplicate Rows"/><category term="Find LOB Columns Script"/><category term="Find Last Restart oFind Last Restart of SQL Serverf SQL Server"/><category term="Find TCPIP Port"/><category term="Find Table Size"/><category term="Find Table with Max. rows &amp; Size"/><category term="Find a string in whole Database"/><category term="Find all Identity Property Column in a Database"/><category term="Find all tables without Triggers in SQL Server"/><category term="Find database file size"/><category term="Find missing identity value in a table"/><category term="Find most expensive cached queries"/><category term="Find out recently run queries"/><category term="Find out which host / IP address and Program deleted the records from SQL Server"/><category term="Find the File Size"/><category term="Find the SQL Server Port Number"/><category term="Find the job activity details"/><category term="Find the number of days in a month"/><category term="Find the size of Index in SQL Server"/><category term="Find the tables without primary Key"/><category term="Find unused SQL Server indexes"/><category term="Find when SQL Server was last started"/><category term="Finding Databases which had Transaction Log Growth"/><category term="Finding Log Size for all Databases in SQL Server"/><category term="Finding a Table in all databases on Server"/><category term="Finding the details of Backup File without restoring it"/><category term="Firewall"/><category term="First Day of Next and Previous Month"/><category term="First and Last Saturday of Each Month"/><category term="Floor"/><category term="Foreign Key"/><category term="Foreign Key Hierarchy"/><category term="Foreign Keys without Index"/><category term="Format()"/><category term="Formatting"/><category term="Full Text Catalog"/><category term="Function Vs Stored Procedure"/><category term="Function and Value"/><category term="Function to Split a Delimited String and Return a Field"/><category term="Functions of master"/><category term="FusionRetail6"/><category term="GO Keyword with Integer Parameter"/><category term="Generate Numbers Between two Numbers"/><category term="Generate random Password"/><category term="Generate running total"/><category term="Generating SQL Server Test Data with Visual Studio 2010"/><category term="Generating user instances in SQL Server is disabled. User sp_configure ‘user instances enabled’ to generate user instances."/><category term="Get File Date"/><category term="Get Identity of New Inserted Rows"/><category term="Get Last Date of Month"/><category term="Get Service Account Name"/><category term="Get Specific Part of String"/><category term="Get Tables List With Dependent Tables Name"/><category term="Get a List of Stored Procedures Within a Database"/><category term="Get age"/><category term="Get all dates between date range"/><category term="Get all information for all Database"/><category term="Get all the skipped identity values from a table"/><category term="Get number of days in a month using SQL"/><category term="Get the view definition from a SQL Server using ADO"/><category term="GetUTCDate"/><category term="Giving and removing permissions in SQL Server"/><category term="Grant"/><category term="Grant Permission"/><category term="Grouping Sets"/><category term="HashBytes Function to implement a one way hash"/><category term="Having"/><category term="Hide an Instance of SQL Server in the network"/><category term="Hiding System Objects"/><category term="High Availability Options for SQL Server 2008"/><category term="How many times a character (string) is repeated within a string"/><category term="How to check what service pack is installed"/><category term="How to determine 32 or 64 bit version of SQL Server"/><category term="How to make Like case sensitive"/><category term="How to sent email by using Sql Server"/><category term="I/O Logical Check Failure"/><category term="I/O error"/><category term="IIF"/><category term="IIF Logical Function"/><category term="IIS"/><category term="IIS FTP Configuration"/><category term="INSTEAD OF DELETE"/><category term="INSTEAD OF triggers"/><category term="Identity"/><category term="Identity column information"/><category term="Import CSV File"/><category term="Import CSV File Into SQL Server Using Bulk Insert"/><category term="Improve SQL Server performance using profiler and tuning advisor"/><category term="Incremental Backup"/><category term="Index Optimization"/><category term="Index statistics in a database"/><category term="Index was outside the bound of the array"/><category term="Indexed Views"/><category term="Indexes that are not used"/><category term="Inner Join"/><category term="Insert into Table with Default Values only"/><category term="Install SQL Server"/><category term="Installation Error"/><category term="Installation Error Codes"/><category term="Integer to String"/><category term="Intellisense Stops Working"/><category term="Interactive Services Dialog Detection window for SQL Agent"/><category term="Invalid operator for data type. Operator equals add"/><category term="Is My Computer/Server Running 32-bit or 64-bit?"/><category term="IsNull"/><category term="Join Operations"/><category term="Joins"/><category term="Kick bad SQL Server habits"/><category term="Know space distribution by table"/><category term="LAST_VALUE()"/><category term="LINQ and Stored Procedures"/><category term="LINQ to XML"/><category term="Lag"/><category term="Large Table"/><category term="Last accessed"/><category term="Last accessed date and time of database."/><category term="Last time SQL instance was restarted"/><category term="Lead"/><category term="Leap Year"/><category term="Learning SQL Server 2008"/><category term="Left"/><category term="Left Padding Numerics with Leading Zeros"/><category term="Length of a string"/><category term="Limit a VarChar Column to 10"/><category term="Line 2"/><category term="Line 23"/><category term="Line Feed and Carriage Return from a string"/><category term="Linked Server"/><category term="Linked server error message 7399"/><category term="List / Drop all stored procedures from a database"/><category term="List Table with Identity Column"/><category term="List all Disabled Trigger"/><category term="List all Disabled Triggers"/><category term="List all Primary keys column"/><category term="List all System Stored Procedures"/><category term="List all Tables in Database With / Without Primary Key"/><category term="List all databases attached to the drives"/><category term="List all tables with size and row count"/><category term="List all the users of a particular database."/><category term="List all trigger with source code"/><category term="List database objects modified in the last ‘X’ days"/><category term="List of all Data and Log Files of a SQL Instance"/><category term="List tables that doesn&#39;t participate in any relationships"/><category term="List the modified objects in SQL Server"/><category term="Listen on some Port other  than 1433"/><category term="Load Comma Delimited File Into SQL Server"/><category term="Load XML into SQL"/><category term="Lock Table"/><category term="Locking"/><category term="Locking Interview Questions"/><category term="Log Space"/><category term="Log backup to replace maintenance plan"/><category term="Login Failed"/><category term="Login failed for user ‘sa’ because the account is currently locked out. The system administrator can unlock it."/><category term="MDF and LDF File location"/><category term="MDF file Corrupt"/><category term="MS SQL Database FILESTREAME Corruption"/><category term="MSSMSE"/><category term="MSSQL Password"/><category term="MUST_CHANGE option cannot be used when CHECK_EXPIRATION is OFF."/><category term="Making a Stored Procedure Available to All Databases"/><category term="Media Family"/><category term="Memory problem"/><category term="Merge values from multiple rows into one row"/><category term="Microsoft SQL Server 2008 x64 Error: 15401"/><category term="Middle and Last Name"/><category term="Minimize Deadlock"/><category term="Mirroring States"/><category term="Misconception regarding database repair"/><category term="Missing Index"/><category term="Missing Transaction Log"/><category term="Modify / Find SQL Server Agent log file"/><category term="Monitor your website or any URL from SQL Server"/><category term="Monitoring Database Mirroring"/><category term="Move Database from one disk to other"/><category term="Move TempDB"/><category term="Move TempDB Data and Log file"/><category term="Move TempDB files to different location"/><category term="Moving database to the cloud with SQL Azure"/><category term="Moving master database"/><category term="Moving model databases"/><category term="Moving msdb database"/><category term="Msg 107 - The column prefix does not match with a table name or alias name used in the query."/><category term="Msg 130 - Cannot perform an aggregate function on an expression"/><category term="Msg 141 - A SELECT statement that assigns a value to a variable must not be combined with data-retrieval operations."/><category term="Msg 157 - An aggregate may not appear in the set list of an UPDATE"/><category term="Msg 1934"/><category term="Msg 214"/><category term="Msg 306"/><category term="Msg 8992"/><category term="NEWID vs NEWSEQUENTIALID"/><category term="Nested Loops"/><category term="New functions for Date and Time"/><category term="No of CPU and RAM"/><category term="No of Reads / Writes on Database files"/><category term="Nodes"/><category term="Non recoverable I/O error"/><category term="Normalization"/><category term="Number of Week Days Between two Dates"/><category term="Number of days in a month"/><category term="Number of words in a string"/><category term="Number to Word Function"/><category term="Object Explorer"/><category term="Object Search"/><category term="Occurrence of Character in a String"/><category term="OpenXML"/><category term="Optimize"/><category term="Out-of-range and Invalid Data Causes Error"/><category term="Outer Join"/><category term="Output time in days"/><category term="PARSE()"/><category term="POS"/><category term="PROCESS CSV (COMMA-SEPARATED VALUE) STRINGS"/><category term="Paging"/><category term="ParseName"/><category term="Partition By"/><category term="Pause or Resume a Database Mirroring"/><category term="Percentile"/><category term="Performance Analysis"/><category term="Performance Killer in MSSQL"/><category term="Performance problem"/><category term="Physical Joins"/><category term="Pivot"/><category term="Point of Sale Software"/><category term="Port"/><category term="Prevent Databases From Being Dropped"/><category term="Primary key"/><category term="Primary keys column"/><category term="Primary keys without Clustered Index"/><category term="Problem detected with installed .Net Framework"/><category term="Problem during setup of SQL Server 2008"/><category term="Procedure sp_executesql"/><category term="Product Level"/><category term="Profiler"/><category term="Progressbar"/><category term="Properties of Database"/><category term="Property Owner is not available for Database &#39;AdventureWorks&#39;"/><category term="Protect MS SQL Database"/><category term="Quartile"/><category term="Queries waiting  for memory"/><category term="Query and Stored Procedure Optimization"/><category term="Query to find Computed columns"/><category term="Query to find Dependant Objects"/><category term="Query to find oldest active user transaction and kill them"/><category term="Query to find the Index with size"/><category term="Query to get All Databases Size"/><category term="Query to get IP address of SQL Server"/><category term="Query to get Last restored database in SQL Server"/><category term="Query to get SQL Server name"/><category term="Query to get details of permissions on Database objects"/><category term="Query to return database files and free space"/><category term="Query to write/create a file"/><category term="RAND()"/><category term="RESTORE DATABASE fails while trying to restore password protected backup set"/><category term="RESTORE DATABASE is terminating abnormally"/><category term="Random Number Generator"/><category term="Random Number for each row"/><category term="Rank"/><category term="Ranking"/><category term="Reasons of database corruption"/><category term="Rebuild Log file"/><category term="Rebuild MSDB"/><category term="Rebuild MSDB Database"/><category term="Rebuild all indexes for all tables and all databases"/><category term="Rebuild system databases"/><category term="Recently Used Files in SSMS"/><category term="Recompile Stored Procedures"/><category term="Record Retrieval Error Connection Read"/><category term="Recover Corrupt MDF File"/><category term="Recover Damaged mdf file"/><category term="Recover Deleted Data In SQL Server"/><category term="Recover Master File"/><category term="Recover Mismatch Error in the Object ID"/><category term="Recover Suspect Database"/><category term="Recover sa password"/><category term="Recovering SQL database"/><category term="Recoverr data"/><category term="Recovery Model"/><category term="Recovery Pending Database"/><category term="Recreate the msdb database in SQL Server"/><category term="Refresh Intellisense in SSMS(SQL Server Management Studio) 2008 &amp; above"/><category term="Refreshing IntelliSense"/><category term="Registry writing and regisrty reading through SQL"/><category term="Releasing unused memory in SQL server"/><category term="Remote Connection"/><category term="Remove Auto Shrink"/><category term="Remove Database Mirroring"/><category term="Remove Extra Spaces From String Value"/><category term="Remove Permission"/><category term="Remove Unwanted characters from a string"/><category term="Remove special characters from a string"/><category term="Remove the Witness from a Database Mirroring Session"/><category term="Removing unwanted spaces within a string"/><category term="Rename SQL Server Instance Name"/><category term="Rename all stored procedures in database"/><category term="Repair SQL database"/><category term="Repair a Suspect database"/><category term="Repair allow data loss"/><category term="Repair and Restore Indexes"/><category term="Repaire corrupt database"/><category term="Repairing corrupt SQL database"/><category term="Replication"/><category term="Resetting user names for orphaned logins"/><category term="Resolve Error 7903 damaged MS SQL Server 2008"/><category term="Resolving “Internal error. Buffer provided to read..”"/><category term="Restart Computer Failure While uninstalling SQL Server 2008"/><category term="Restart SQL Server"/><category term="Restore"/><category term="Restore FileList"/><category term="Restore Progressbar"/><category term="Restoring SQL Server 2008 R2 Backup file to SQL Server 2008"/><category term="Retail Software"/><category term="Retrieve SQL Server Service Account"/><category term="Reverse"/><category term="Revoke"/><category term="Right"/><category term="Rotate row to column"/><category term="Row Total"/><category term="Row count for all the tables in all the database"/><category term="RowVersion"/><category term="Row_Number"/><category term="Rows to Columns"/><category term="Run CheckDB on all Database"/><category term="SELECT CASE"/><category term="SELECT LIMIT (from"/><category term="SET"/><category term="SET NOCOUNT ON"/><category term="SP Available to All Databases"/><category term="SQL Agent"/><category term="SQL Alter a column with a default value"/><category term="SQL Backup job failed with exitcode: 880 SQL error code: 942 [SQLSTATE 42000] (Error 50000). The step failed."/><category term="SQL Connection"/><category term="SQL Database Recovery"/><category term="SQL Express 2005"/><category term="SQL Performance"/><category term="SQL Recovery Tool"/><category term="SQL Schema Comparison with Visual Studio 2010"/><category term="SQL Script to generate INSERT Statement"/><category term="SQL Server 2008"/><category term="SQL Server 2008 - Features"/><category term="SQL Server 2008 - New Datatypes"/><category term="SQL Server 2008 Cluster: The current SKU is invalid"/><category term="SQL Server 2008 Database Mirroring"/><category term="SQL Server 2008 Upgrade Plan"/><category term="SQL Server 2008 some feature"/><category term="SQL Server Backup"/><category term="SQL Server Browser not working properly"/><category term="SQL Server Clustered Instance"/><category term="SQL Server Concurrency and Locking Interview Questions"/><category term="SQL Server Configuration Manager"/><category term="SQL Server Configuration Manager – Access Denied"/><category term="SQL Server Evaluation Version"/><category term="SQL Server Maintenance plan not opening"/><category term="SQL Server Management studio"/><category term="SQL Server Memory Bottlenecks"/><category term="SQL Server Service Stat Date and Time"/><category term="SQL Server Suspends Database Mirroring"/><category term="SQL Server blocked access to statement OPENROWSET / OPENDATASOURCE"/><category term="SQL Server clustering"/><category term="SQL Server connectivity issues troubleshooting"/><category term="SQL Server could not spawn FRunCM thread"/><category term="SQL Server could not spawn FRunCM thread error"/><category term="SQL Server instance"/><category term="SQL Version"/><category term="SQL does not start"/><category term="SQL file not open in SSMS"/><category term="SQL recovery software"/><category term="SQL script to create Folder on local disk"/><category term="SQL server failed to start the system cannot find the path specified"/><category term="SQL_Engine_Core_Inst"/><category term="SSMS 2012"/><category term="SSRS 2008"/><category term="SSRS 2008- Underlying connection was closed"/><category term="SYS.DM_DB_PERSISTED_SKU_FEATURES"/><category term="Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created."/><category term="Schedule automatic backup in SQL Server"/><category term="Scheduling database backup in SQL Server Management Studio"/><category term="Script to fetch the code that is executed by an SPID"/><category term="Script to remove Tab"/><category term="Script to remove old Database backup"/><category term="Script to retrieve security information"/><category term="Script to track Database Growth"/><category term="Search Suffix using Full Text Search in SQL Server 2005"/><category term="Search a table used in all SP"/><category term="Search for Wild Card Characters in a Column"/><category term="Search string"/><category term="Select Middle Record"/><category term="Select/Skip Top/Bottom N Rows"/><category term="Serial ID Auto Generation"/><category term="Session"/><category term="Session Details"/><category term="Set Up a Mirror Database to Use the Trustworthy Property"/><category term="Setup"/><category term="Setup Black Box"/><category term="Setup SQL Server"/><category term="Severity: 16"/><category term="Severity: 17"/><category term="Shrink Database fails with Error: Backup"/><category term="Shrink File"/><category term="Shrink tempdb"/><category term="Shrink the Unshrinkable SQL Transaction Log"/><category term="Size of Index"/><category term="Some stored procedure related to security"/><category term="Soundex"/><category term="Sp_rename fails : Either the parameter @objname is ambiguous or the claimed @objtype (object) is wrong"/><category term="Sparse Columns"/><category term="Sparse Columns in SQL Server 2008"/><category term="Sparse colum"/><category term="Spatial Data Types"/><category term="Specified SQL server not found"/><category term="Split Name Into First"/><category term="Sql Server Interview Questions"/><category term="State: 1"/><category term="State: 4"/><category term="Statistics"/><category term="Status of Trance Flag"/><category term="Status of the Database"/><category term="Stop SQL Sesrver"/><category term="Stop and Disable the job in SQL Server 2008"/><category term="Stop and Resume Log Shipping in SQL Server"/><category term="Stop logging successful backup of databases in SQL Server error log"/><category term="Stop or Restart SQL Server from Command Prompt Start SQL Server"/><category term="Stored Procedure"/><category term="String comparision"/><category term="Striped Backup"/><category term="Substring"/><category term="Swap data between columns"/><category term="Switch"/><category term="System Stored Procedure sp_recompile"/><category term="T-Log space used by which transaction"/><category term="TEMPDB issue in SQL server"/><category term="TRY_PARSE()"/><category term="Table Error 8925"/><category term="Table Row Count"/><category term="Table Row Counts"/><category term="Table Size"/><category term="Table Value Parameter"/><category term="Table and Column Information"/><category term="Tables ordered by Size"/><category term="Tables relationship"/><category term="Taking Database Backup In Different Parts"/><category term="Temp Database Configuration"/><category term="TempDB Grows"/><category term="TempDB space needed to execute checkdb."/><category term="TempDb Tips"/><category term="Tempdb data file grown high cannot shrink tempdb data file"/><category term="Text node corrupted"/><category term="The Media Family on Device is Incorrectly Formed."/><category term="The Rollback Transaction request has no corresponding Begin Transaction"/><category term="The backup set holds a backup of a database other than the existing ‘dbName’ database"/><category term="The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value"/><category term="The database cannot be opened because it is version 706"/><category term="The database may be offline. Wait a few minutes and try again"/><category term="The media family on device is incorrectly formed. SQL Server cannot process this media family Error: 3241"/><category term="The query has exceeded the maximum number of result sets that can be displayed in the results grid. Only the first 100 result sets are displayed"/><category term="The server network address can not be reached or does not exist. Check the network address name"/><category term="The server principal “username” is not able to access the database “database_name” under the current security context."/><category term="There is no default instance of SQL Server on the computer"/><category term="Too Many Backup Devices Specified."/><category term="Trace Flag"/><category term="Transaction Log Backup job failed"/><category term="Transaction Log is Full"/><category term="Transpose row to column"/><category term="Truncate"/><category term="Truncate and Delete"/><category term="Type of Data Model"/><category term="Unable to Connect to SQL Server"/><category term="Unable to Connect to SQL Server. sql server protocol asp.net sqlconnection sql c#.net sms system management services"/><category term="Unable to open DTS package in SQL 2008 Management Studio"/><category term="Unable to see a SQL Server table"/><category term="Unable to start execution of step 1 (reason: line(1): Syntax error)"/><category term="Unindexed Foreign Keys"/><category term="Uninstall"/><category term="Uninstall SQL Server"/><category term="Union ALL"/><category term="Unique Instance"/><category term="Unique and Primary Key"/><category term="Update Column"/><category term="Update a column in a Large Table in SQL Server"/><category term="Update stats"/><category term="Update stats for all Databases"/><category term="Useful views and stored procedures"/><category term="Uses of Trigger"/><category term="Using Databases on WP7"/><category term="Using MSDTC As a Non-clustered Resource Cause SQL Server Database Corruption"/><category term="Value cannot be null."/><category term="VarChar to Currency"/><category term="Version"/><category term="Version of SQL Server data"/><category term="View and Disable SQL Agent Jobs with TSQL"/><category term="View recently run queries"/><category term="Viewing the SQL Server Error Log"/><category term="Views and Functions"/><category term="WITH RESULT SETS"/><category term="WMI configuration"/><category term="Weekend count"/><category term="What caused this database corruption?"/><category term="What happens when my integer IDENTITY runs out of scope"/><category term="When a stored procedure was last modified?"/><category term="When my Database is last accessed"/><category term="When were the statistics for a table last updated?"/><category term="Who are connected"/><category term="Windows Server 2008"/><category term="Word Search"/><category term="Workaround for &#39;Divide by zero error encountered&#39;"/><category term="Write to Text File"/><category term="calculate Median"/><category term="can use SP_ExecuteSQL without declaring variables"/><category term="cannot be placed on a page of type PAGE_TYPE"/><category term="check SQL Server Authentication Mode"/><category term="cloud Computing"/><category term="clustered index"/><category term="communicate to SQL Server through a Firewall"/><category term="communication error"/><category term="compare current row with previous / next row in a table"/><category term="convert comma-delimited string"/><category term="create random string Function"/><category term="data or log files out of space"/><category term="data types and length"/><category term="details of Backup File"/><category term="details of permissions on Database objects"/><category term="drop all constraints"/><category term="drop all constraints of a table"/><category term="failure"/><category term="file manipulation operations"/><category term="get MSSQL database columns names"/><category term="get a list of each word separately from a string"/><category term="hours and minutes"/><category term="insert and update"/><category term="installing Microsoft SQL Server Manament Studio Express"/><category term="instances"/><category term="last execution time of Stored Procedure"/><category term="last modified date"/><category term="model"/><category term="mscorlib.tlb"/><category term="msdb"/><category term="no_log"/><category term="non-clustered index"/><category term="outdated statistics"/><category term="parameters for Stored Procedure"/><category term="permissions"/><category term="recovering damaged MS SQL Server 2000 database"/><category term="remove a corrupt SQL Server 2005 Express Instance"/><category term="repair rebuild"/><category term="restore single table from backup"/><category term="row count"/><category term="sa Password"/><category term="script to fetch data from Excel"/><category term="secure SA Login"/><category term="sp_depends"/><category term="split a string into an array"/><category term="split comma separated string to integer"/><category term="sys.dm_fts_parser"/><category term="sys.xp_cmdshell"/><category term="system Corrupted"/><category term="system configuration checker"/><category term="tempdb databases"/><category term="to)"/><category term="torn page"/><category term="troubleshooting"/><category term="type equals text."/><category term="view all sql server instances"/><category term="when SQL Server was last started"/><category term="xp_cmdshell"/><title type='text'>SQL</title><subtitle type='html'>MS SQL and .net Development</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>778</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-7398376074529176197</id><published>2017-07-24T11:35:00.000+05:30</published><updated>2017-07-24T11:35:39.383+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="SQL Server instance"/><category scheme="http://www.blogger.com/atom/ns#" term="Unique Instance"/><title type='text'>An instance with the same name is already installed on this computer. To proceed with SQL Server setup, provide a unique instance name.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You may get below error while installing SQL Server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;An instance with the same name is already installed on this computer. To proceed with SQL Server setup, provide a unique instance name.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The main reason of above error is:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The named Instance, you are trying to install is already present.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The existing instance of SQL Server 2008 is a unique named instance. However, you try to install SQL Server 2005 as the default instance.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The existing instance of SQL Server 2008 is a named instance, and you use the same name when you try to install SQL Server 2005 as a named instance.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Follow below steps to solve the error (Suppose you want to create instance name SQLExpress:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Click Start menu, select Run and type regedit&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Navigate to&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; Find “MSSQL$SQLExpress” , and delete&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Remove &quot;SQLExpress&quot; from the REG_MULTI_SZ value named InstalledInstance&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Delete the subhive named MSSQL.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;Delete the subhive named SQLExpress&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Go to HKEY_LOCAL_MACHINE\Software\Microsoft\Microsoft SQL Server\Instance Names\SQL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&amp;nbsp; &amp;nbsp; Delete the value named &amp;nbsp;&quot;SQLExpress&quot;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Go to SQL Server installation drive Delete the folder %ProgramFiles%\Microsoft SQL Server\MSSQL.1&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Restart the PC.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Use either Windows installer cleanup utility to manually remove all traces of MSSQL in your PC.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Re-run SQL installation&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Alternatively, you can try installing SQL Server with different instance name.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/7398376074529176197/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2017/07/an-instance-with-same-name-is-already.html#comment-form' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7398376074529176197'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7398376074529176197'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2017/07/an-instance-with-same-name-is-already.html' title='An instance with the same name is already installed on this computer. To proceed with SQL Server setup, provide a unique instance name.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-2777994357766568306</id><published>2017-04-17T17:50:00.000+05:30</published><updated>2017-04-17T17:50:11.863+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="I/O error"/><category scheme="http://www.blogger.com/atom/ns#" term="Non recoverable I/O error"/><title type='text'>A non recoverable I/O error occurred on file while taking backup.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You may get this error while taking backup of databse.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The reason for this error is insufficient disk space.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The solution is either free up some space or change the backup folder.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/2777994357766568306/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2017/04/a-non-recoverable-io-error-occurred-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2777994357766568306'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2777994357766568306'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2017/04/a-non-recoverable-io-error-occurred-on.html' title='A non recoverable I/O error occurred on file while taking backup.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-2989535189918162930</id><published>2016-12-02T12:46:00.000+05:30</published><updated>2017-07-24T11:35:11.629+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Media Family"/><category scheme="http://www.blogger.com/atom/ns#" term="Restore FileList"/><title type='text'>The media family on device &#39;&#39; is incorrectly formed. SQL Server cannot process this media family. RESTORE FILELIST is terminating abnormally.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The media family on device ‘&amp;lt;FILENAME.BAK&amp;gt;’ is incorrectly formed. SQL Server cannot process this media family. RESTORE FILELIST is terminating abnormally.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Solution:&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Ensure that backup file is good and copied properly.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You can not restore higher version databse Backup in lower version SQL Server.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/2989535189918162930/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/12/the-media-family-on-device-is.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2989535189918162930'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2989535189918162930'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/12/the-media-family-on-device-is.html' title='The media family on device &#39;&#39; is incorrectly formed. SQL Server cannot process this media family. RESTORE FILELIST is terminating abnormally.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-8785200727983236699</id><published>2016-10-21T14:53:00.000+05:30</published><updated>2016-10-21T14:53:31.889+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Error 1618"/><category scheme="http://www.blogger.com/atom/ns#" term="Installation Error"/><title type='text'>Error occurred during installation: Error 1618 installing Microsoft SQL Server setup Support files.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You may get below error during SQL server installation:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Error occurred during installation: Error 1618 installing Microsoft SQL Server setup Support files.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Follow below steps to solve the error:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;ol style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Restart The system and try installing.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Start - Run - Type: gpedit.msc - OK - Navigate to&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Computer Configuration\Windows Settings\Security Settings\Local Policies\User Rights Assignment\Debug programs&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Add administrator user.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/8785200727983236699/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/10/error-occurred-during-installation.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8785200727983236699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8785200727983236699'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/10/error-occurred-during-installation.html' title='Error occurred during installation: Error 1618 installing Microsoft SQL Server setup Support files.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-8170484460461969230</id><published>2016-05-30T09:33:00.000+05:30</published><updated>2016-05-30T09:33:24.807+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Login Failed"/><title type='text'>Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You may get below error some time after improper shutdown of system.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Restart SQL server and Browser and problem will be solved.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/8170484460461969230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/05/login-failed-for-user-domainusername.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8170484460461969230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8170484460461969230'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/05/login-failed-for-user-domainusername.html' title='Login failed for user ‘domain\username’. Reason: Server is in single user mode. Only one administrator can connect at this time.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-816985759599712000</id><published>2016-02-18T19:02:00.000+05:30</published><updated>2016-02-18T19:02:04.106+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Query to get IP address of SQL Server"/><title type='text'>Query to get IP address of SQL Server</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Use below query to get IP address of SQL Server:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;DECLARE @IP varchar(40)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;DECLARE @IPLine varchar(200)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;DECLARE @Pos int&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;SET NoCount ON&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;SET @IP = NULL&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;Create Table #Temp (IPLine VarChar(200))&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;INSERT #temp EXEC master..xp_cmdshell &#39;IPconfig&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;SELECT TOP 1 @IPLine = IPLine FROM #Temp&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;WHERE Upper (IPLine) LIKE &#39;%IP ADDRESS%&#39; OR Upper (IPLine) LIKE &#39;%IPV4 ADDRESS%&#39;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; IF (ISNULL (@IPLine,&#39;***&#39;) != &#39;***&#39;)&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; BEGIN&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SET @Pos = CharIndex (&#39;:&#39;,@IPLine,1);&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;SET @IP = LTrim(RTrim(SubString (@IPLine , @Pos + 1 ,len (@IPLine) - @Pos)))&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; END&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;PRINT @IP&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;DROP TABLE #temp&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;SET NoCount OFF&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;If you get below error after executing above query:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Msg 15281, Level 16, State 1, Procedure xp_cmdshell, Line 1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;SQL Server blocked access to procedure &#39;sys.xp_cmdshell&#39; of component &#39;xp_cmdshell&#39; because this component is turned off as part of the security configuration for this server. A system administrator can enable the use of &#39;xp_cmdshell&#39; by using sp_configure. For more information about enabling &#39;xp_cmdshell&#39;, see &quot;Surface Area Configuration&quot; in SQL Server Books Online.&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Than you had to enable&amp;nbsp;&lt;b&gt;xp_cmdshell &lt;/b&gt;in surface area configuration. and than rerun the above query.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/816985759599712000/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/query-to-get-ip-address-of-sql-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/816985759599712000'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/816985759599712000'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/query-to-get-ip-address-of-sql-server.html' title='Query to get IP address of SQL Server'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-446558884748281228</id><published>2016-02-08T09:53:00.000+05:30</published><updated>2016-02-08T09:53:15.774+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Backup"/><category scheme="http://www.blogger.com/atom/ns#" term="BAckup Progressbar"/><category scheme="http://www.blogger.com/atom/ns#" term="Progressbar"/><category scheme="http://www.blogger.com/atom/ns#" term="Restore"/><category scheme="http://www.blogger.com/atom/ns#" term="Restore Progressbar"/><title type='text'>How to show backup or restore progress to user in a progressbar?</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;You can show backup or restore progress to user in a progress bar if you had installed&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;sp_who2k5&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;into your master database. You have to run the below command:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;b&gt;sp_who2k5 1, 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The result will include all active transaction. Search the backup in the requestCommand field. The aptly named percentComplete field will give you the progress of the backup.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/446558884748281228/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/how-to-show-backup-or-restore-progress.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/446558884748281228'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/446558884748281228'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/how-to-show-backup-or-restore-progress.html' title='How to show backup or restore progress to user in a progressbar?'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-4133834360032863133</id><published>2016-02-01T09:58:00.000+05:30</published><updated>2016-02-01T09:58:00.484+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="system configuration checker"/><category scheme="http://www.blogger.com/atom/ns#" term="WMI configuration"/><title type='text'>The SQL Server system configuration checker cannot be executed due to WMI configuration on the machine.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Last week I got below error in clients system:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The SQL Server system configuration checker cannot be executed due to WMI configuration on the machine. Error 2147749896&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The main cause of the problem are:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Unfinished SQL Server components may be present.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Components or files related to WMI service might be unregistered or missing.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Microsoft Data Access Components may not be installed.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;The problem was that the WMI repository is corrupted. Reinstall the WMI.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt; &lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Solution:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Check the version of MDAC you have installed. SQL Server will require MDAC 2.8 or higher. To check MDAC:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Click Start / Run. Type regedit. Click OK.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;Note the Registry Key for Version. If less than 2.8.xxxx,&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;arial&amp;quot; , &amp;quot;helvetica&amp;quot; , sans-serif;&quot;&gt;download and install the latest MDAC 2.8 version.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/4133834360032863133/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/the-sql-server-system-configuration.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4133834360032863133'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4133834360032863133'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/02/the-sql-server-system-configuration.html' title='The SQL Server system configuration checker cannot be executed due to WMI configuration on the machine.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-4443571519386226496</id><published>2016-01-11T10:30:00.000+05:30</published><updated>2016-01-11T10:30:27.262+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Connection problem"/><category scheme="http://www.blogger.com/atom/ns#" term="Error 64"/><category scheme="http://www.blogger.com/atom/ns#" term="pre-login handshake"/><title type='text'>Error: 64,  connection was successfully established with the server, but then an error occurred during the pre-login handshake.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I had got below error in my friend&#39;s system:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #141412; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (provider: TCP Provider, error: 0 – The specified network name is no longer available.) (Microsoft SQL Server, Error: 64)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #141412; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; color: #141412; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I googled this error and got mixed results and solutions but none solved my problem.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; color: #141412; line-height: 24px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;After some more googling I found below solution that worked for me.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The solution is:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Go to the MSSQL Configuration Manager and expand the SQL Network Configuration and click on the PROTOCOLS node. Right click on TCP/IP and open up the PROPERTIES panel and Select the IP ADDRESS tab.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Check the IP ADDRESS field&#39;s value are correct and match the system it is running on.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Restart the service, and the problem is solved.&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; box-sizing: border-box; color: #141412; line-height: 24px; margin-bottom: 24px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Make sure you fill in the TCP PORT, even if you are using the default 1433.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/4443571519386226496/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/01/error-64-connection-was-successfully.html#comment-form' title='15 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4443571519386226496'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4443571519386226496'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/01/error-64-connection-was-successfully.html' title='Error: 64,  connection was successfully established with the server, but then an error occurred during the pre-login handshake.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>15</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-849777042769407535</id><published>2016-01-04T10:06:00.000+05:30</published><updated>2016-01-04T10:06:36.166+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Create Database"/><category scheme="http://www.blogger.com/atom/ns#" term="Create Database error"/><title type='text'>Error occurred during database creation</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Sometime when you create a new database by using CREATE Database statement in SSMS (SQL Server Management Studio), you may got below error message and you are not able to create Database:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Server: Msg 5105, Level 16, State 2, Line 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Device activation error. The physical file name &#39;&#39; may be incorrect.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Server: Msg 1802, Level 16, State 1, Line 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;CREATE DATABASE failed. Some file names listed could not be created. Check previous errors.&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The main reason of above error is path of folder store in the registry values does not exist. When the path of folder is incorrect then MS SQL server throws above error messages.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can fix the error by using SSMS. SSMS is able to set the default directory value for Data and log Files. Follow below steps to change the default value:&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Start SQL server Management Studio.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In Management Studio, right click on your instance and select properties&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;In properties, click on the database setting option.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now go to the new database default location section&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Correct folder path from default directory box and default log directory box&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Press OK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Stop the instance of MS SQL database&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Restart the instance of MS SQL server database.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/849777042769407535/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/01/error-occurred-during-database-creation.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/849777042769407535'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/849777042769407535'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2016/01/error-occurred-during-database-creation.html' title='Error occurred during database creation'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-1461084205756204088</id><published>2015-11-02T09:58:00.000+05:30</published><updated>2015-11-02T09:58:14.090+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="List database objects modified in the last ‘X’ days"/><title type='text'>List database objects modified in the last ‘X’ days</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below query to get the list of databases modified in last &#39;X&#39; days:&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;USE &amp;lt;database_Name&amp;gt;;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;GO&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT Name AS object_Name, &amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Create_Date, Modify_Date,&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; Type_Desc,&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&amp;nbsp; SCHEMA_Name(Schema_ID) AS Schema_Name&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FROM sys.Objects&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WHERE Modify_Date &amp;gt; GETDate() - &amp;lt;X_Days&amp;gt;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;ORDER BY Modify_Date;&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;GO&amp;nbsp;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Notes: Replace&amp;nbsp;&amp;lt;database_Name&amp;gt; with Database Name and&amp;nbsp;&amp;lt;X_Days&amp;gt; &amp;nbsp;with No of days.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/1461084205756204088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/11/list-database-objects-modified-in-last.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/1461084205756204088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/1461084205756204088'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/11/list-database-objects-modified-in-last.html' title='List database objects modified in the last ‘X’ days'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-5388276427060568777</id><published>2015-09-14T09:41:00.000+05:30</published><updated>2015-09-14T09:41:24.338+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Weekend count"/><title type='text'>Weekend count between two dates</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below query to find the weekend count between two dates:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;DECLARE @DateFrom DateTime, @DateTo DateTime, @Total int, @Number int, @Counter int&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT @DateTo = GetDate(), @DateFrom = GetDate() - 22, @Total = DateDiff(dd, @DateFrom, @DateTo), @Number = 1, @Counter = 0&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WHILE (@Number &amp;lt;= @Total)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;BEGIN&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;IF DatePart(dw, @DateFrom) = 1 OR DatePart(dw, @DateFrom) = 7&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;BEGIN&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SET @Counter = @Counter +1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;END&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SET @DateFrom = @DateFrom+1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SET @Number = @Number + 1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;END&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;PRINT @Counter&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/5388276427060568777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/09/weekend-count-between-two-dates.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5388276427060568777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5388276427060568777'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/09/weekend-count-between-two-dates.html' title='Weekend count between two dates'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-5855655919146655821</id><published>2015-08-24T09:46:00.000+05:30</published><updated>2015-08-24T09:46:16.995+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Find LOB Columns Script"/><title type='text'>Find LOB Columns Script</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;Sometime you want to identify the tables which could not reindex online. For this you had to scan all tables in SQL Server database and list the columns which are large objects (VarChar(MAX), NVarChar(MAX), XML, VarBinary, Text, NText, Image).&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There are various method to get above information:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&lt;u&gt;Method 1&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;SELECT * FROM Information_Schema.Columns&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;WHERE Table_Name IN&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; (SELECT Table_Name&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;FROM Information_Schema.Tables&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;WHERE Table_Type = &#39;Base Table&#39;)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;AND DATA_TYPE IN (&#39;VarChar&#39;, &#39;NVarChar&#39;, &#39;VarBinary&#39;, &#39;Text&#39;, &#39;NText&#39;, &#39;Image&#39;, &#39;XML&#39;)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;AND Character_Maximum_Length = -1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;ORDER BY Table_Name&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&lt;u&gt;Method 2&lt;/u&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;b style=&quot;font-family: Arial, Helvetica, sans-serif; line-height: 20px;&quot;&gt;SELECT&amp;nbsp;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; C.Object_ID,&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; Object_Name(C.Object_ID) AS [Object Name],&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; C.Name AS [Column Name],&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;&amp;nbsp; &amp;nbsp; T.Name AS [Column Type]&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;FROM Sys.Columns C&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;INNER JOIN Sys.Types T ON C.System_Type_ID = T.System_Type_ID&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;WHERE C.Object_ID IN (SELECT Object_ID FROM Sys.Objects WHERE Type_Desc = &#39;User_Table&#39;)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;AND C.max_length = -1&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; padding: 0px 0px 15px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;line-height: 20px;&quot;&gt;&lt;b&gt;AND T.Name IN (&#39;VarChar&#39;, &#39;NVarChar&#39;, &#39;VarBinary&#39;, &#39;Text&#39;, &#39;NText&#39;, &#39;Image&#39;, &#39;XML&#39;)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/5855655919146655821/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/08/find-lob-columns-script.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5855655919146655821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5855655919146655821'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/08/find-lob-columns-script.html' title='Find LOB Columns Script'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-8700294900063862903</id><published>2015-08-17T09:51:00.000+05:30</published><updated>2015-08-17T09:51:18.428+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unable to modify table."/><title type='text'>Unable to modify table.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I was trying to modify a table of approx 5 million records setting a field on the table to not allow null values. However, while saving changes in table, I got below error:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&#39;Account &#39; table&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;- Unable to modify table.&amp;nbsp;&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;After that I click ok button and I got below error:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;User cancelled out of save dialog.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;This error is coming because table designer have a default timeout value of 30 secs. And as I am saving a table with huge records, it is taking time more than 30 secs, so above error coming.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So the solution is to increase the timeout value of designer, (the maximum value for timeout is 65535).&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Click on tools menu - Options - Expand designers. Now here change the timeout value in &quot;Table and Database designers&quot; on the right side.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br style=&quot;background-color: white; font-family: verdana, arial, helvetica;&quot; /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/8700294900063862903/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/08/unable-to-modify-table.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8700294900063862903'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/8700294900063862903'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/08/unable-to-modify-table.html' title='Unable to modify table.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-4498413330643419521</id><published>2015-07-20T11:20:00.000+05:30</published><updated>2015-07-20T11:20:50.561+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Record Retrieval Error Connection Read"/><title type='text'>Record Retrieval Error Connection Read</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You may receive below error while running third party application with backend SQL Server.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Record Retrieval Error&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Error: (Connection Read(recv()).(01000)) attempting to access a record from the MERCAN file. Returning to previous window.&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/b&gt;
&lt;span style=&quot;background-color: white; font-family: Arial, Helvetica, sans-serif;&quot;&gt;The application is showing this error because it lost the network connectivity with the SQL Server instance for a short period of time.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;So, restart the application once the network issue is solved.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/4498413330643419521/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/07/record-retrieval-error-connection-read.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4498413330643419521'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/4498413330643419521'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/07/record-retrieval-error-connection-read.html' title='Record Retrieval Error Connection Read'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-6058175294506965049</id><published>2015-06-29T09:54:00.000+05:30</published><updated>2015-06-29T09:54:18.674+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Attach Database Failed"/><title type='text'>Attach Database Failed</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Sometime you may get below error while attaching a database:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Attach database failed for Server &#39;SERVERNAME\SQLEXPRESS&#39;. (Microsoft.SqlServer.Express.Smo)&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Additional information:&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;An exception occurred while executing a Transact-SQL statement or batch.&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;(Microsoft.SqlServer.Express.ConnectionInfo)&lt;/span&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;br style=&quot;background-color: white;&quot; /&gt;&lt;span style=&quot;background-color: white;&quot;&gt;Unable to open the physical file &quot;filename.mdf&quot;. Operating system error 5: &quot;5(error not found)&quot;.(Microsoft SQL Server, Error: 5120)&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; font-family: verdana, arial, helvetica;&quot;&gt;To solve above error,&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: verdana, arial, helvetica;&quot;&gt;make sure that the SQL Server Service account has modify permissions over the physical file on the hard drive that you are trying to attach to a SQL Server instance, and modify permissions also over the folder that contains the file.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/6058175294506965049/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/attach-database-failed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/6058175294506965049'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/6058175294506965049'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/attach-database-failed.html' title='Attach Database Failed'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-7813697236983366298</id><published>2015-06-22T09:57:00.000+05:30</published><updated>2015-06-22T09:57:01.349+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="details of permissions on Database objects"/><category scheme="http://www.blogger.com/atom/ns#" term="permissions"/><category scheme="http://www.blogger.com/atom/ns#" term="Query to get details of permissions on Database objects"/><title type='text'>Query to get details of permissions on Database objects</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below query to get details of&amp;nbsp;permissions on Database objects&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT ulogin.name AS [User Name],&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CASE princ.type WHEN &#39;U&#39; THEN &#39;Windows User&#39; WHEN &#39;G&#39; THEN &#39;Windows Group&#39; WHEN &#39;S&#39; THEN &#39;SQL User&#39; END AS [User Type],&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;princ.name AS [Database User Name], perm.permission_name AS [Permission Type], perm.state_desc AS [Permission State],&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CASE perm.class WHEN 1 THEN obj.type_desc ELSE perm.[class_desc] END AS [Object Type],&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;CASE perm.class WHEN 1 THEN OBJECT_NAME(perm.major_id) WHEN 3 THEN schem.[name] WHEN 4 THEN imp.[name] END AS [Object Name],&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;col.name AS [Column Name]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FROM sys.database_principals princ LEFT JOIN sys.server_principals ulogin on princ.sid = ulogin.sid LEFT JOIN sys.database_permissions perm ON perm.grantee_principal_id = princ.principal_id &amp;nbsp;LEFT JOIN sys.database_principals imp ON imp.principal_id = perm.major_id LEFT JOIN sys.columns col ON col.object_id = perm.major_id AND col.column_id = perm.minor_id &amp;nbsp;LEFT JOIN sys.schemas schem ON schem.schema_id = perm.major_id LEFT JOIN sys.objects obj ON perm.major_id = obj.object_id&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WHERE princ.[type] IN (&#39;S&#39;,&#39;U&#39;,&#39;G&#39;) AND princ.[name] NOT IN (&#39;sys&#39;, &#39;INFORMATION_SCHEMA&#39;)&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/7813697236983366298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/query-to-get-details-of-permissions-on.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7813697236983366298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7813697236983366298'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/query-to-get-details-of-permissions-on.html' title='Query to get details of permissions on Database objects'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-7457573717820472216</id><published>2015-06-15T09:48:00.000+05:30</published><updated>2015-06-15T09:48:35.481+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Log backup to replace maintenance plan"/><title type='text'>Log backup to replace maintenance plan</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below script to restore maintenance plan from log backup:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;USE [Master]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;GO&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;DECLARE @BackupExtention nVarChar(4); SET @BackupExtention = &#39;.trn&#39;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;DECLARE @DB nVarChar(128); SET @DB = &#39;&#39;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;DECLARE @BackupDir nVarChar(138);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;--loop through each databASe in full recovery mode&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;WHILE @DB &amp;lt; ( SELECT MAX(Name) FROM sysDatabases WHERE DATABASEPROPERTYEX(Name,&#39;RECOVERY&#39;) = &#39;FULL&#39; )&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;BEGIN&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SELECT @DB = MIN (Name) &amp;nbsp;FROM sysDatabases WHERE DATABASEPROPERTYEX(Name,&#39;RECOVERY&#39;) = &#39;FULL&#39; AND Name &amp;gt; @DB&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;DECLARE @DatabaseName nVarChar(128); SET @DatabaseName = @DB --SET @DatabaseName = &#39;TFSWarehouse&#39;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;DECLARE @DateTimestamp nVarChar(14); SET @DateTimestamp = &#39;_&#39; + CONVERT(VarChar, GetDate(), 112) + &#39;_&#39; + replace(CONVERT(VarChar, GetDate(), 108),&#39;:&#39;,&#39;&#39;)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;DECLARE @RemoteBackupPath nVarChar(260);&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SET @BackupDir = N&#39;D:\Backup\&#39; + @DatabaseName&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;SET @RemoteBackupPath = @BackupDir + N&#39;\&#39; + @DatabaseName + @DateTimestamp + @BackupExtention&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;DECLARE @BackupDevice nVarChar(128); SET @BackupDevice = N&#39;local_&#39; + @DatabaseName + @BackupExtention&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;--SELECT @DatabaseName, @BackupDevice, @RemoteBackupPath&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;--drop AND recreate the backup device&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;IF Exists(SELECT NULL FROM sys.Backup_Devices WHERE Name = @BackupDevice)&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt; EXEC Master..sp_DropDevice @LogicalName = @BackupDevice&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;EXEC Master.dbo.sp_AddumpDevice @DevType = N&#39;disk&#39;, @LogicalName = @BackupDevice, @PhysicalName = @RemoteBackupPath&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;--create the subdirectory if not already preset&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;EXECUTE Master.dbo.xp_Create_SubDir @BackupDir&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;--execute the backup&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot; style=&quot;white-space: pre;&quot;&gt; &lt;/span&gt;BACKUP LOG @DatabaseName TO &amp;nbsp;DISK = @RemoteBackupPath WITH NOFORMAT, NOINIT, &amp;nbsp;Name = @BackupDevice, SKIP, REWIND, NOUNLOAD, &amp;nbsp;STATS = 10&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;END&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;GO&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/7457573717820472216/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/log-backup-to-replace-maintenance-plan.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7457573717820472216'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7457573717820472216'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/log-backup-to-replace-maintenance-plan.html' title='Log backup to replace maintenance plan'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-3121428184245455749</id><published>2015-06-01T09:46:00.000+05:30</published><updated>2015-06-01T09:46:33.258+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Unable to open DTS package in SQL 2008 Management Studio"/><title type='text'>Unable to open DTS package in SQL 2008 Management Studio</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;Sometime when we try to import a SQL Server 2000 DTS package into SQL Server 2008 R2 using SSMS, the following error&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;appears&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Managing DTS packages in SQL Server Management Studio requires the SQL Server 2000 Data Transformation Services (DTS) runtime. To install the DTS runtime, on your SQL Server 2008 R2 installation media, locate and run the Windows Installer package for SQL Server 2005 Backward Compatibility (SQLServer2005_BC*.msi). You can also download the DTS runtime from the SQL Server Feature Pack page on the Microsoft Download Center. (Microsoft.SqlServer.DtsObjectExplorerUI)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;As suggested, the “Microsoft SQL Server 2005 Backward compatibility” package must be installed. It can be found on this location:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?id=3522&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?id=3522&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;After the installation of “Microsoft SQL Server 2005 Backward compatibility” package the DTS package is imported successfully.&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;Now when we try to open the DTS package, the following error appears:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, “SQL Server 2000 DTS Designer Components” to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;To solve this error the “Sql Server 2000 DTS Designer Components” package must be installed. It can be found on this location:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=11988&quot;&gt;http://www.microsoft.com/en-us/download/details.aspx?displaylang=en&amp;amp;id=11988&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;After the installation try to open again the DTS package in SSMS. &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;SQL Server 2000 DTS Designer components are required to edit DTS packages. Install the special Web download, “SQL Server 2000 DTS Designer Components” to use this feature. (Microsoft.SqlServer.DtsObjectExplorerUI)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;span style=&quot;background-color: white; text-align: justify; text-indent: 26.66666603088379px;&quot;&gt;If the same error appears, copy the DLL and RLL files as described in below Microsoft link:&amp;nbsp;&lt;/span&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms143755.aspx&quot;&gt;http://msdn.microsoft.com/en-us/library/ms143755.aspx&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To ensure that the DTS designer can be used in SQL Server Management Studio&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. Copy the files, SEMSFC.DLL, SQLGUI.DLL, and SQLSVC.DLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn folder to the %ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. Copy the files, SEMSFC.RLL, SQLGUI.RLL, and SQLSVC.RLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources\%lang_id% folder to the %ProgramFiles%\Microsoft SQL Server\100\Tools\Binn\VSShell\Common7\IDE\Resources\%lang_id% folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;For example, for U.S. English, the lang_id subfolder will be &quot;1033&quot;.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To ensure that the DTS designer can be used in Business Intelligence Development Studio&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1. Copy the files, SEMSFC.DLL, SQLGUI.DLL, and SQLSVC.DLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn folder to the %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2. Copy the files, SEMSFC.RLL, SQLGUI.RLL, and SQLSVC.RLL, from the %ProgramFiles%\Microsoft SQL Server\80\Tools\Binn\Resources folder to the %ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\Resources\%lang_id% folder. For example, for U.S. English, the lang_id subfolder will be &quot;1033&quot;.&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/3121428184245455749/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/unable-to-open-dts-package-in-sql-2008.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/3121428184245455749'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/3121428184245455749'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/06/unable-to-open-dts-package-in-sql-2008.html' title='Unable to open DTS package in SQL 2008 Management Studio'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-5746915594149666684</id><published>2015-05-11T11:19:00.001+05:30</published><updated>2015-05-11T11:19:39.487+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="List Table with Identity Column"/><title type='text'>List Table with Identity Column</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can use below queries to get the list of all the tables with Identity column:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT OBJECT_NAME(ID) AS [Table], Name AS [Column]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FROM syscolumns WHERE COLUMNPROPERTY(ID, Name, &#39;IsIdentity&#39;) = 1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Or use can use below query also&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;SELECT OBJECT_NAME(ID) AS [Table], Name AS [Column]&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;FROM syscolumns WHERE STATUS = 0x80&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can use blow query to check whether the table has Identity column:&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;SELECT Name AS [Table], OBJECTPROPERTY(ID, &#39;TableHasIdentity&#39;) AS [Has_Identity]&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;FROM SysObjects WHERE xType = &#39;U&#39;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/5746915594149666684/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/05/list-table-with-identity-column.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5746915594149666684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5746915594149666684'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/05/list-table-with-identity-column.html' title='List Table with Identity Column'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-6975568419900695171</id><published>2015-05-04T09:37:00.001+05:30</published><updated>2015-05-04T09:37:18.573+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Alter table error"/><category scheme="http://www.blogger.com/atom/ns#" term="Error 4929"/><title type='text'>Cannot alter the table &#39;Table_Name&#39; because it is being published for replication.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Today I was altering Primary key columns datatype in a table and got below error in Transaction replication.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Msg 4929, Level 16, State 1, Line 1&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;Cannot alter the table &#39;Table_Name&#39; because it is being published for replication.&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;I had taken following steps to solve the problem&lt;/span&gt;&lt;br /&gt;
&lt;ul style=&quot;text-align: left;&quot;&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Remove table from the replication.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Change the datatype of Primary key column.&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Add again add table to the replication and reinitialize the publication.&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/6975568419900695171/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/05/cannot-alter-table-tablename-because-it.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/6975568419900695171'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/6975568419900695171'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/05/cannot-alter-table-tablename-because-it.html' title='Cannot alter the table &#39;Table_Name&#39; because it is being published for replication.'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-7034878832993354413</id><published>2015-04-27T09:50:00.000+05:30</published><updated>2015-04-27T09:50:29.556+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Backup not starting for Database with Full Text Catalog"/><category scheme="http://www.blogger.com/atom/ns#" term="Full Text Catalog"/><title type='text'>Backup not starting for Database with Full Text Catalog</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19.200000762939453px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Today when I was taking backup of a database got below error:&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19.200000762939453px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;line-height: inherit;&quot;&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Failed to change the status to RESUME for full-text catalog “Test_FullTextCatalog” in database “Test”. Error: 0×80043607(An internal interface is being used after the corresponding catalog has been shutdown. The operation will be aborted.).&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19.200000762939453px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When I checked, backup keeps pending on 0% without any progress. In SQL server error log, I also found error related to Full text catalog that SQL server is facing issue in setting Full test catalog status. These is some issue with FTS service due to which when backup ask FTS service to change Full text catalog status, it failed. SQL server backup change status between PAUSE &amp;amp; RESUME before &amp;amp; after backup.&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #333333; line-height: 19.200000762939453px; margin-bottom: 10px;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Than I started Full text Service to resolve the error. And than try to backup and now it worked successfully.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/7034878832993354413/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/04/backup-not-starting-for-database-with.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7034878832993354413'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/7034878832993354413'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/04/backup-not-starting-for-database-with.html' title='Backup not starting for Database with Full Text Catalog'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-5530702703943712696</id><published>2015-04-13T09:39:00.000+05:30</published><updated>2015-04-13T09:39:45.645+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Start"/><category scheme="http://www.blogger.com/atom/ns#" term="Stop and Disable the job in SQL Server 2008"/><title type='text'>Start, Stop and Disable the job in SQL Server 2008</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;1) Use below procedure to start the Job in SQL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec &lt;b&gt;msdb.dbo.sp_start_job @job_name = N&#39;Job_Name&#39;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec msdb.dbo.sp_start_job @job_name = N&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Job_Name&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;OR&lt;/span&gt;&lt;/div&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec msdb.dbo.sp_start_job &amp;nbsp;N&#39;Job name&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;2)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below procedure to stop the Job in SQL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec &lt;b&gt;msdb.dbo.sp_stop_job @job_name = &#39;&lt;/b&gt;&lt;/span&gt;&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Job_Name&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&#39;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Example:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec msdb.dbo.sp_stop_job @job_name = N&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Job_Name&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;OR&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Exec msdb.dbo.sp_stop_job &amp;nbsp;N&#39;Job name&#39;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;3)&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Use below procedure to enable or disable the Job in SQL&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To enable the Job:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;EXEC msdb.dbo.sp_update_job @job_name = N&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Job_Name&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&#39;, @enabled = 1&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;To disable the Job:&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;b&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;EXEC msdb.dbo.sp_update_job @job_name = N&#39;&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Job_Name&lt;/span&gt;&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&#39;, @enabled = 0&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/5530702703943712696/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/04/start-stop-and-disable-job-in-sql.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5530702703943712696'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/5530702703943712696'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/04/start-stop-and-disable-job-in-sql.html' title='Start, Stop and Disable the job in SQL Server 2008'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-2934763602308479472</id><published>2015-03-30T10:04:00.000+05:30</published><updated>2015-03-30T10:04:54.732+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Clear recent server list from SSMS"/><title type='text'>Clear recent server list from SSMS</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Today someone has asked me a question &quot;How to clear the Most Recently Used (MRU) server names from the connect screen in SSMS&quot;?&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;There is no feature in SSMS to clear the MRU from the Connect to Server screen.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;When I launched SSMS 2008 the Connect screen, It has a lot servers listed in it. This information is stored in a file &quot;&lt;b&gt;SQLStudio.bin&lt;/b&gt;&quot;. This file is located in the below folder.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;C:\Documents and Settings\[UserName]\Application Data\Microsoft\Microsoft SQL Server\100\Tools\Shell&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;Now to clear the Server Names from the connect screen, First close the SSMS and than delete above file. If SSMS is left open while deleting file than again you will get the old Server name list. This is because SSMS update above file just before closing completely.&lt;/span&gt;&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/2934763602308479472/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/03/clear-recent-server-list-from-ssms.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2934763602308479472'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/2934763602308479472'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/03/clear-recent-server-list-from-ssms.html' title='Clear recent server list from SSMS'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3682177839638728927.post-134830665843139691</id><published>2015-03-23T10:02:00.000+05:30</published><updated>2015-03-23T10:02:12.382+05:30</updated><category scheme="http://www.blogger.com/atom/ns#" term="Queries waiting  for memory"/><title type='text'>Queries waiting  for memory</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;You can use below query to find out the queries that require a memory grant to execute or have acquired a memory grant.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;The queries that do not have to wait on a memory grant will not appear in the result.&amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;If this query returns a lot of rows than it could be a indication of internal memory pressure. This will help you to identify the queries which are requsting larger memory grants. There are various reason for this. The quiry might be poorly written. That may require some index for optimization. You should run this query periodically and check for the resource hungry queries. &amp;nbsp;The user who runs below query must have View SErver STate permission on the server.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;SELECT DB_NAME(ST.DBID) AS [Database Name], MG.Requested_Memory_KB AS [Requested memoty in KB], MG.Ideal_Memory_KB AS [Ideal Memory in KB], MG.Request_Time AS [Request Time], MG.Grant_Time AS [Grant Time], MG.Query_Cost AS [Query Cost], MG.DOP, ST.[TEXT], QP.Query_Plan AS [Query Plan]&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;FROM SYS.DM_EXEC_QUERY_MEMORY_GRANTS AS MG CROSS APPLY SYS.DM_EXEC_SQL_TEXT(PLAN_HANDLE) AS ST CROSS APPLY SYS.DM_EXEC_QUERY_PLAN(MG.PLAN_HANDLE) AS QP&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: Arial, Helvetica, sans-serif;&quot;&gt;&lt;b&gt;ORDER BY MG.REQUESTED_MEMORY_KB DESC&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://sqlanddotnetdevelopment.blogspot.com/feeds/134830665843139691/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/03/queries-waiting-for-memory.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/134830665843139691'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3682177839638728927/posts/default/134830665843139691'/><link rel='alternate' type='text/html' href='http://sqlanddotnetdevelopment.blogspot.com/2015/03/queries-waiting-for-memory.html' title='Queries waiting  for memory'/><author><name>Anonymous</name><uri>http://www.blogger.com/profile/09453699184523060639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>