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.
Hi,before going to write procedure - i just want to check with you if it already exists; so i don't reinvent the wheel :)procedure would read data from a table and create text:
INSERT INTO table1 SELECT 12,'JOHN' UNION ALLSELECT 13,'JEFF' UNION ALLSELECT 15,'ANN'
where exists table1 columns (ID, NAME).so it's reverse idea of writing insert into statements, i would generate this text on existing table with data.:-)