Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Creating table on sql server

Posted on 2006-11-09
6
Medium Priority
?
232 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 2000 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone 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

What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

610 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