Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
slave_zero69
Starting Member
4 Posts |
Posted - 2004-12-28 : 02:51:55
|
| can someone please enlighten me on how do i insert or use a binary data typethe one i am using currently for my data base is time stampyour help will be much appreciated! |
|
|
Kristen
Test
22859 Posts |
Posted - 2004-12-28 : 12:52:14
|
| Can you give us an example of what you are trying to store?Kristen |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-12-28 : 13:31:28
|
| Do you mean the datatype timestamp?You don't (can't) insert that - it is automatically set by the server on data updates.you can retrieve it via a select and can set a binary(8) variable from it.==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
slave_zero69
Starting Member
4 Posts |
Posted - 2004-12-28 : 21:01:12
|
| but will this field also be created when i do an insert statement?or is it only on updates? and could u give me an example of how to use that select statement i tried select trxtime as binary(8) from trxTablethat didnt work so im kinda lost |
 |
|
|
nr
SQLTeam MVY
12543 Posts |
Posted - 2004-12-28 : 21:06:50
|
| If it is a timestamp rather than a datetime then it will be updated for an insert or update.For timesatamp it would be select trxtime = convert(binary(8),trxtime) from trxTablebutselect trxtime from trxTablewould be the same as it's already binary(8)==========================================Cursors are useful if you don't know sql.DTS can be used in a similar way.Beer is not cold and it isn't fizzy. |
 |
|
|
|
|
|