Importing data from multiple sheets in an excel file with same schema into single destination table in sql server

rated by 0 users
This post has 28 Replies | 3 Followers

Top 25 Contributor
Points 35

Has tried removed the $ in the '01$' too by the following code

 

Dts.Variables.Item(

 

"uvWorkSheet").Value = Dts.Variables.Item("uvWorkSheet").Value.ToString().Replace("$", ""

)

Still throws the following error

 

[EX_SRC Get Each WorkSheet Data [1]] Error: Opening a rowset for "'01'                                             " failed. Check that the object exists in the database.

 

 

  • | Post Points: 5
Top 25 Contributor
Points 35

FO your information......AM having Excel 2003 with SP 3 ....IS it anything to do with excel saving format too?...like 2.0,3.0.....any specification for this

  • | Post Points: 5
Top 25 Contributor
Points 35

Gotchaaaaaaaaaaaaaaaaaaaaaaaa   :)

 

   We have to remove the space in the sheet name.Use this code below in the script editor before assigning it to Dataflowtask which is inside the for loop ..

 

Dts.Variables.Item(

"uvWorkSheet").Value = Dts.Variables.Item("uvWorkSheet").Value.ToString().Trim()

Cheers

Vijay

       

 

  • | Post Points: 20
Top 10 Contributor
Male
Points 1.490

Sorry for the delay!

I was on vacations!

Congratulations for resolving the issue!

regards´,

pedro

  • | Post Points: 5
Page 2 of 2 (29 items) < Previous 1 2 | RSS