code_junkie

CSV (or sheet in XLS) to SQL create (and insert) statements with .Net?

Nov 10th, 2011
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. SELECT * INTO NewTablenNmeHere
  2. FROM OPENROWSET( 'Microsoft.Jet.OLEDB.4.0',
  3. 'Excel 8.0;Database=C:testing.xls','SELECT * FROM [Sheet1$]')
Add Comment
Please, Sign In to add comment