You are here: Re: Load XML souce file to a SP parameter « MsSQL Server « IT news, forums, messages
Re: Load XML souce file to a SP parameter

Posted by Erland Sommarskog on 05/03/06 00:51

(viriyur@gmail.com) writes:
> I have a proc like this (T-SQL, SQL Server 2000):
>
> Alter Proc ImportXML
> @chvFullFileName varchar(200),
> @txtInputXML text=''
> AS
>
> My question is how can I load the contents of the XMLFile into the
> parameter called @txtInputXML ? Let us say my full file path is
> C:\XML\SampleXML.txt. I want to load this into parameter as one string
>
> What do I use ? bulkcopy or something else ?

From a client program read the file and then call the procedure.


--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se

Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация