Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Problem with SSIS 2012

Problem with SSIS 2012

Scheduled Pinned Locked Moved Database
databasesql-serverhelpc++visual-studio
15 Posts 4 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A amioni

    Hello everyone, I have a problem with my SSIS 2012, if I put in made ​​a OLDBE Source with a complex query or composite sample AS WITH TT ( SELECT DISTINCT e.UniqueID e. [Web Id] from Elements e) SELECT DISTINCT * 'Class' + CAST (ROW_NUMBER () OVER (PARTITION BY [Web Id] ORDER BY [class] DESC) AS NVARCHAR) AS ClassNum from TT I have this error: Exception From HRESULT: 0xC0202009 Error at Get Products SSIS Error Code DTS_E_OLEBDERROR. A OLE DB error has occured. Error code: 0x80004005 An OLE DB record is available. Source "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax Error, permission violation, or nonspecific Reviews another error" see Exhibit attached Note that this same package works wonders on my colleague's machine with vs 2010 I do not understand the error!!

    Richard DeemingR Offline
    Richard DeemingR Offline
    Richard Deeming
    wrote on last edited by
    #2

    This is an English-language forum. Please post your questions in English. Il s'agit d'un forum de langue anglaise. S'il vous plaît envoyer vos questions en anglais. https://translate.google.com/[^]


    "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

    "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

    A 1 Reply Last reply
    0
    • Richard DeemingR Richard Deeming

      This is an English-language forum. Please post your questions in English. Il s'agit d'un forum de langue anglaise. S'il vous plaît envoyer vos questions en anglais. https://translate.google.com/[^]


      "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

      A Offline
      A Offline
      amioni
      wrote on last edited by
      #3

      done

      1 Reply Last reply
      0
      • A amioni

        Hello everyone, I have a problem with my SSIS 2012, if I put in made ​​a OLDBE Source with a complex query or composite sample AS WITH TT ( SELECT DISTINCT e.UniqueID e. [Web Id] from Elements e) SELECT DISTINCT * 'Class' + CAST (ROW_NUMBER () OVER (PARTITION BY [Web Id] ORDER BY [class] DESC) AS NVARCHAR) AS ClassNum from TT I have this error: Exception From HRESULT: 0xC0202009 Error at Get Products SSIS Error Code DTS_E_OLEBDERROR. A OLE DB error has occured. Error code: 0x80004005 An OLE DB record is available. Source "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax Error, permission violation, or nonspecific Reviews another error" see Exhibit attached Note that this same package works wonders on my colleague's machine with vs 2010 I do not understand the error!!

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #4

        Is your package running as a SQL Agent job? You might need to change the permissions on the TEMP directory: http://support.microsoft.com/kb/933835[^]


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        A 1 Reply Last reply
        0
        • A amioni

          Hello everyone, I have a problem with my SSIS 2012, if I put in made ​​a OLDBE Source with a complex query or composite sample AS WITH TT ( SELECT DISTINCT e.UniqueID e. [Web Id] from Elements e) SELECT DISTINCT * 'Class' + CAST (ROW_NUMBER () OVER (PARTITION BY [Web Id] ORDER BY [class] DESC) AS NVARCHAR) AS ClassNum from TT I have this error: Exception From HRESULT: 0xC0202009 Error at Get Products SSIS Error Code DTS_E_OLEBDERROR. A OLE DB error has occured. Error code: 0x80004005 An OLE DB record is available. Source "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax Error, permission violation, or nonspecific Reviews another error" see Exhibit attached Note that this same package works wonders on my colleague's machine with vs 2010 I do not understand the error!!

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #5

          amioni wrote:

          e.UniqueID e. [Web Id] from Elements

          I am not seeing a comma between the two columns you reference, is that correct?

          “That which can be asserted without evidence, can be dismissed without evidence.”

          ― Christopher Hitchens

          A 1 Reply Last reply
          0
          • G GuyThiebaut

            amioni wrote:

            e.UniqueID e. [Web Id] from Elements

            I am not seeing a comma between the two columns you reference, is that correct?

            “That which can be asserted without evidence, can be dismissed without evidence.”

            ― Christopher Hitchens

            A Offline
            A Offline
            amioni
            wrote on last edited by
            #6

            it s just an example of a query so dont worry it s with comma in my package, and it s not the problem

            1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming

              Is your package running as a SQL Agent job? You might need to change the permissions on the TEMP directory: http://support.microsoft.com/kb/933835[^]


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              A Offline
              A Offline
              amioni
              wrote on last edited by
              #7

              i run it from VS2012 so i dont know if it s with sql agent or not (beginner ) and where i can find Temp directory

              Richard DeemingR 1 Reply Last reply
              0
              • A amioni

                i run it from VS2012 so i dont know if it s with sql agent or not (beginner ) and where i can find Temp directory

                Richard DeemingR Offline
                Richard DeemingR Offline
                Richard Deeming
                wrote on last edited by
                #8

                If you're running it from Visual Studio, then it's not using SQL Agent, so that's probably not the problem. There seem to be lots of potential causes for that error message:

                • Having RetainSameConnection set to True on your OLEDB source[^];
                • Out-of-date metadata in the package[^];
                • Having Persist Security Info=False in your connection string[^].
                • Output parameters[^];
                • Etc.[^];

                "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

                A 1 Reply Last reply
                0
                • Richard DeemingR Richard Deeming

                  If you're running it from Visual Studio, then it's not using SQL Agent, so that's probably not the problem. There seem to be lots of potential causes for that error message:

                  • Having RetainSameConnection set to True on your OLEDB source[^];
                  • Out-of-date metadata in the package[^];
                  • Having Persist Security Info=False in your connection string[^].
                  • Output parameters[^];
                  • Etc.[^];

                  "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

                  A Offline
                  A Offline
                  amioni
                  wrote on last edited by
                  #9

                  all of this properties are Ok and as i said this same package works wonders on my colleague's machine with vs 2010 i dont think it s a problem with connection string or else

                  1 Reply Last reply
                  0
                  • A amioni

                    Hello everyone, I have a problem with my SSIS 2012, if I put in made ​​a OLDBE Source with a complex query or composite sample AS WITH TT ( SELECT DISTINCT e.UniqueID e. [Web Id] from Elements e) SELECT DISTINCT * 'Class' + CAST (ROW_NUMBER () OVER (PARTITION BY [Web Id] ORDER BY [class] DESC) AS NVARCHAR) AS ClassNum from TT I have this error: Exception From HRESULT: 0xC0202009 Error at Get Products SSIS Error Code DTS_E_OLEBDERROR. A OLE DB error has occured. Error code: 0x80004005 An OLE DB record is available. Source "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax Error, permission violation, or nonspecific Reviews another error" see Exhibit attached Note that this same package works wonders on my colleague's machine with vs 2010 I do not understand the error!!

                    G Offline
                    G Offline
                    GuyThiebaut
                    wrote on last edited by
                    #10

                    Always read the error message - Syntax Error, permission violation, or nonspecific Reviews another error There is either: An error in the sql - you can check this by running the sql in isolation. A permission issue - harder to track, I would test this by creating a simple SSIS package and try to run it from your code. Non specific error - eliminate the first two possibilities then look into this.

                    “That which can be asserted without evidence, can be dismissed without evidence.”

                    ― Christopher Hitchens

                    A 1 Reply Last reply
                    0
                    • G GuyThiebaut

                      Always read the error message - Syntax Error, permission violation, or nonspecific Reviews another error There is either: An error in the sql - you can check this by running the sql in isolation. A permission issue - harder to track, I would test this by creating a simple SSIS package and try to run it from your code. Non specific error - eliminate the first two possibilities then look into this.

                      “That which can be asserted without evidence, can be dismissed without evidence.”

                      ― Christopher Hitchens

                      A Offline
                      A Offline
                      amioni
                      wrote on last edited by
                      #11

                      NB : when i make this query in Stored procedure and i call it in the oledb source it work fine but not when i make it directly

                      G J 2 Replies Last reply
                      0
                      • A amioni

                        NB : when i make this query in Stored procedure and i call it in the oledb source it work fine but not when i make it directly

                        G Offline
                        G Offline
                        GuyThiebaut
                        wrote on last edited by
                        #12

                        I don't understand what that means - I will need more information to be able to help you.

                        “That which can be asserted without evidence, can be dismissed without evidence.”

                        ― Christopher Hitchens

                        1 Reply Last reply
                        0
                        • A amioni

                          NB : when i make this query in Stored procedure and i call it in the oledb source it work fine but not when i make it directly

                          J Offline
                          J Offline
                          jschell
                          wrote on last edited by
                          #13

                          amioni wrote:

                          NB : when i make this query in Stored procedure and i call it in the oledb source it work fine but not when i make it directly

                          A user (database) can have different permissions based on direct sql versus stored procs.

                          A 1 Reply Last reply
                          0
                          • J jschell

                            amioni wrote:

                            NB : when i make this query in Stored procedure and i call it in the oledb source it work fine but not when i make it directly

                            A user (database) can have different permissions based on direct sql versus stored procs.

                            A Offline
                            A Offline
                            amioni
                            wrote on last edited by
                            #14

                            i am working with sa user (dev pc)

                            1 Reply Last reply
                            0
                            • A amioni

                              Hello everyone, I have a problem with my SSIS 2012, if I put in made ​​a OLDBE Source with a complex query or composite sample AS WITH TT ( SELECT DISTINCT e.UniqueID e. [Web Id] from Elements e) SELECT DISTINCT * 'Class' + CAST (ROW_NUMBER () OVER (PARTITION BY [Web Id] ORDER BY [class] DESC) AS NVARCHAR) AS ClassNum from TT I have this error: Exception From HRESULT: 0xC0202009 Error at Get Products SSIS Error Code DTS_E_OLEBDERROR. A OLE DB error has occured. Error code: 0x80004005 An OLE DB record is available. Source "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Syntax Error, permission violation, or nonspecific Reviews another error" see Exhibit attached Note that this same package works wonders on my colleague's machine with vs 2010 I do not understand the error!!

                              A Offline
                              A Offline
                              amioni
                              wrote on last edited by
                              #15

                              hi, i answer myself because i found the solution: with sql server native client 10 we can't add param with subquery but this problem is resolved with SQL native client 11 (sql server 2012) thank you ;) ;) ;)

                              1 Reply Last reply
                              0
                              Reply
                              • Reply as topic
                              Log in to reply
                              • Oldest to Newest
                              • Newest to Oldest
                              • Most Votes


                              • Login

                              • Don't have an account? Register

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • World
                              • Users
                              • Groups