954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Help with INSERT

I have this INSERT

INSERT INTO BLOBTest
(BLOBName, BLOBData)
SELECT 'First test file',
BulkColumn FROM OPENROWSET(
Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB

I want to add id, but it returns a mistake

something like:

INSERT INTO BLOBTest
(id , BLOBName, BLOBData)
/if write "1," it returns a syntax error/
SELECT 'First test file',
BulkColumn FROM OPENROWSET(
Bulk 'C:\temp\nextup.jpg', SINGLE_BLOB) AS BLOB

Please help meHE

CrazyMisho
Newbie Poster
9 posts since Jan 2010
Reputation Points: 10
Solved Threads: 0
 

Make ID an auto-increment integer and a required key and it will fill the field in for you without having to insert it.

rch1231
Posting Shark
959 posts since Sep 2009
Reputation Points: 119
Solved Threads: 142
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You