Solved

Creating table on sql server

Posted on 2006-11-09
6
215 Views
Last Modified: 2012-05-05
Hello,

I have very limited knowledge on sql and especially on creating TABLE. I have the following request from a customer to create table on the sql server. The customer just wants the shell of the table to be created where she wants to put data which is in Access database. I have sql server enterprise manager version - 8
 

ColumnName     Type            Size
Date                   Date/Time    8
AllowZeroLength: False
Attributes: Fixed Size
CollatingOrder: General
ColumnHidden: False
ColumnOrder: 1
ColumnWidth: 1740
DataUpdatable: False
Format: mm\/dd\/yy hh:nn:ss
GUID: {guid {69689C6F-9A73-4373-914D-3A71FE40F601}}
IMEMode: 0
IMESentenceMode: 3
OrdinalPosition: 0
Required: False
SourceField: Date
SourceTable: Dwnlds06

Column name     Type       size
Svc ID                Text        50
AllowZeroLength: True
Attributes: Variable Length
CollatingOrder: General
ColumnHidden: False
ColumnOrder: Default
ColumnWidth: Default
DataUpdatable: False
DisplayControl: Text Box
GUID: {guid {F8F8E05D-BD05-4145-885C-015B34EF11BB}}
IMEMode: 0
IMESentenceMode: 3
OrdinalPosition: 1
Required: False
SourceField: Svc ID
SourceTable: Dwnlds06
UnicodeCompression: False

There are few more columns and they have almost the same specifics. How do I create a table with these specifics on the Sql server. I have created simple table with limited specifications before. But for these columns I do not see where I can specify these characters. Hope you can help me
0
Comment
Question by:PAPA1964
  • 2
6 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 17907084
CREATE TABLE <tableName> (
Column1 <datatype> , Col2 <Datatype> ... )

CREATE TABLE Dwnlds06 (
[date] datetime  NULL ,
[SvcID]  varchar(50) NULL )
0
 

Author Comment

by:PAPA1964
ID: 17907697
Thanks for your response. What about the these specifics? -

CollatingOrder: General
ColumnHidden: False
ColumnOrder: Default
ColumnWidth: Default
DataUpdatable: False
DisplayControl: Text Box
GUID: {guid {F8F8E05D-BD05-4145-885C-015B34EF11BB}}
IMEMode: 0
IMESentenceMode: 3
OrdinalPosition: 1
Required: False

I did create the table successfully.Are these specifics in default? What is GUID? Sorry if I am asking stupid questions.

Thanks a lot
0
 
LVL 75

Accepted Solution

by:
Aneesh Retnakaran earned 500 total points
ID: 17907796
CollatingOrder: General ---- Default Collation order, you dont have to mention anything
ColumnHidden: False    --- no hidden column concept in sql server
ColumnOrder: Default   --- Nothing to do with this
ColumnWidth: Default   --- for the datetime datatype this will be fixed
DataUpdatable: False    ---  
DisplayControl: Text Box ---
GUID: {guid {F8F8E05D-BD05-4145-885C-015B34EF11BB}}---
IMEMode: 0----
IMESentenceMode: 3 ---
OrdinalPosition: 1 --- first column
Required: False   --- Whether NULLable or not, false means nullable

the others are the properties from the db designer
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction SQL Server Integration Services can read XML files, that’s known by every BI developer.  (If you didn’t, don’t worry, I’m aiming this article at newcomers as well.) But how far can you go?  When does the XML Source component become …
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Viewers will learn how the fundamental information of how to create a table.
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question