![]() | ![]() |
|
01-26-2012 11:31 AM
I am needing to have a form that allows the user to browse to the location of the excel spreadsheet and then upload the data from one sheet into a sqlserver table..
Has anyone been here before? Any advice v.helpful as at the moment all I can see is a large chunck of code to try and emulate this.
Thanks
01-26-2012 12:55 PM
I have not done this, but I would think one approach would be:
- Use a standard Attachment Clip in a MBPM form
- Have a Visual Script "When Action Completed" for the action that:
- Uses the Document "Get Attachment" to save that attachment somewhere on the MBPM Server
- Use a Commands "Code Activity" to have C# code insert that spreadsheet into the database. Here is an example.
01-27-2012 04:51 AM - last edited on 01-27-2012 09:45 AM
Thanks for the link.... I couldn't see the option to copy from excel into the Database, so I wouldn't mind some steer there.
Also in the examples you poimted me towards uses the using statement which I beleive cannot be used in the scripting screens.
02-11-2012 06:20 AM
Hello Everyone,
I'm facing one problem since last night. Actually I want to import data in SQL Server from different file format such as csv, txt, sql etc. So I want to know whether any option in SQL Server to perform such kind of actions or I have to use any third party tool to resolve this problem. Please give me your valuable suggestion.
Thanks in advance!
02-12-2012 06:23 AM
02-12-2012 06:26 AM
02-15-2012 04:39 AM
You can use the using statement. It may be easier to create a separate Server Script to do your coding in.
![]() |
![]() |
![]() |
|
|
![]() |
![]() |
![]() |
















