About 18,000,000 results
Open links in new tab
  1. Inserting Binary Data - SQLServerCentral

    Feb 13, 2009 · There are a number of articles on dealing with the insertion of binary data into SQL Server using BULK INSERT, OPENROWSET, and even Java. However I saw someone asking recently how to...

  2. sql server - How can I insert binary file data into a binary SQL

    Jul 13, 2009 · You would need a CLR stored procedure to do this in SQL Server 2005/2008 or an extended stored procedure (but I'd avoid that at all costs unless you have to) which takes the filename and then inserts the data (or returns the byte string, but that can possibly be quite long).

  3. binary and varbinary (Transact-SQL) - SQL Server | Microsoft Learn

    Nov 22, 2024 · Convert binary and varbinary data. When converting data from a string data type to a binary or varbinary data type of unequal length, SQL Server pads or truncates the data on the right. These string data types are: char; varchar; nchar; …

  4. sql server - Insert String Value To Binary(64) Column - Database ...

    Nov 23, 2018 · I am attempting to use a stored procedure to insert data into a table. The DDL of my table is like this: [ID] [int] IDENTITY(1,1) NOT NULL, [fname] [varchar](100) NOT NULL, [lname] [varchar](100) NOT NULL, [phone] [varchar](10) NULL, [company] [varchar](100) NOT NULL, [email] [varchar](100) NOT NULL, [pass] [binary](64) NOT NULL,

  5. Insert binary files to SQL server using BULK operation

    Jul 11, 2009 · Performing BULK operations with SQL can be useful when you are trying to insert any type of file. Don’t mess up with the complex code, just use a simple SQL query to insert any file type in SQL table. To perform this operation first you …

  6. BINARY - SQL Tutorial

    In SQL, the BINARY data type is used to store binary data in a fixed-length format. Binary data is data that is composed of only 0s and 1s, such as machine code or encrypted data. The BINARY data type is similar to the VARBINARY data type, which is …

  7. Binary and VarBinary Data Types in SQL Server - Tektutorialshub

    Aug 27, 2021 · Binary, Varbinary & Varbinary(max) are the binary string data types in SQL Server. These data types are used to store raw binary data up to a length of (32K – 1) bytes. The contents of image files (BMP, TIFF, GIF, or JPEG format files), word files, text files, etc. are examples of binary data.

  8. Insert varbinary data into SQL Server database - Stack Overflow

    Sep 10, 2015 · Use a VARCHAR(n) with a suitable size of n, or if you really must (only if you REALLY must), use VARCHAR(MAX) NUM_TRF int, NAME varchar(255), DESCRIPTION varchar(1000), REPORT varbinary(max) I would personally also avoid writing EVERYTHING IN ALL CAPS - this just makes it so much harder to read!

  9. Read and Write Binary Files with the SQL Server CLR

    Apr 1, 2011 · The BinaryReader class reads primitive data types as binary values; it has a number of methods like ReadBoolean, ReadDecimal, ReadInt32, ReadSingle, ReadString, etc., for reading specific data types, and also a method called Read which reads characters one by one from the underlying stream.

  10. Inserting Binary Data - Voice of the DBA

    Feb 17, 2013 · There are a number of articles on dealing with the insertion of binary data into SQL Server using BULK INSERT, OPENROWSET, and even Java. However I saw someone asking recently how to insert data dynamically and thought that was an interesting question.

Refresh