How To Create a Simple Table to Test Triggers in MS SQL Server?
Submitted by: AdministratorIf 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
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
Top MS SQL Server Questions
☺ | What Happens If NULL Values Are Involved in Arithmetic Operations? |
☺ | PHP MSSQL - How To Display a Past Time in Days, Hours and Minutes? |
☺ | Can You Roll Back the DDL Statement in a Trigger? |
☺ | How To Convert a Numeric Expression from One Data Type to Another? |
☺ | How To Use Subqueries with the IN Operators in MS SQL Server? |
Top Databases Programming Categories
☺ | RDBMS Interview Questions. |
☺ | SQL Interview Questions. |
☺ | SSRS Interview Questions. |
☺ | Sybase Interview Questions. |
☺ | Database Administrator (DBA) Interview Questions. |