home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.databases.ms-sqlserver      Notorious Rube Goldberg contraption      19,505 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 18,527 of 19,505   
   Erland Sommarskog to Tony   
   Re: more about timestamp   
   24 Nov 11 23:44:31   
   
   From: esquel@sommarskog.se   
      
   Tony (johansson.andersson@telia.com) writes:   
   > One strange thing when I add a timestamp column to a table and then   
   > changed some rows and then made a select in the Server explorer that   
   > exist in VS I didn't see any values in this timestamp column. It showed   
   > only this   
   > in the timestamp column.   
   > But if I instead used the same select from within SQL Server Management   
   > studio I can see values like 0x0000000000001F43   
   > Can somebody why a select on the timestamp give different result beween   
   > Server explorer and SQL Server Management studio   
      
   For some reason Visual Studio prefers to censor your data. You will   
   have to ask the VS people about why. Just remember: what you see in a   
   GUI is just a visuall representation.   
      
   > So how do I define the timestamp parameter RowTimestamp to get rid of this   
   > error ?   
      
   With the .AddParameters method on the SqlCommand object. Exactly   
   how you do that in ASP .Net I don't know, since I don't know ASP .Net.   
   You will need to ask in a ASP .Net forum.   
      
   But so much is clear:   
      
      
   > The first parameter ProductID is fetched from the DropDownList control   
   > ddlProducts so that was easy.   
      
   In the long run you cannot write applications only by pointing and   
   clicking in GUIs. That will only take you so far.   
      
   --   
   Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se   
      
   Links for SQL Server Books Online:   
   SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx   
   SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca