Wrox Programmer Forums
|
BOOK: Professional Microsoft SQL Server 2008 Programming
This is the forum to discuss the Wrox book Professional Microsoft SQL Server 2008 Programming by Robert Vieira; ISBN: 9780470257029
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional Microsoft SQL Server 2008 Programming section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 19th, 2010, 02:32 AM
Authorized User
 
Join Date: Jul 2006
Posts: 73
Thanks: 11
Thanked 1 Time in 1 Post
Thumbs down Problem!

What is wrong? in this code:
CREATE TABLE BLOBTest
(
BLOBID int IDENTITY NOT NULL,
BLOBData varbinary(max) NOT NULL
)
GO
INSERT INTO BLOBTest(BLOBData)
SELECT * FROM OPENROWSET(BULK N’D:\find_x.jpg', SINGLE_BLOB) as DSCN0022.jpg
 
Old May 19th, 2010, 07:41 AM
Authorized User
 
Join Date: Jul 2006
Posts: 73
Thanks: 11
Thanked 1 Time in 1 Post
Smile It's O.K.

<?xml version="1.0"?> <BCPFORMAT xmlns="http://schemas.microsoft.com/sqlserver/2004/bulkload/format" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <RECORD> <FIELD ID="1" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="10" COLLATION="SQL_Latin1_General_CP1_CI_AS"/> <FIELD ID="2" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="12"/> <FIELD ID="3" xsi:type="CharTerm" TERMINATOR="\t" MAX_LENGTH="100" COLLATION="SQL_Latin1_General_CP1_CI_AS"/> <FIELD ID="4" xsi:type="CharTerm" TERMINATOR="\r\n" MAX_LENGTH="41"/> </RECORD> <ROW> <COLUMN SOURCE="1" NAME="EmpID" xsi:type="SQLVARYCHAR"/> <COLUMN SOURCE="2" NAME="EmpAge" xsi:type="SQLINT"/> <COLUMN SOURCE="3" NAME="EmpDept" xsi:type="SQLVARYCHAR"/> <COLUMN SOURCE="4" NAME="EmpSalary" xsi:type="SQLDECIMAL" PRECISION="18" SCALE="0"/> </ROW> </BCPFORMAT>









Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.