I have two tables.
NEW [contains data] [all columns are varchar]
NEW2 [empty table] [columns are of different data types]
I want to copy all data from New to New2.
What i did is,
SELECT T.*
INTO #tmp
FROM (SELECT *
FROM [dbo].[new]) AS T
then
INSERT INTO New2(col1, col2....)
SELECT *
FROM #TMP
But its not working.
Msg 242, Level 16, State 3, Line 2
The conversion of a varchar data type to a smalldatetime data type resulted in an out-of-range value.
The statement has been terminated.
[what I want is to change the column data types of NEW table, especially the varchar to smalldatetime. So I tried this way. Any other approach is also welcome.]
Any help would be greatly appreciated.
Thank You.