Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 Translation from SQL Server 2005

Author  Topic 

Wodzu
Yak Posting Veteran

58 Posts

Posted - 2009-03-25 : 05:33:09
Hi,

Anyone could help me to translate this creation of table into T-SQL 2000 dialect?

I am having problems with creation a constraint like this:

CREATE TABLE [dbo].[Operatorzy](
[Ope_OpeID] [int] IDENTITY(1,1) NOT NULL,
[Ope_Kod] [varchar](20) NOT NULL UNIQUE,
[Ope_Imie] [varchar](30) NOT NULL,
[Ope_Nazwisko] [varchar](30) NOT NULL,
[Ope_Haslo] [varchar](255) NOT NULL,
[Ope_HasloChk] [varchar](64) NOT NULL DEFAULT(''),
[Ope_Nieaktywny] [bit] NOT NULL DEFAULT(0),
[Ope_Administrator] [bit] NOT NULL DEFAULT(0),
[Ope_Uprawnienia] [int] NOT NULL DEFAULT(0),
CONSTRAINT [PK_Operatorzy] PRIMARY KEY CLUSTERED
(
[Ope_OpeID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

CREATE TABLE [dbo].[KlnGrupy](
[KlG_KlGID] [int] IDENTITY(1,1) NOT NULL,
[KlG_Kod] [varchar](40) NOT NULL UNIQUE,
[KlG_KlGParent] [int] NULL DEFAULT(NULL),
[KlG_Nazwa] [varchar](255) NOT NULL DEFAULT '',
CONSTRAINT [PK_KlnGrupy] PRIMARY KEY CLUSTERED
(
[KlG_KlGID] ASC
)WITH (PAD_INDEX = ON, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON, FILLFACTOR = 80) ON [PRIMARY],

CONSTRAINT [FK_KlnGrupy_KlnGrupy] FOREIGN KEY([KlG_KlGParent]) REFERENCES [dbo].[KlnGrupy] ([KlG_KlGID]),
CONSTRAINT [CK_KlGParentNotSelf] CHECK(KlG_KlGParent <> KlG_KlGID)
) ON [PRIMARY]


thanks in advance

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-25 : 06:34:29
Generate script for that table from SSMS. In Choose Scripts Option, Select SQL Server 2000 for "Script for Server version"
Then it will generate with compatible to SQL Server 2000


Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

Wodzu
Yak Posting Veteran

58 Posts

Posted - 2009-03-25 : 07:13:53
Thank you!

You are a life saver ;)
Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2009-03-25 : 07:47:24
quote:
Originally posted by Wodzu

Thank you!

You are a life saver ;)


You aew welcome

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -