How to import an XML file into SQL Server 2012 -


i have xml file want import sql server 2012. haven't done before , don't know lot. after research, tried open xml file following command run in sql server management studio.

select cast(x xml) openrowset( bulk 'c:\bulk\users_test1111.xml', single_blob ) x   

for following error:

msg 4861, level 16, state 1, line 1 cannot bulk load because file "c:\bulk\users_test1111.xml" not opened. operating system error code 3(the system cannot find path specified.). 

what suggest file database?

i'm guessing you're having same issue am. of commands used load file using sql server require file on actual db server itself. if you're running sql server management studio different machine, you'll have issue.


Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -