Around and About .NET World

Il blog di Marco Minerva
posts - 1612, comments - 2154, trackbacks - 2144

My Links

News


Curriculum Vitae (ITA)

Curriculum Vitae (ENG)

Contattami su Live Messenger:


MCTS: Windows, Web, Distributed Applications & SQL Server

MCPD: Enterprise Applications

Tag Cloud

Archives

Post Categories

Links

venerdì 10 luglio 2009

Inserire dati nei campi VarBinary e Image da query SQL

Usando la funzione OPENROWSET è possibile inserire dati binari nei campi VarBinary o Image di un database di SQL Server usando una semplice query T-SQL:

INSERT INTO Files (Name, Content)
SELECT 'Prova.bmp', BulkColumn FROM OPENROWSET(BULK 'c:\noimage.bmp', SINGLE_BLOB) AS ImageLoad

Fonte: SQL Kit - Tips and Scripts for T-SQL, BI

Technorati Tag:

posted @ venerdì 10 luglio 2009 15.10 | Feedback (2) | Filed Under [ SQL Server ]

Powered by: