Results 1 to 4 of 4

Thread: C# timestamp datatype

  1. #1
    Join Date
    Apr 2009
    Posts
    17

    C# timestamp datatype

    HI,

    I want to know if there is any datatype in C# that allows return of timestamp? I'm accessing stored proc that expects a timestamp input parameter. Can anyone help me with this?

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: C# timestamp datatype

    Can you be more specific with your question? Have you tried the plain DateTime data type?

  3. #3
    Join Date
    Mar 2008
    Posts
    198

    Re: C# timestamp datatype

    A timestamp as in SQL timestamp? For your knowledge "timestamp" is the same as varbinary(8), just except for the automatic update behavior.

    The timestamp in SQL Server maps to a Byte[] type in .NET framework. byte[] - i.e. an array of bytes. It is not used as DateTime. If you just need to store date/time information, try to use datetime data type, it maps to a DateTime object in .NET framework. The SQL TimeStamp is fully based on insert / update order on your sql server.

  4. #4
    Join Date
    Dec 2008
    Posts
    1,108

    Re: C# timestamp datatype

    Refer to following links , see if they helps you:

    http://msdn.microsoft.com/en-us/library/ms182776.aspx
    http://msdn.microsoft.com/en-us/libr...8VS.71%29.aspx

    Hope this will hep.
    The difference between stupidity and genius is that genius has its limits. - Albert Einstein

    What we think, we become (Please don't think you are a superhero and don't try to fly)

    "SUCCESS IS NOT A DESTINATION , IT'S A JOURNEY"

Similar Threads

  1. Changing the entity of a datatype
    By GOOL in forum Software Development
    Replies: 6
    Last Post: 06-01-2011, 08:31 AM
  2. Change double datatype in parameter
    By ISAIAH in forum Software Development
    Replies: 5
    Last Post: 08-03-2010, 09:24 AM
  3. BLOB datatype in oracle database
    By Garlands in forum Software Development
    Replies: 4
    Last Post: 10-02-2010, 10:53 PM
  4. What is Timestamp in SQL?
    By Shekhar12 in forum Software Development
    Replies: 4
    Last Post: 30-11-2009, 10:02 AM
  5. DataType Decimal or double for Currency?
    By ArunJ in forum Software Development
    Replies: 4
    Last Post: 14-02-2009, 06:54 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,714,311,759.72107 seconds with 17 queries