Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All

In my application i want to keep a button. On clicking this button an openfiledialog box appears and the user can provide excel, pdf or word files. The file then should be saved to the database. For my application I am using a sql ce db for saving data. Please tell me how to do this and please suggest if i should use sql db instead of sql ce db to upload files.

This is a windows application and not a web page.

Please someone help!!
Posted
Updated 7-Oct-10 21:22pm
v2

1 solution

for uploading an excellsheet..u neet a query..and on that query u have to mension the current path of excel sheet..
see following query if this helpful you...

select
* Into Tablename from openrowset ('Microsoft.Jet.OLEDB.4.0' ,'Excel 8.0;Database=excellsheet path,Select * from [Sheetname$])
hope this useful to u...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900