SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 XML newbie
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

igorblackbelt
Constraint Violating Yak Guru

USA
407 Posts

Posted - 11/21/2006 :  09:54:14  Show Profile  Click to see igorblackbelt's MSN Messenger address  Reply with Quote
Guys -
I'm a totally newbie on xml, I've been involved in a project where I'll need to query and import data from xml files into sql 2000 tables, can anyone tell me what steps to take or links that will help me understand more about xml ?

Are there any tools on dts designer that allows me to load xml data directly into a sql table ?


---
"There's no sexy way to carry a lunch bag." My boss

X002548
Not Just a Number

15586 Posts

Posted - 11/21/2006 :  10:06:09  Show Profile  Reply with Quote
got some sample data?

There'sa a boatload of info in books online, for exampl


CREATE PROC sp_insert_employee @empdata ntext 
AS 
       DECLARE @hDoc int 
    EXEC sp_xml_preparedocument @hDoc OUTPUT, @empdata 
    INSERT INTO Employee 
      SELECT * 
      FROM OPENXML(@hDoc, '/Employee') 
            WITH Employee 
     EXEC sp_xml_removedocument @hDoc 



But I have no experience here, nor have found any reason to obtain any



Brett

8-)

Hint: Want your questions answered fast? Follow the direction in this link
http://weblogs.sqlteam.com/brettk/archive/2005/05/25/5276.aspx

Add yourself!
http://www.frappr.com/sqlteam



Go to Top of Page

snSQL
Flowing Fount of Yak Knowledge

USA
1837 Posts

Posted - 11/21/2006 :  10:06:17  Show Profile  Reply with Quote
This is the best summary of all your options that I've seen.
http://www.yukonxml.com/articles/sql2000xml/

Edited by - snSQL on 11/26/2008 01:12:41
Go to Top of Page

igorblackbelt
Constraint Violating Yak Guru

USA
407 Posts

Posted - 11/21/2006 :  10:31:04  Show Profile  Click to see igorblackbelt's MSN Messenger address  Reply with Quote
X002548 -
No data yet, seems like they're trowing me the easy stuff, it'll be a data from a survey that will be stored on a xml file.

snSQL -
That link is pretty sweet, the "DTS ActiveX Script & SQLXML 3.0 Bulk Load" section might do what I need.


---
"There's no sexy way to carry a lunch bag." My boss
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.09 seconds. Powered By: Snitz Forums 2000