Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
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.
can u check whats wrong with this code database expertsINSERT INTO TIME_DIM (TIME_ID) VALUES ('3') (SELECT COLUMN5 FROM SPREADSHEET2 WHERE TIME_ID = '1');the error is missing expression thanks PLEASE HELP ASAP
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts
Posted - 2011-01-04 : 14:00:41
You're mixing the two forms of insert.Insert is eitherINSERT INTO ...VALUES ...OrINSERT INTO ...SELECT ...Not a mixture of both,--Gail ShawSQL Server MVP