ActiveX info

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Pippen

    ActiveX info

    I'm getting a little confused about what is supported in MS-SQL ActiveX and
    what is Visual Basic and what is VBScript. Can someone please point me to a
    website, recommend a book or if I've missed it where in the MS-SQL help that
    deals with the ActiveX supported in SQL. I'm not looking to do web pages
    ASP, ect. I'm looking to use the ActiveX as add on funtionality to support
    the Stored Procs I write.

    Thanks,

    -p


  • Erland Sommarskog

    #2
    Re: ActiveX info

    Pippen (123@hotmail.co m) writes:[color=blue]
    > I'm getting a little confused about what is supported in MS-SQL ActiveX
    > and what is Visual Basic and what is VBScript. Can someone please point
    > me to a website, recommend a book or if I've missed it where in the
    > MS-SQL help that deals with the ActiveX supported in SQL. I'm not
    > looking to do web pages ASP, ect. I'm looking to use the ActiveX as add
    > on funtionality to support the Stored Procs I write.[/color]

    Personally I get confused only I see the term ActiveX. I think it is the
    same as OLE, but I might be completely wrong.

    Anyway, to call OLE objects from SQL Server you can use the sp_OAxxxx
    routines, documented in Books Online.

    Beware that if you call OLE objects that reside on the same machine as
    SQL Server, they execute in-process, which means that an access violation
    or similar execution error can cause the whole SQL Server to crash. While
    this is useful at times, it something to use with caution.


    --
    Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

    Books Online for SQL Server SP3 at
    Accelerate your AI application's time to market by harnessing the power of your own data and the built-in AI capabilities of SQL Server 2025, the enterprise database with best-in-class security, performance and availability.

    Comment

    • Pippen

      #3
      Re: ActiveX info


      "Erland Sommarskog" <esquel@sommars kog.se> wrote in message
      news:Xns959C1FC 09AB7Yazorman@1 27.0.0.1...[color=blue]
      > Pippen (123@hotmail.co m) writes:[color=green]
      >> I'm getting a little confused about what is supported in MS-SQL ActiveX
      >> and what is Visual Basic and what is VBScript. Can someone please point
      >> me to a website, recommend a book or if I've missed it where in the
      >> MS-SQL help that deals with the ActiveX supported in SQL. I'm not
      >> looking to do web pages ASP, ect. I'm looking to use the ActiveX as add
      >> on funtionality to support the Stored Procs I write.[/color]
      >
      > Personally I get confused only I see the term ActiveX. I think it is the
      > same as OLE, but I might be completely wrong.
      >
      > Anyway, to call OLE objects from SQL Server you can use the sp_OAxxxx
      > routines, documented in Books Online.
      >
      > Beware that if you call OLE objects that reside on the same machine as
      > SQL Server, they execute in-process, which means that an access violation
      > or similar execution error can cause the whole SQL Server to crash. While
      > this is useful at times, it something to use with caution.
      >
      >
      > --
      > Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
      >
      > Books Online for SQL Server SP3 at
      > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]

      After re-reading my post I did not make myself very clear... Please let me
      try again. I'm looking to find resources to write ActiveX code to support my
      stored procs ect... I'm confused on what the built in ActiveX compiler uses
      out of the VBScript language. All of the VBScript books I pick up look like
      they are written for web designers. I'm looking for a book or resource for
      writing code for the ActiveX compiler in MS-SQL.

      Sorry for the confusion,

      -p


      Comment

      • Dan Guzman

        #4
        Re: ActiveX info

        Like a lot of Microsoft technology terms, ActiveX is a bit nebulous. Here's
        a link to google definitions:


        The main concept is that ActiveX is a technology/API rather than a language.
        One can write a script in a language like VBScript and then execute it using
        SQL Server tools like a DTS ActiveX Script task, a SQL Server Agent ActiveX
        Script job step or using the sp_OA* procs that Erland mentioned. The script
        can also be run independently of SQL Server using Windows Scripting Host.

        What functionality do you need to implement?

        --
        Hope this helps.

        Dan Guzman
        SQL Server MVP

        "Pippen" <123@hotmail.co m> wrote in message
        news:ajUjd.4837 88$mD.296273@at tbi_s02...[color=blue]
        >
        > "Erland Sommarskog" <esquel@sommars kog.se> wrote in message
        > news:Xns959C1FC 09AB7Yazorman@1 27.0.0.1...[color=green]
        >> Pippen (123@hotmail.co m) writes:[color=darkred]
        >>> I'm getting a little confused about what is supported in MS-SQL ActiveX
        >>> and what is Visual Basic and what is VBScript. Can someone please point
        >>> me to a website, recommend a book or if I've missed it where in the
        >>> MS-SQL help that deals with the ActiveX supported in SQL. I'm not
        >>> looking to do web pages ASP, ect. I'm looking to use the ActiveX as add
        >>> on funtionality to support the Stored Procs I write.[/color]
        >>
        >> Personally I get confused only I see the term ActiveX. I think it is the
        >> same as OLE, but I might be completely wrong.
        >>
        >> Anyway, to call OLE objects from SQL Server you can use the sp_OAxxxx
        >> routines, documented in Books Online.
        >>
        >> Beware that if you call OLE objects that reside on the same machine as
        >> SQL Server, they execute in-process, which means that an access violation
        >> or similar execution error can cause the whole SQL Server to crash. While
        >> this is useful at times, it something to use with caution.
        >>
        >>
        >> --
        >> Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
        >>
        >> Books Online for SQL Server SP3 at
        >> http://www.microsoft.com/sql/techinf...2000/books.asp[/color]
        >
        > After re-reading my post I did not make myself very clear... Please let me
        > try again. I'm looking to find resources to write ActiveX code to support
        > my stored procs ect... I'm confused on what the built in ActiveX compiler
        > uses out of the VBScript language. All of the VBScript books I pick up
        > look like they are written for web designers. I'm looking for a book or
        > resource for writing code for the ActiveX compiler in MS-SQL.
        >
        > Sorry for the confusion,
        >
        > -p
        >[/color]


        Comment

        • Erland Sommarskog

          #5
          Re: ActiveX info

          Pippen (123@hotmail.co m) writes:[color=blue]
          > After re-reading my post I did not make myself very clear... Please let
          > me try again. I'm looking to find resources to write ActiveX code to
          > support my stored procs ect... I'm confused on what the built in ActiveX
          > compiler uses out of the VBScript language. All of the VBScript books I
          > pick up look like they are written for web designers. I'm looking for a
          > book or resource for writing code for the ActiveX compiler in MS-SQL.[/color]

          Since, as Dan said, no one really knows what ActiveX (save, possibly,
          for the marketers that invented the term), it may be easier if you told
          us what your business problem is.

          Now it sounds a bit like you are asking to access SQL Server from ActiveX.
          In such I assume that you use the ActiveX Data Objects, that is ADO. David
          Sceppa has a good book about ADO on Microsoft Press. It's a bit old, so I
          don't know how easy it is to get hold of.

          --
          Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

          Books Online for SQL Server SP3 at
          Accelerate your AI application's time to market by harnessing the power of your own data and the built-in AI capabilities of SQL Server 2025, the enterprise database with best-in-class security, performance and availability.

          Comment

          • Pippen

            #6
            Re: ActiveX info


            "Erland Sommarskog" <esquel@sommars kog.se> wrote in message
            news:Xns959C688 EF43EAYazorman@ 127.0.0.1...[color=blue]
            > Pippen (123@hotmail.co m) writes:[color=green]
            >> After re-reading my post I did not make myself very clear... Please let
            >> me try again. I'm looking to find resources to write ActiveX code to
            >> support my stored procs ect... I'm confused on what the built in ActiveX
            >> compiler uses out of the VBScript language. All of the VBScript books I
            >> pick up look like they are written for web designers. I'm looking for a
            >> book or resource for writing code for the ActiveX compiler in MS-SQL.[/color]
            >
            > Since, as Dan said, no one really knows what ActiveX (save, possibly,
            > for the marketers that invented the term), it may be easier if you told
            > us what your business problem is.
            >
            > Now it sounds a bit like you are asking to access SQL Server from ActiveX.
            > In such I assume that you use the ActiveX Data Objects, that is ADO. David
            > Sceppa has a good book about ADO on Microsoft Press. It's a bit old, so I
            > don't know how easy it is to get hold of.
            >
            > --
            > Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se
            >
            > Books Online for SQL Server SP3 at
            > http://www.microsoft.com/sql/techinf...2000/books.asp[/color]

            After doing a little more research I think what I'm looking for is a book or
            resource that deals with using VBScript in a DTS package to extend the
            functionality of the DTS package; namely the ActiveX task in the DTS
            package. Every book that I have picked up on VBScript deals primarliy with
            webpages.

            I have a process that needs to send and receive files that are encrypted
            with PGP on a daily basis. Each of the files have unique names so I will
            need to read tables to find the files that need to be processed. These files
            will be encrypted / decrypted in the VBScript and loaded or extracted from
            the DB. I would have used batch files (MS system) if not for the unique file
            names. Essentially I'm looking to increase my knowledge of using VBScript in
            an ActiveX task for this project and future projects.

            Sorry about the misuse of normenclature, SQL is not my primary language.

            Thanks,

            -p


            Comment

            • Erland Sommarskog

              #7
              Re: ActiveX info

              Pippen (123@hotmail.co m) writes:[color=blue]
              > After doing a little more research I think what I'm looking for is a
              > book or resource that deals with using VBScript in a DTS package to
              > extend the functionality of the DTS package; namely the ActiveX task in
              > the DTS package. Every book that I have picked up on VBScript deals
              > primarliy with webpages.[/color]

              I know very little about DTS, and even less about books on DTS. However,
              SQL Server MVPs Darren Green and Allen Mitchell runs www.sqldts.com, and
              you might find some good tips there.


              --
              Erland Sommarskog, SQL Server MVP, esquel@sommarsk og.se

              Books Online for SQL Server SP3 at
              Accelerate your AI application's time to market by harnessing the power of your own data and the built-in AI capabilities of SQL Server 2025, the enterprise database with best-in-class security, performance and availability.

              Comment

              Working...