Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello

i want to pass the content of xml file to a database using stored procedure.

it should be such that i should pass the location of the xml file to stored procedure and the corresponding records should get filled.

please help me out in this. :) can also provide a related alternative if possible
Posted

You need to pass the XML data to the stored procedure, and in SQL Server, specify a XML parameter in the stored procedure prototype. Google is your friend.
 
Share this answer
 
 
Share this answer
 
gr8.. it worked but now i am getting this error

You do not have permission to use the bulk load statement.

how should i enable this permission?
 
Share this answer
 
Comments
Toniyo Jackson 9-Dec-10 6:25am    
Try this,
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=110466
Sandeep Mewara 9-Dec-10 8:55am    
Use 'Add Comment' feature to respond to an answer.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900