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 table
SQL
 
 
 
 /*************************************************************************************
  *
  *        Copyright 2012 Davide Orazio Montersino http://www.davidemontersino.com
  *
  *        This program is free software: you can redistribute it and/or modify
  *        it under the terms of the GNU General Public License as published by
  *        the Free Software Foundation, either version 3 of the License, or
by Davide Orazio Montersino   January 10, 2012 @ 2:19am
59 Views
no comments
 
C#
namespace Westwind.Utilities.Data
{
    /// <summary>
    /// This class provides an easy way to turn a DataRow 
    /// into a Dynamic object that supports direct property
    /// access to the DataRow fields.
    /// 
    /// The class also automatically fixes up DbNull values
    /// (null into .NET and DbNUll to DataRow)
    /// </summary>
by Rick Strahl   December 27, 2011 @ 3:56pm
299 Views
no comments
 
SQL
CREATE PROC SearchAllTables
(
    @SearchStr nvarchar(100)
)
AS
BEGIN
    CREATE TABLE #Results (ColumnName nvarchar(370), ColumnValue nvarchar(3630))
 
    SET NOCOUNT ON
by Prithvi Ramana A   December 22, 2011 @ 6:46am
62 Views
no comments
 
Module Module1
    Public Enum PivotAction
        Sum = 1
        Min = 2
        Max = 3
        Count = 4
    End Enum
    Public Function Pivot(ByVal SourceTable As DataTable, _
                          ByVal PrimaryKeyColumn As String, _
                          ByVal PivotNameColumn As String, _
by aKocen   September 26, 2011 @ 7:57am
138 Views
1 comments
 
SQL
USE <%DatabaseName%>
GO
SELECT t.name AS table_name,
SCHEMA_NAME(schema_id) AS schema_name,
c.name AS column_name
FROM sys.tables AS t
INNER JOIN sys.columns c ON t.OBJECT_ID = c.OBJECT_ID
WHERE c.name LIKE '%UserName%'
ORDER BY schema_name, table_name; 
by Egli   August 25, 2011 @ 4:50pm
68 Views
no comments
 
SQL
CREATE FUNCTION [dbo].[udf_StringToTable]
(
    @string VARCHAR(MAX),
    @delimiter CHAR(1)
)
RETURNS @output TABLE(
    data VARCHAR(256)
)
BEGIN
by jaredmroberts   May 31, 2011 @ 11:01am
109 Views
no comments
 
SQL
ALTER TABLE Student
ADD Gender BIT NULL,Address3 NVARCHAR(500) null;
by Falaque   December 29, 2010 @ 4:09am
157 Views
no comments
 
C#
static readonly List<Author> quotes = new List<Author>();
 
        public static void GetAuthors()
        {
            quotes.Add(new Author() { AuthorInfo = "", FirstName = "Devin", LastName = "Rader" });
 
            quotes.Add(new Author() { AuthorInfo = "", FirstName = "Bill", LastName = "Evjen" });
 
            quotes.Add(new Author() { AuthorInfo = "", FirstName = "Devin", LastName = "Rader" });
by Zubair   September 29, 2010 @ 10:39am
191 Views
no comments
 
jQuery("#list").tableDnD({
 
    onDrop: function(table, row) {
 
        var oldIndex = row.id;
 
        var newIndex = row.rowIndex;
 
        if (oldIndex == newIndex)
by ZStyle   August 24, 2010 @ 11:16pm
462 Views
no comments
 
$(document).ready(function() {
 
    // Initialise the first table (as before)
    $("#table-1").tableDnD();
 
    // Make a nice striped effect on the table
    $("#table-2 tr:even').addClass('alt')");
 
    // Initialise the second table specifying a dragClass and an onDrop function that will display an alert
    $("#table-2").tableDnD({
by ZStyle   August 24, 2010 @ 11:09pm
687 Views
no comments
 
C#
// Map content before registering areas
protected void Application_Start()
{
    Content.Map<MyPortableArea>()
        .Master("~/Views/Shared/PA.master")
        .Title("PATitle")
        .Body("PAMain");
 
    AreaRegistration.RegisterAllAreas();
by John Nelson   May 19, 2010 @ 9:33pm
278 Views
no comments
 
C#
private static IEnumerable<Type> FindAllMessageHandlers()
{
    var iMessageHandler = typeof(IMessageHandler);
 
    var types = from type in AppDomain.CurrentDomain.GetAssemblies().SelectMany(t => t.GetTypes())
            let canInstantiate = !type.IsInterface && !type.IsAbstract && !type.IsNestedPrivate
            let isIMessageHandler = type.GetInterface(iMessageHandler.Name) != null
            where canInstantiate && isIMessageHandler
            select type;
by John Nelson   May 06, 2010 @ 7:03pm
295 Views
no comments
 
SQL
Set NoCount ON
 
Declare @tableName varchar(200)
 
set @tableName=''
 
While exists
 
(
by Unknown (google)   April 16, 2010 @ 12:00pm
267 Views
no comments
 
C#
using System;
using System.Collections;
using System.IO;
using System.Text;
 
namespace Handlers
{
    
    /// <summary>
    /// A data-reader style interface for reading Csv (and otherwise-char-separated) files.
by Utkarsh Puranik   February 23, 2010 @ 3:44am
917 Views
no comments
 
Imports System
Imports System.Collections
Imports System.IO
Imports System.Text
 
Namespace Handlers
 
    ''' <summary>
    ''' A data-reader style interface for reading Csv (and otherwise-char-separated) files.
    ''' </summary>
by Utkarsh Puranik   February 23, 2010 @ 3:43am
2199 Views
no comments
 
SQL
DECLARE @ParamFromDate datetime
DECLARE @ParamToDate datetime
DECLARE @ParamQueues varchar(50)
DECLARE @CurrentDate DATETIME
DECLARE @L_Start varchar(50)
DECLARE @L_End varchar(50)
DECLARE @LSQL as varchar(1500)
DECLARE @LCOL as varchar(50)
DECLARE @TableName1 varchar(50)
DECLARE @TableName2 varchar(50)
by Thom Lamb   February 12, 2010 @ 1:34pm
222 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