giovedì 25 giugno 2015

Sync and Async Event Receiver

Good to understand sync and async Event Receiver

venerdì 6 settembre 2013

UNION VS UNION ALL



UNION
The UNION command is used to select related information from two tables, much like the JOIN command. However, when using the UNION command all selected columns need to be of the same data type. With UNION, only distinct values are selected.
UNION ALL
The UNION ALL command is equal to the UNION command, except that UNION ALL selects all values.
The difference between Union and Union all is that Union all will not eliminate duplicate rows, instead it just pulls all rows from all tables fitting your query specifics and combines them into a table.

http://blog.sqlauthority.com/2009/03/11/sql-server-difference-between-union-vs-union-all-optimal-performance-comparison/ 

C#


What is the difference between an abstract function and a virtual function?

 

An abstract function can have no functionality. You're basically saying, any child class MUST give their own version of this method, however it's too general to even try to implement in the parent class. A virtual function, is basically saying look, here's the functionality that may or may not be good enough for the child class. So if it is good enough, use this method, if not, then override me, and provide your own functionality.

giovedì 5 settembre 2013

WEB SITE



Semplifica il reperimento del tuo sito

Grazie a Google Ricerca Personalizzata, puoi aggiungere una casella di ricerca nella tua home page per aiutare gli utenti del tuo sito web a trovare quel che cercano al suo interno.

 

 https://www.google.com/cse/

How To Delete All Tables


  How To Delete All Tables

DECLARE
@sql VARCHAR(4000),
@int_counter INT,
@int_max INT

DECLARE @tables TABLE(
ident INT IDENTITY(1,1) PRIMARY KEY,
table VARCHAR(256))

INSERT @tables(table)
SELECT name FROM sysobjects WHERE xtype = 'U'

SELECT
@int_counter = 1,
@int_max = (SELECT MAX(ident) FROM @tables))

WHILE @int_counter <= @int_max
BEGIN

SELECT @sql = 'DELETE ' + table
FROM @tables WHERE ident = @int_counter

SELECT @int_counter = @int_counter + 1
END

REF :http://www.dbforums.com/microsoft-sql-server/992098-how-delete-all-tables.html