Solved

Creating table on sql server

Posted on 2006-11-09
6
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

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 …
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

737 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