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. How to Edit & Read binary data on SQL 2005

How to Edit & Read binary data on SQL 2005

Scheduled Pinned Locked Moved Database
helpdatabasegame-devtoolstutorial
4 Posts 2 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.
  • J Offline
    J Offline
    jdfgdg
    wrote on last edited by
    #1

    My friends & I have a problem with our one of the table of our SQL Data... One of our Table Column shows like this when we view it in sql : ChaInvent We dont know how to read & edit inside that CharInvent..?? That ChaInvent has all the information we need because that is place where are all the Inventory on the Game of the Character stored like weapons, armors, potion, ..etc..haysss..Any Help here? Are there any script or program that can read & interpret those data readable by Human?? I tried to search all the Info here but NO LUCK...

    T 1 Reply Last reply
    0
    • J jdfgdg

      My friends & I have a problem with our one of the table of our SQL Data... One of our Table Column shows like this when we view it in sql : ChaInvent We dont know how to read & edit inside that CharInvent..?? That ChaInvent has all the information we need because that is place where are all the Inventory on the Game of the Character stored like weapons, armors, potion, ..etc..haysss..Any Help here? Are there any script or program that can read & interpret those data readable by Human?? I tried to search all the Info here but NO LUCK...

      T Offline
      T Offline
      topcatalpha
      wrote on last edited by
      #2

      you always get binary data when running a select. It depends on the client how to process it, mostly it becomes a array of bytes. You can show it by storing it to file or convert it to strings to show it in a memo or listbox. You probably used the sql studio manager for viewing data, this is not showing you binary data. greetz kurt

      J 1 Reply Last reply
      0
      • T topcatalpha

        you always get binary data when running a select. It depends on the client how to process it, mostly it becomes a array of bytes. You can show it by storing it to file or convert it to strings to show it in a memo or listbox. You probably used the sql studio manager for viewing data, this is not showing you binary data. greetz kurt

        J Offline
        J Offline
        jdfgdg
        wrote on last edited by
        #3

        ...."You can show it by storing it to file or convert it to strings to show it in a memo or listbox"... How?? we don't know, Please Help us...

        T 1 Reply Last reply
        0
        • J jdfgdg

          ...."You can show it by storing it to file or convert it to strings to show it in a memo or listbox"... How?? we don't know, Please Help us...

          T Offline
          T Offline
          topcatalpha
          wrote on last edited by
          #4

          Or you can write a program in you're language. for example C# or build a query like this..

          EXEC master.dbo.sp\_configure 'show advanced options',1		RECONFIGURE
          EXEC master.dbo.sp\_configure 'xp\_cmdshell', 1		RECONFIGURE
          
          declare @query varchar(500)
          set @query = 'BCP "SELECT \* FROM YourTable" queryout "C:\\YourTable.txt" -c -T -C850 -S(local)\\SQLEXPRESS -Usa -Psa'
          
          EXEC master..xp\_cmdshell @query
          
          EXEC master.dbo.sp\_configure 'xp\_cmdshell', 0
          RECONFIGURE		EXEC master.dbo.sp\_configure 'show advanced options', 0
          RECONFIGURE
          

          Be sure you're sql server has rights to write on the HD. (set local system account of you're SQL service) greetz Kurt

          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