I have been provided with oracle sql scripts by my client which should be converted to MSSQL. PART OF THE SCRIPT IS
CREATE TABLE IGAMES.ACCOUNT_LOG
(
TRANS_ID VARCHAR2(20) NOT NULL,
TRANS_DATE DATE NOT NULL,
ACCOUNT_NO VARCHAR2(20) NULL,
ACCOUNT_KIND CHAR(1) NOT NULL,
TRANS_KIND CHAR(1) NOT NULL,
BALANCE NUMBER(19,4) NOT NULL,
DEPOSIT NUMBER(19,4) NOT NULL,
WITHDRAW NUMBER(19,4) NOT NULL,
GAME_ID VARCHAR2(4) DEFAULT 'P' NOT NULL,
IP_ADDRESS VARCHAR2(15) NULL,
CONNECT_ID VARCHAR2(25) NULL,
TABLE_ID VARCHAR2(5) NULL,
GAMELOG_ID VARCHAR2(20) NULL,
WHO VARCHAR2(20) NULL,
REMARK VARCHAR2(50) NULL
)
TABLESPACE IGAMES_TABLES
LOGGING
PCTFREE 10
PCTUSED 40
INITRANS 1
MAXTRANS 255
STORAGE(FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT)
NOPARALLEL
NOCACHE
/
ALTER TABLE IGAMES.ACCOUNT_LOG
ADD CONSTRAINT PK_ACCOUNT_LOG
PRIMARY KEY (TRANS_ID)
USING INDEX PCTFREE 10
INITRANS 2
MAXTRANS 255
TABLESPACE IGAMES_INDEXES
STORAGE(FREELISTS 1
FREELIST GROUPS 1
BUFFER_POOL DEFAULT)
LOGGING ENABLE VALIDATE
While converting the table i removed the schema name and i again prefixed the schema name once it got converted to mssql ...
but now the problem is how can i convert even the tablespace to mssql database. As mssql does not have the concept of tablspace .....its actually the database....could someone please help me out with this
Even the "ALTER TABLE " syntax cannot be converted as its referencing the tablespace.
One more thing i have downloaded software "INTELLIGENT CONVERTERS" AND THE OTHER WAY IS THROUGH ENTERPRISE MANAGER... WHICH WOULD A BETTER OPTION FOR CONVERSION
THANX
Start Free Trial