How To Create a Simple Table to Test Triggers in MS SQL Server?

Submitted by: Administrator
If you want to follow other tutorial examples included in this collection, you need to run this SQL script to create a simple table called ggl_users:

USE GlobalGuideLineDatabase;
GO

DROP TABLE ggl_users;
GO

CREATE TABLE ggl_users (
id INTEGER IDENTITY NOT NULL,
name VARCHAR(80) NOT NULL,
email VARCHAR(80) NULL,
password VARCHAR(32) NULL
);

INSERT INTO ggl_users (name) VALUES ('John King');
INSERT INTO ggl_users (name) VALUES ('Nancy Greenberg');
GO

ggl_users is created now with 2 records.
Submitted by: Administrator

Read Online MS SQL Server Job Interview Questions And Answers