I have inserted 5000 records using datatype varchar but now,
I want to Change Datatype varchar to Date?
can I change this datatype?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
YaminiKumar Boyapati127 reputationPosted Mar 3, 2020, 5:30 PM EST
Piyush PansuriyaRank #454 · 5.5K reputationPosted Jan 30, 2020, 5:19 AM EST
Amit GuptaRank #190 · 12.8K reputationPosted Jan 30, 2020, 5:59 AM EST
Bhawna TutejaRank #2,418 · 584 reputationPosted Feb 11, 2020, 5:39 PM EST
Jaimin ShethiyaRank #177 · 13.7K reputationPosted Mar 4, 2020, 9:40 PM EST
Yes you have to change that
first you have to convert varchar value to datetime value and update that is same property and after converted all the data then you have to update that column datatype to datetime.
Thanks
Jignesh KumarRank #91 · 22.9K reputationPosted Mar 4, 2020, 11:13 PM EST
Ajay GohilRank #2,370 · 599 reputationPosted Feb 25, 2021, 11:18 PM EST
Amira BedhiafiRank #601 · 4K reputationPosted Feb 26, 2021, 5:18 AM EST
Rijwan AnsariRank #82 · 24.2K reputationPosted Feb 26, 2021, 1:30 PM EST
ALTER TABLE dbo.tablename ADD newcol DATETIME;