summaryrefslogtreecommitdiff
path: root/tests/simple_unit/SqlMap/scripts/mssql/user-init.sql
blob: 02268f3c7e1aaa703d7f6d79b9b1e1e24e65c571 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
-- Creating Table

use [NHibernate]

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[Users]') and OBJECTPROPERTY(id, N'IsUserTable') = 1)
BEGIN
	drop table [dbo].[Users]
END

CREATE TABLE [dbo].[Users] (
  LogonID nvarchar(20) NOT NULL default '0',
  Name nvarchar(40) default NULL,
  Password nvarchar(20) default NULL,
  EmailAddress nvarchar(40) default NULL,
  LastLogon datetime default NULL,
  PRIMARY KEY  (LogonID)
)