Book a Demo

Author Topic: Defining a database table  (Read 6148 times)

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Defining a database table
« on: April 06, 2016, 02:12:53 pm »
I'd life to define a database table so that the resulting DDL generated would look similar to
Code: [Select]
CREATE TABLE Archive.dbo.Records
(
        [Id] [uniqueidentifier] ROWGUIDCOL NOT NULL UNIQUE,
        [SerialNumber] INTEGER UNIQUE,
        [Chart] VARBINARY(MAX) FILESTREAM NULL
)
Its not clear to me where to enter the qualifiers such as ROWGUIDCOL, UNIQUE, and FILESTREAM.

Can anyone help please?
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

skiwi

  • EA Expert
  • ****
  • Posts: 2081
  • Karma: +46/-82
    • View Profile
Re: Defining a database table
« Reply #1 on: April 08, 2016, 06:53:42 am »
Also how to provide the attributes to correctly correct the database, if that is possible in EA?
Code: [Select]
CREATE DATABASE NorthPole
ON
PRIMARY (
      NAME = NorthPoleDB,
      FILENAME = 'C:\Temp\NP\NorthPoleDB.mdf'
), FILEGROUP NorthPoleFS CONTAINS FILESTREAM(
      NAME = NorthPoleFS,
    FILENAME = 'C:\Temp\NP\NorthPoleFS')
LOG ON (                       
      NAME = NorthPoleLOG,
    FILENAME = 'C:\Temp\NP\NorthPoleLOG.ldf')
Orthogonality rules
Position and Team disestablished, thanks austerity.
Now itinerant.

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Defining a database table
« Reply #2 on: April 08, 2016, 03:12:26 pm »
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)