TechAid24

Your Technical Consultant

Category: Microsoft SQL Server

Storing and retrieving data as requested by other software applications, either on the same computer or a remote machine, utilizing the client-server model. 

Returning Data Using SQL Output Parameter

Posted on by Selim Ahmed

If you specify the OUTPUT keyword for a parameter in the procedure definition, the procedure can return the current value of the parameter to the calling program when the procedure exits. To save the value of the parameter in a variable that can be used in the calling program, the calling program must use the OUTPUT keyword when executing the procedure. For more information about what data types can be used as output parameters.

Continue reading Returning Data Using SQL Output Parameter

Difference between Primary Key Vs Foreign key in SQL

Posted on by Selim Ahmed

There are two types of primary key, a simple primary key, and a composite primary key. A simple primary key is made of just one column while a composite primary key is made of more than one columns. Primary key also enforces some constraint e.g. UNIQUE and NOT NULL, which means if you try to enter another record with the primary key already existing in the database than DBMS will reject it.

Continue reading Difference between Primary Key Vs Foreign key in SQL