CodePaste Logo
New Snippet New Snippet Recent Snippets Recent Snippets My Snippets My Snippets Web Code Search Snippets Search
Sign inor Register
Format:
Recent snippets matching tags of Lock
SQL
declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64))
insert into @tablevar exec sp_lock
select spid, dbid, ObjId, object_name( objid), IndId, [type], Resource, Mode, Status from @tablevar 
by Steve Scheffler   September 27, 2011 @ 11:58am
Tags: sql, locks
57 Views
no comments
 
SQL
--
-- Dump object names for any locks currently waiting
--
declare @tablevar table(spid int, dbid int, objid int, indid int, [type] varchar(64), resource varchar(64), mode varchar(64), status varchar(64))
insert into @tablevar exec sp_lock
select object_name( objid) from @tablevar where status = 'WAIT'
by Steve Scheffler   September 27, 2011 @ 9:06am
Tags: sql, locks
46 Views
no comments
 
// Iphone Javascript Clock
var timerID = null;
var timerRunning = false;
function stopclock() {
    if (timerRunning)
        clearTimeout(timerID);
    timerRunning = false;
}
function showtime() {
    var timeValue;
by Arjan   May 18, 2010 @ 5:40am
191 Views
no comments
 
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="jQueryBlockUi._Default" %>
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> 
    <script type="text/javascript" src="http://malsup.com/jquery/block/jquery.blockUI.js?v2.28"></script>
</head>
<body>
by Elijah Manor   December 09, 2009 @ 10:48am
1470 Views
no comments
 
CSS
.smallprogress,.smallprogressright
{
    width: 16px;
    height: 16px;
    background-image: url(images/loading_small.gif);
    background-repeat: no-repeat;        
    display: inline-block;    
    xdisplay: none;    
}
.smallprogressright { float: right }
by Rick Strahl   September 14, 2009 @ 2:21pm
338 Views
no comments
 
C#
private static object _SyncLock = new object();
 
public TableInfo<TEntity> TableInfo
{
  get 
  {
      if (_TableInfo == null)
      {
          lock (_SyncLock)
          {
by Rick Strahl   August 23, 2009 @ 9:19pm
261 Views
no comments
 
C#
private void RedirectToNextView(string previousView, ViewSettings viewSettings)
        {
            try
            {
                if( previousView == null )
                    // Fix HttpContext.Current.Request.ApplicationPath because doesn't work well whe application is in root directory
                    // when application is under root ApplicationPath returns "/"
                    // when application is under sub foder ApplicationPath returns "/sub folder"
                    // so remove end "/"
                    // see  http://weblogs.asp.net/dneimke/archive/2004/05/17/133116.aspx
by Fernando Claverino   August 08, 2009 @ 7:01pm
Tags: c#, uip block
344 Views
no comments
 
brought to you by:
West Wind Techologies



If you find this site useful and use it frequently please consider making a donation to support this free service.
Donate