Author |
Topic |
ellgk
Starting Member
9 Posts |
Posted - 2008-10-07 : 05:43:49
|
hello to everyoneI have created a package that is exporting data from sql to excel file, this procedure will run in a daily base, for that reason i need to updating the data (in excel) and not to add them again.Is there any method that i can delete the excel and recreate it again? (in a package)or is there a code that i can write to my package in order to update specific fields with selection criterias?does anyone knows how to do it?help! pleasethankseli |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-07 : 06:09:51
|
you can update specific fields in excel using OPENROWSET. have a look at books online for details. |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-10-07 : 07:06:42
|
quote: Originally posted by visakh16
quote: Originally posted by madhivanan Examples are herehttp://www.sqlteam.com/forums/topic.asp?TOPIC_ID=49926MadhivananFailing to plan is Planning to fail
ah forgot the famous link. Sorry Madhi
No Problem MadhivananFailing to plan is Planning to fail |
|
|
ellgk
Starting Member
9 Posts |
Posted - 2008-10-09 : 04:48:41
|
Thanks you to all.These was very usefullyI have another problem now, after the exporting that i made to exceli have to protect some columns from the users hence I protect some columns but everytime that im executing the package an error is displayed telling me that i cant update these columns.what can i do?any idea?regardseli |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-10-09 : 05:18:01
|
quote: Originally posted by ellgk Thanks you to all.These was very usefullyI have another problem now, after the exporting that i made to exceli have to protect some columns from the users hence I protect some columns but everytime that im executing the package an error is displayed telling me that i cant update these columns.what can i do?any idea?regardseli
if you want to protect it from users why export them at all? export only required columns to excel |
|
|
ellgk
Starting Member
9 Posts |
Posted - 2008-10-09 : 05:49:04
|
The records are appearing as : id. decription. id2. value.(input value)it's nessesary to export all data of the table into excel. The users have to know all these data in order to change the value.thankseli |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-10-09 : 06:05:18
|
quote: Originally posted by ellgk Thanks you to all.These was very usefullyI have another problem now, after the exporting that i made to exceli have to protect some columns from the users hence I protect some columns but everytime that im executing the package an error is displayed telling me that i cant update these columns.what can i do?any idea?regardseli
what do you mean by protecting the columns?MadhivananFailing to plan is Planning to fail |
|
|
ellgk
Starting Member
9 Posts |
Posted - 2008-10-09 : 08:54:36
|
there is an option in excel that you can protect your data,to be more specific if you select this option you can't edit the data.its something like display mode.i used this selection for 2 colums in my excel file in order to not prohibit users making changes.thankseli |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-10-10 : 04:58:17
|
quote: Originally posted by ellgk there is an option in excel that you can protect your data,to be more specific if you select this option you can't edit the data.its something like display mode.i used this selection for 2 colums in my excel file in order to not prohibit users making changes.thankseli
If the cells are protected then you cant update themMadhivananFailing to plan is Planning to fail |
|
|
ellgk
Starting Member
9 Posts |
Posted - 2008-10-17 : 03:37:35
|
I cant remove unprotect function only for updating because i want to prohibit users making changes.Is there any idea how to do this?thankseli |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2008-10-17 : 05:22:17
|
quote: Originally posted by ellgk I cant remove unprotect function only for updating because i want to prohibit users making changes.Is there any idea how to do this?thankseli
Post your question at EXCEL related forumsMadhivananFailing to plan is Planning to fail |
|
|
|