Solved

Creating table on sql server

Posted on 2006-11-09
6
210 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
Comment Utility
CREATE TABLE <tableName> (
Column1 <datatype> , Col2 <Datatype> ... )

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

Author Comment

by:PAPA1964
Comment Utility
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
Comment Utility
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you hear the word proxy, you may become apprehensive. This article will help you to understand Proxy and when it is useful. Let's talk Proxy for SQL Server. (Not in terms of Internet access.) Typically, you'll run into this type of problem w…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
This video shows, step by step, how to configure Oracle Heterogeneous Services via the Generic Gateway Agent in order to make a connection from an Oracle session and access a remote SQL Server database table.

762 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

10 Experts available now in Live!

Get 1:1 Help Now