Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.databases.ms-sqlserver > #843
| From | Erland Sommarskog <esquel@sommarskog.se> |
|---|---|
| Newsgroups | comp.databases.ms-sqlserver |
| Subject | Re: more about timestamp |
| Date | 2011-11-24 23:44 +0100 |
| Organization | Erland Sommarskog |
| Message-ID | <Xns9FA7F18408B66Yazorman@127.0.0.1> (permalink) |
| References | <4ece237f$0$284$14726298@news.sunsite.dk> |
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 ><Binary> 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
Back to comp.databases.ms-sqlserver | Previous | Next — Previous in thread | Find similar
more about timestamp "Tony" <johansson.andersson@telia.com> - 2011-11-24 11:19 +0100 Re: more about timestamp Erland Sommarskog <esquel@sommarskog.se> - 2011-11-24 23:44 +0100
csiph-web