473,583 Members | 3,061 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Two timestamp datatypes in single table of SQL server2005

20 New Member
Hi

i need to give two timestamp datatype in a single table of sql server 2005 DB..but it is showing error that it is not possible..pls anyone help me...

my table::

create table
{
intime timestamp null,
outtime timestamp null
}
Mar 19 '08 #1
2 1771
deepuv04
227 Recognized Expert New Member
Hi

i need to give two timestamp datatype in a single table of sql server 2005 DB..but it is showing error that it is not possible..pls anyone help me...

my table::

create table
{
intime timestamp null,
outtime timestamp null
}
[code =text]
I think you are missing the table name ,
use ( instead of { and
you can use datetime datatype instead of timestamp



[/code]
Mar 19 '08 #2
ck9663
2,878 Recognized Expert Specialist
Here's the complete CREATE TABLE syntax.

-- CK
Mar 19 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

17
6128
by: John Bentley | last post by:
John Bentley: INTRO The phrase "decimal number" within a programming context is ambiguous. It could refer to the decimal datatype or the related but separate concept of a generic decimal number. "Decimal Number" sometimes serves to distinguish Base 10 numbers, eg "15", from Base 2 numbers, Eg "1111". At other times "Decimal Number" serves to...
3
8923
by: Patrick Hatcher | last post by:
I have a timestamp field where I find I'm doing a lot of searching by date (YYYY-MM-DD) or using this field as a match to another table that has a date format. I wanted to create an index on the timestamp field using a date format. Is this possible? I tried: CREATE INDEX test_2 ON table1 USING btree to_char(field2, 'MM-DD-YYYY'); but I...
1
2917
by: Vilson farias | last post by:
Greetings, I was doing some tests with timestamps and intervals and I've discovered, for my surprise, that I can't set precision for resulting fields of type interval when I'm executing a query. Please follow my tests : bxs=# select CAST('10:32:14.553243' AS interval); interval ----------------- 10:32:14.553243
5
1422
by: Vai2000 | last post by:
Hi All, I have a ClassA and a worker ClassB. in my ClassA I have a method which calls the following routine for(int idx=0;idx<10;idx++) { ClassB ob=new ClassB(); ThreadPool.QueueUserWorkItem(new WaitCallback(ob.Exec)); } I want to know/signal when all the Worker ClassB are done?
4
2349
by: Mark Harrison | last post by:
So, I'm recording the timestamp from some unix files. Any opinions as to whether it's best to use a "bigint" (which matches the file system data) or a "timestamp" (which might be easier to manipulate in the database)? TIA! Mark --
6
3420
by: Jim C. Nasby | last post by:
Is there any reason why there isn't a predefined cast to go from a timestamp to a varchar? Is there a reason not to add one? -- Jim C. Nasby, Database Consultant jim@nasby.net Member: Triangle Fraternity, Sports Car Club of America Give your computer some brain candy! www.distributed.net Team #1828 Windows: "Where do you...
5
5164
by: Soeren Gerlach | last post by:
Hello, I've an integer column in a certain table that I need to convert into a timestamp value to finally get a day difference to the current date. >From the manual it looks like straight forward, but the following line is a great mistery for me: SELECT to_timestamp(to_char(20041217, '9999 99 99'), 'YYYY MM DD') results in a timestamp...
6
6299
by: Scott Nixon | last post by:
New to Postgres 7.3 from 7.0. Am having some trouble with a query that worked in 7.0 but not in 7.3.....can't seem to figure out the syntax or find info about how to do this anywhere. Consider for the following query: - 'number' is an integer - 'procedures' is the table name - 'date' is a timestamp
7
6097
by: JJ | last post by:
How do I set one field to have the updated timestamp, and another to have the created timestamp? I want to do this directly from code generated from DB Designer if possible?! JJ
0
7890
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8316
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7926
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
8187
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6573
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
3812
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3837
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1418
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1149
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.