Can anybody help me create these fields in SQL?

These fields are meant for paradox database, can anybody help me do a CREATE TABLE statement with those fields working in MSSQL? I don't know their correspondent in SQL..

Paradox fields
Thank you.
John86aAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

elimesikaCommented:
Here we go ...
create table mytable (
ActualFinish int NOT NULL,
ActualStart int NOT NULL,
Caption varchar(255),
EventType int NOT NULL,
Finish datetime NOT NULL,
ID int identity(1,1) NOT NULL,
LabelColor int,
Location varchar(255),
Mesage varchar(255),
Options int,
ParentId uniqueidentifier NOT NULL,
RecurrenceIndex int NOT NULL,
RecurrenceInfo  image NOT NULL,
ReminderDate datetime,
ReminderMinutesBeforeStart int,
ReminderResourcesData image,
ResourceId int NOT NULL,
Start datetime NOT NULL,
State int,
TaskCompletField int NOT NULL,
TaskIndexField int NOT NULL,
TaskLinkesField image NOT NULL,
TaskStatusField int  NOT NULL
)

Open in new window

0
elimesikaCommented:
Sorry, typo in the Message field (change it please from Mesage to Message)
0
JoeNuvoCommented:
a little modification from elimesika's script

1. since ID is auto increment, it should be the key of table, so I put PRIMARY KEY
2. since ID is INT, so ParentID should be same datatype INT rather than uniqueidentifier
3. image datatype which represent BLOB on SQL will not support in the future, shall uses varbinary(max) instead

CREATE TABLE cxScheduler (
	ActualFinish int NOT NULL,
	ActualStart int NOT NULL,
	Caption varchar(255),
	EventType int NOT NULL,
	Finish datetime NOT NULL,
	ID int PRIMARY KEY identity(1,1) NOT NULL,
	LabelColor int,
	Location varchar(255),
	Message varchar(255),
	Options int,
	ParentID int NOT NULL,
	RecurrenceIndex int NOT NULL,
	RecurrenceInfo varbinary(max) NOT NULL,
	ReminderDate datetime,
	ReminderMinutesBeforeStart int,
	ReminderResourcesData varbinary(max),
	ResourceID int NOT NULL,
	Start datetime NOT NULL,
	State int,
	TaskCompleteField int NOT NULL,
	TaskIndexField int NOT NULL,
	TaskLinkesField varbinary(max) NOT NULL,
	TaskStatusField int NOT NULL
)

Open in new window

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
John86aAuthor Commented:
Thanks guys!
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.