connect@nabeelshahid.com
  • Facebook
  • Twitter
  • Google
  • Facebook
  • Twitter
  • Google
NABEEL SHAHID, Solution Architect for Cloud Applications
  • Home
  • Projects
  • Experience
  • Blogs
    • UI/UX Designs & Layout
      • Bootstrap
      • WebFonts / Font Icons
      • jQuery Charts / Graphs Plotting
      • jQuery Dropdown Lists
      • jQuery Calenders / Date Pickers
    • Microsoft SQL Server
      • TSQL
      • SQL Server 2012
      • SQL Server 2008
      • SQL Server 2005
    • Microsoft Sharepoint
      • Sharepoint 2010
    • Desktop Development
      • Visual Basic
    • Mobile Development
      • Android Development
    • Management
      • Project Management
      • Team Management And Leadership
  • About Me
  • Contact
Select Page

TSQL First_Value and Last_Value functions usage in SQL 2012

Mar 13, 2012 | Microsoft SQL Server, SQL Server 2012, TSQL

SQL Server 2012 introduces two new analytical functions FIRST_VALUE and LAST_VALUE. FIRST_VALUE returns the first value in an ordered set of values and LAST_VALUE returns the last value in an ordered set of values The syntax for these functions are: FIRST_VALUE...

T-SQL script to REFRESH all views in a SQL Server Database

Mar 9, 2012 | Microsoft SQL Server, TSQL

T-SQL script to refresh all VIEWS in DATABASE. declare c cursor for select name from sysobjects where type = ‘v’ and uid = 1 open c declare @ViewName varchar(500) fetch next from c into @ViewName while @@fetch_status = 0 begin BEGIN TRY exec sp_refreshView...

SQL 2005 System Objects for getting information about Transaction Locks

Mar 9, 2012 | Microsoft SQL Server, SQL Server 2005, TSQL

SQL 2005 System Objects for getting information about Transaction Locks sys.dm_tran_locks: Shows us all locks held on all resources for all transaction. We start from this view since we want to get information about locked resources. sys.partitions: Contains...

T-SQL Script to enable/disable Cross-Database Chaining

Mar 9, 2012 | Microsoft SQL Server, SQL Server 2005, SQL Server 2008, TSQL

T-SQL script to enable Cross Database Chaining in Microsoft SQL Server through query analyzer: Use [MY_DATABASE_NAME] GO ALTER DATABASE [MY_DATABASE_NAME] SET DB_CHAINING ON GO EXEC sp_grantdbaccess ‘GUEST’ GO Grant CONNECT to GUEST GO Grant SELECT to...

TSQL – Large table cleanup with minimal locks

Mar 6, 2012 | Microsoft SQL Server, SQL Server 2005, SQL Server 2008, TSQL

Your SQL Server production database must be available 7×24 but it contains millions of obsolete rows which hurt performance.  How do you delete these rows without the lock contention and business impact of a standard delete?  In this tip we look at how you can...

TempDB Monitoring – Important SQL Queries

Aug 22, 2011 | Microsoft SQL Server, SQL Server 2005, SQL Server 2008, TSQL

Here are few important TSQL queries to get the long running transactions and queries in TempDB for monitoring purposes. Long-running transaction: Sometimes transactions may run for long time preventing the shrinking of version store data. The below queries will list...
« Older Entries

Recent Posts

  • Job – Job Planning Lines missing Task Description
  • Notify.js – A jQuery plugin to provide simple browser based notifications with customization
  • jQuery Tapatar – A lightweight, extensible plugin, that lets users pick an avatar from a social network, disk, or other source
  • jQuery SignField – Provides signature field as jQuery component, using either a sketch pad or an uploaded signature file for E-Sign (Electronic Signature) features
  • jQuery Capitalize – A Plugin that provides capitalization for your input fields (or any other element) for proper names, places

Recent Comments

  • Mathew on Flot Charts – An attractive javascript based plotting library for jQuery!
  • SYED NABEEL SHAHID on Simple-dtpicker – Locale supported Date & Time picker – A very good jQuery plugin with lot’s of parameters
  • Micheal on Simple-dtpicker – Locale supported Date & Time picker – A very good jQuery plugin with lot’s of parameters
  • SYED NABEEL SHAHID on T-SQL script to REFRESH all views in a SQL Server Database
  • Ryan on T-SQL script to REFRESH all views in a SQL Server Database
  • Facebook
  • Twitter
  • Google

Designed by NabeelShahid [https://nabeelshahid.com]