November 24, 2014

What is SCHEMABINDING?

SCHEMABINDING with a Query...

***Table***

CREATE TABLE Sampletbl ( col1 DATETIME ) 

***Data***

INSERT  INTO Sampletbl
VALUES  ( GETDATE() + 1 )

***Function***

CREATE FUNCTION SampleFunction ( )
RETURNS DATETIME
    WITH SCHEMABINDING
AS 
    BEGIN 

        DECLARE @t DATETIME

        SELECT  @t = col1
        FROM    dbo.Sampletbl

        RETURN @t

    END

November 21, 2014

MS SQL - Standby Servers and Types of Standby Servers

Standby servers - Standby Server is a type of server that can be brought online in a situation when Primary Server goes offline and application needs continuous (high) availability of the server. There is always a need to set up a mechanism where data and objects from primary server are moved to secondary (standby) server. This mechanism usually involves the process of moving backup from the primary server to the secondary server using T-SQL scripts. Often, database wizards are used to set up this process.

Languages for BI – MDX, DMX, XMLA

BI stands for Business Intelligence 

What languages BI uses to achieve the goal? 

MDX – Multidimensional Expressions. This language is used for retrieving data from SSAS cubes. It looks very similar to T-SQL, but it is very different in the areas of conceptualization and implementations.

DMX – Data Mining Extensions. This is again used for SSAS but rather than cubes it is used for data mining structures. This language is more complicated than MDX. Microsoft has provided lots of wizards in its BI tools, which further reduced experts for learning this language which deals with data mining structures.

XMLA – XML for Analysis. This is mainly used for SSAS administrative tasks. It is quite commonly used in administration tasks such as backup or restore database, copy and move database or learning meta data information. Again, MS BI tools provide lots of wizards for the same.


November 7, 2014

Android 5.0 Lollipop VS Android 4.4 Kitkat

The announcement of Android 5.0 Lollipop has, indeed, incorporated another achievement in the kitty of Android in terms of technological advancement. Android L is, certainly, considered to be one of the biggest updates by Android as of now due to the incredible changes and upgraded progressions. The new version of Android was announced recently at a conference in San Francisco with tons of changes, especially for developers. At present, it is available only in Google Nexus 6 and Google Nexus 9 tablet. However, there is a lot of chit-chat and gossip in the market about the features that both Kitkat and Android L provide to the users, and which is the best. Have a look at what more or less Android L is providing, and whether it is better than Android 4.4 Kitkat or not.

September 17, 2014

What are the difference between DDL, DML and DCL commands?

DDL

Data Definition Language (DDL) statements are used to define the database structure or schema. Some examples:
CREATE - to create objects in the database
ALTER - alters the structure of the database
DROP - delete objects from the database
TRUNCATE - remove all records from a table, including all spaces allocated for the records are removed
COMMENT - add comments to the data dictionary
RENAME - rename an object

July 28, 2014

RAID Concept & Levels

RAID (originally redundant array of inexpensive disks; now commonly redundant array of independent disks) is a data storage virtualization technology that combines multiple disk drive components into a logical unit for the purposes of data redundancy or performance improvement.

July 14, 2014

Displays a list of files and sub directories in a directory in CMD Prompt.

 DIR [ drive:][path][file-name] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]

  [drive:][path][filename]
          Specifies drive, directory, and/or files to list.

  /A          Displays files with specified attributes.
           D  Directories                R  Read-only files
           H  Hidden files               A  Files ready for archiving
           S  System files               I  Not content indexed files
           L  Re parse Points        -  Prefix meaning not

Just set type of desired file attribute, in your case /A:D (directory)

dir /s/b/o:n/A:D > filename.txt

Source: Link