Solved

Creating table on sql server

Posted on 2006-11-09
6
213 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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Introduced in Microsoft SQL Server 2005, the Copy Database Wizard (http://msdn.microsoft.com/en-us/library/ms188664.aspx) is useful in copying databases and associated objects between SQL instances; therefore, it is a good migration and upgrade tool…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

943 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now