Search
 
SCRIPT & CODE EXAMPLE
 

SQL

read xml in sql server

CREATE TABLE PointsXML  -- Create table for raw XML file.
(  
Id INT IDENTITY PRIMARY KEY,  
XMLData XML,  
LoadedDateTime DATETIME  
)  
  
  
INSERT INTO PointsXML(XMLData, LoadedDateTime)  -- Insert xml data into table.
SELECT CONVERT(XML, BulkColumn) AS BulkColumn, GETDATE()   
FROM OPENROWSET(BULK 'C:PointsXML.xml', SINGLE_BLOB) AS x;  -- Read data from XML file.
  
  
SELECT * FROM PointsXML 
Comment

PREVIOUS NEXT
Code Example
Sql :: sql stored procedure with table parameter 
Sql :: How to find string in substring in sql server 
Sql :: oracle select json_table example 
Sql :: postgresql regex extract a word from string 
Sql :: ms sql print more than 1 variable 
Sql :: Add new column T-SQL 
Sql :: test sql query 
Sql :: nth highest salary in sql 
Sql :: sql query to create table in database 
Sql :: how to check which sp is running in sql server 
Sql :: sql script to remove default from column 
Sql :: how to import mysql database command line 
Sql :: select into insert sql server 
Sql :: execut sql python 
Sql :: bigquery timestamp 
Sql :: forcefully delete a row in mysql which has references 
Sql :: finish transaction sql 
Sql :: mysql select row with max value group by 
Sql :: how to open mysql in docker 
Sql :: sql group by 
Sql :: sql to c# model 
Sql :: alter table drop partition hive 
Sql :: mssql remove duplicate rows 
Sql :: how to check default value of column in sql server 
Sql :: delete insert record in sql server 
Sql :: forgot postgres password 
Sql :: devilbox mysqldump 
Sql :: azure sql get all users 
Sql :: mysql regex phone number 
Sql :: sql contains vs like 
ADD CONTENT
Topic
Content
Source link
Name
4+7 =