The Code-Bin
Links
Home
Add your code!
All Listings
About
Latest Entry
Featured Scripts
Author's Website
Latest Entries
FFMPEG Thumbnail Scr...
PHP, 0.8KB
Jul. 29, 10:24pm
John
Z80 Assembler, 190 bytes
Feb. 17, 3:36am
John
Z80 Assembler, 176 bytes
Sep. 13, 2:19am
John
Z80 Assembler, 77 bytes
Sep. 13, 2:18am
John
Z80 Assembler, 209 bytes
Sep. 13, 2:17am
untitled PHP Code
Posted by: temp | June 12, 2009 @ 7:46am
PHP Code
[
Download
]
declare @txt nvarchar(4000) declare @tunniste int select @txt=CONVERT(nvarchar(4000),data) from xleffat exec sp_xml_preparedocument @tunniste output, @txt SELECT * INTO Leffat FROM OPENXML(@tunniste,'//ELOKUVA',2) WITH( id char(5) '@ELOKUVAID', suomeksi varchar(60) 'LEFFANIMI/@SUOMEKSI', alkuperainen varchar(60) 'LEFFANIMI/@ALKUPERAINEN', ikaraja int 'IKARAJA', ohjaaja varchar(60) 'TEKIJAT/OHJAAJA' ) exec sp_xml_removedocument @tunniste select * from leffat drop table leffat declare @doc XML set @doc = (select * from openrowset(BULK 'c:\leffat.xml', SINGLE_CLOB) as xmlData) declare @tunniste int declare @txt nvarchar(4000) set @txt=CONVERT(nvarchar(4000),@doc) exec sp_xml_preparedocument @tunniste output, @txt SELECT * INTO Leffat FROM OPENXML(@tunniste,'//ELOKUVA',2) WITH( id char(5) '@ELOKUVAID', suomeksi varchar(60) 'LEFFANIMI/@SUOMEKSI', alkuperainen varchar(60) 'LEFFANIMI/@ALKUPERAINEN', ikaraja int 'IKARAJA', ohjaaja varchar(60) 'TEKIJAT/OHJAAJA' ) exec sp_xml_removedocument @tunniste
Syntax Highlighting
[
Open in new window
]
Author Comments
temp
Rating
4.38 / 8
120 Votes