Generate Random Password In SQL

Category: SQL Comments: No comments

Today i'll explain how to generate random password in SQL by using a template. Template work as like as format that every new password will generate as same format. Read More

Convert Rows to Columns in SQL Server Without Using Pivot

Category: SQL Comments: No comments

Convert Rows to Columns in SQL Server Without Using Pivot

DECLARE @UserData TABLE (UserName VARCHAR(50),Mobile VARCHAR(50))

INSERT INTO @UserData VALUES (‘Abdul’,23243434)
INSERT INTO @UserData VALUES (‘Abdul’,345435345)
INSERT INTO @UserData VALUES (‘Abdul’,23423)
INSERT INTO @UserData VALUES (‘Raj’,2345435)
INSERT INTO @UserData VALUES (‘Raj’,324324)
INSERT INTO @UserData VALUES (‘Raj’,234234)
INSERT INTO @UserData VALUES (‘Manish’,3453453)
INSERT INTO @UserData VALUES (‘Manish’,345345)
INSERT INTO @UserData VALUES (‘Manish’,23452)
;WITH UserMaster AS
FROM @UserData
,t1.Mobile AS website1,t2.Mobile AS website2,t3.Mobile AS website3
FROM @UserData t
LEFT OUTER JOIN UserMaster t1 ON t.UserName=t1.UserName AND t1.ColumnNumber=1
LEFT OUTER JOIN UserMaster t2 ON t.UserName=t2.UserName AND t2.ColumnNumber=2
LEFT OUTER JOIN UserMaster t3 ON t.UserName=t3.UserName AND t3.ColumnNumber=3 Order byt.userName desc
Read More

Get List of All Stored Procedures,Tables,Triggers from Database in SQL Server

Category: SQL Comments: No comments

Get List of Stored procedure,Tables,Triggers names in database To get list of procedures in SQL Server we need to write the query like as shown below USE TempDB SELECT * FROM SYS.PROCEDURES Get List of table names in databaseRead More

Change Identity Column Value in SQL Server

Category: SQL Comments: No comments

I will explain to change identity column seed value in SQL server or reseed identity column seed value of table in SQL server or how to change identity column value in SQL server. DBCC CHECKIDENT (Table_Name, RESEED, New_Reseed_Value) Table_Name is name of your identity column tableRead More

Drop index from Table

Category: SQL Comments: No comments

To remove index from table we use drop index statement in sql server. To create index on column in sql server that syntax will be like as shown below Syntax to Create Index CREATE INDEX indexname ON Tablename(columnname)Read More

Difference between Cursor and While Loop with Example

Category: SQL Comments: No comments

Here I will explain difference between cursor and while loop in sql server with example or explain cursor vs while loop with example in sql server. Cursors in sql server allow you to fetch a set of data, loop through each record, and modify the values as necessary; then, you can easily assign these values to variables and perform processing on these values. While loop also same as cursor to fetch set of data and process each row in sql server.Read More

Steps For Install DNN (Dotnet Nuke)

Category: DOTNETNUKE Comments: No comments

Steps For Install DNN (Dotnet Nuke)Read More

CasCading DropDownList using Generic Handler and JQuery in

Category: ASP.NETGENERIC HANDLERJQUERY Comments: 2 comments

ometimes we need to do fill dropdownlist using JQuery and Generic Handler in Explanation given below: Design Page: SELECT YOUR STATE Generic Handler: public void ProcessRequest(HttpContext context) { context.Response.ContentType = "application/json"; int id = Convert.ToInt32(context.Request["id"]); string sJSON = GetProduct(id); context.Response.Write(sJSON); } public string GetProduct(int id)Read More

CasCading DropDownList using Array in

Category: ASP.NETC#.Net Comments: No comments

Sometimes we need to do fill dropdownlist using Array(2 Dimensional and 3 Dimensional) For Static Value in Explanation given below: Design Page:
Code Page: protected void Page_Load(object sender, EventArgs e) { if(!IsPostBack)Read More

Database Normalization Tutorial with example

Category: SQL Comments: No comments

Normalization is the process of efficiently organizing data in a database. There are two goals of the normalization process: eliminating redundant data (for example, storing the same data in more than one table) and ensuring data dependencies make sense (only storing related data in a table). Both of these are worthy goals as they reduce the amount of space a database consumes and ensure that data is logically stored. Database normalization is the process of organizing the fields and tables of a relational database to minimize redudancy and dependency. Normalization usually involves dividing large tables into smaller (and less redundant) tables and defining relationships between them. The objective is to isolate data so that additions, deletions, and modifications of a field can be made in just one table and then propagated through the rest of the database using the defined relationships. Normalization is a process of simplifying the relationship between the data in a record it is carried out for the following reasons. To simplifying the maintenance of data through updates, insertion and deletions To allow simple retrieval of data in response to query and requests To avoid restructuring of data when new application requirements arises. To structure the data so that any relationship can be easily representedRead More