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. T-SQL Help

T-SQL Help

Scheduled Pinned Locked Moved Database
databasehelpquestion
9 Posts 4 Posters 0 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.
  • H Offline
    H Offline
    Hulicat
    wrote on last edited by
    #1

    SQL 2000 8.00.2039 I am trying to write a backup from SQL (.bak), compress it then insert into a database. Can someone help me with the framework of this operation? Any input is greatly appreciated. Regards,

    Regards, Hulicat

    C 1 Reply Last reply
    0
    • H Hulicat

      SQL 2000 8.00.2039 I am trying to write a backup from SQL (.bak), compress it then insert into a database. Can someone help me with the framework of this operation? Any input is greatly appreciated. Regards,

      Regards, Hulicat

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Hulicat wrote:

      Can someone help me with the framework of this operation?

      What do you mean by "framework" in the current context?


      Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

      H 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Hulicat wrote:

        Can someone help me with the framework of this operation?

        What do you mean by "framework" in the current context?


        Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

        H Offline
        H Offline
        Hulicat
        wrote on last edited by
        #3

        Sorry I should have been more specific. I am trying to accomplish the aformentioned operation via T-SQL. The only way I have seen is via C# or ASP. What would the T-SQL look like to achieve the goal of compressing a .bak file then storing the file in the database? Could I execute a backup, compress it, then drop in the db as a blob?

        Regards, Hulicat

        C 1 Reply Last reply
        0
        • H Hulicat

          Sorry I should have been more specific. I am trying to accomplish the aformentioned operation via T-SQL. The only way I have seen is via C# or ASP. What would the T-SQL look like to achieve the goal of compressing a .bak file then storing the file in the database? Could I execute a backup, compress it, then drop in the db as a blob?

          Regards, Hulicat

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Hulicat wrote:

          Could I execute a backup, compress it, then drop in the db as a blob?

          Yes. You could use BACKUP, xp_cmd (and call out to a zip application), but I'm not sure how to get it back in the database as I usually do that from within a C# application.


          Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

          H 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Hulicat wrote:

            Could I execute a backup, compress it, then drop in the db as a blob?

            Yes. You could use BACKUP, xp_cmd (and call out to a zip application), but I'm not sure how to get it back in the database as I usually do that from within a C# application.


            Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

            H Offline
            H Offline
            Hulicat
            wrote on last edited by
            #5

            It looks like it have to be C3

            Regards, Hulicat

            C 1 Reply Last reply
            0
            • H Hulicat

              It looks like it have to be C3

              Regards, Hulicat

              C Offline
              C Offline
              Colin Angus Mackay
              wrote on last edited by
              #6

              Hulicat wrote:

              It looks like it have to be C3

              :confused:


              Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

              H 1 Reply Last reply
              0
              • C Colin Angus Mackay

                Hulicat wrote:

                It looks like it have to be C3

                :confused:


                Upcoming FREE developer events: * Glasgow: Agile in the Enterprise Vs. ISVs, db4o: An Embeddable Database Engine for Object-Oriented Environments, Mock Objects, SQL Server CLR Integration, Reporting Services ... My website

                H Offline
                H Offline
                Hulicat
                wrote on last edited by
                #7

                C#

                Regards, Hulicat

                P 1 Reply Last reply
                0
                • H Hulicat

                  C#

                  Regards, Hulicat

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  Colin and I are from the UK. The 3 key has the £ sign and not the # sign here.:-D

                  Deja View - the feeling that you've seen this post before.

                  S 1 Reply Last reply
                  0
                  • P Pete OHanlon

                    Colin and I are from the UK. The 3 key has the £ sign and not the # sign here.:-D

                    Deja View - the feeling that you've seen this post before.

                    S Offline
                    S Offline
                    Steven J Jowett
                    wrote on last edited by
                    #9

                    Pete O`Hanlon wrote:

                    The 3 key has the £ sign

                    It's not a sign, it's a symbol. How picky am I? ;P

                    Steve Jowett ------------------------- Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'

                    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