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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Binary data with scripts...

Binary data with scripts...

Scheduled Pinned Locked Moved Database
databasetoolsquestion
2 Posts 1 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.
  • C Offline
    C Offline
    Chinners
    wrote on last edited by
    #1

    Hi, I dont know if this is possible, but I'll ask anyway. I need to be able to send an SQL script as a text file, or something similar. The script will be modifying a few columns, and inserting a few new rows. Nothing too complictated.... However... I am using SqlCE 3.5, so the commandset is slightly reduced, and, worst of all, one of the fields is an Image (i.e. Binary). Its not huge, most records are about 1k, however, it has thrown a bit of a spanner in the works for my simple script idea. So, I guess I am asking, is there a reasonably simple way to script a database which contains binary data? Thanks, Jason

    C 1 Reply Last reply
    0
    • C Chinners

      Hi, I dont know if this is possible, but I'll ask anyway. I need to be able to send an SQL script as a text file, or something similar. The script will be modifying a few columns, and inserting a few new rows. Nothing too complictated.... However... I am using SqlCE 3.5, so the commandset is slightly reduced, and, worst of all, one of the fields is an Image (i.e. Binary). Its not huge, most records are about 1k, however, it has thrown a bit of a spanner in the works for my simple script idea. So, I guess I am asking, is there a reasonably simple way to script a database which contains binary data? Thanks, Jason

      C Offline
      C Offline
      Chinners
      wrote on last edited by
      #2

      Replying to my own question... I must be sad :o) Anyway, it was easy... after a lot of googling:

      insert into [Table] (Field) Values (0x1232132132)

      I am a bit ashamed that I missed that. Posted here in case someone else needed it.

      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