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 |
|
Jsolomon
Starting Member
13 Posts |
Posted - 2010-11-30 : 11:02:35
|
| I have tableA that i would like to pull data from in insert into TableB they are the same but i would like to have a column in tableB that puts the date that the records was added. I have tried SSIS, a query "insert into" nothing is working. I created tableB from tableA and added a column called "archivedate" with the default value of GETDATE() and DATATYPE of Smalldatetime. I think I have something wrong with the new column in TableB but not sure what.Jeff |
|
|
pk_bohra
Master Smack Fu Yak Hacker
1182 Posts |
Posted - 2010-11-30 : 11:21:25
|
| you specified default as GetDate() ?You can also use TimeStamp datatype. |
 |
|
|
pk_bohra
Master Smack Fu Yak Hacker
1182 Posts |
Posted - 2010-11-30 : 11:29:33
|
quote: I think I have something wrong with the new column in TableB but not sure what.
Can you be more specific. Whether the column in Table B is empty or having wrong date ? |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-12-01 : 12:33:30
|
| unless we see what you tried i dont think we will be able to point out what you're doing wrong------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/ |
 |
|
|
|
|
|