[ For English Click Here ]

  • XML2SQL Hakkında

 XML2SQL, dışarıdan gelen XML dökümanlarını SQL Server 2000 veri tabanlarına ithal etmeyi sağlayan bir araçtır.

 XML2SQL, kullanıcılara bir grafik arabirim sağlar ve kullanıcının hazırladığı XML kaynağını, SQL Server 2000'in içindeki fonksiyonları kullanarak veri tabanına ithal eder, böylece kullanıcının kod yazma süreci ile uğraşmasına gerek kalmaz.

  • Sistem Gereksinimleri

 XML2SQL, MDAC kurulu her hangi bir Windows sisteminde problemsiz çalışabilir.Windows 98 ve sonrasında MDAC kurulu olarak gelmektedir, ancak bazı ilk sürüm Windows 98'lerde, ayrıca Windows NT ve Windows 95 sistemlerde MDAC'ı elle yüklemek (ve bundan önce başka bazı güncellemeleri yapmak) gerekmektedir.Bu güncellemeler için gerekli bilgi Microsoft'un web sitesinde bulunabilir.

  • XML2SQL Kullanımı

    XML Kaynağını Hazırlamak

 Menüden; Dosya->XML Aç'a tıklayarak bir geçerli XML dökümanı seçiniz.Döküman yüklendikten sonra, XML şeması yüklenecektir.

 Şemadan istediğiniz alanları seçerek istediğiniz sırada sıralayınız, dökümanı varolan bir tabloya ithal ediyorsanız seçtiğiniz alanların sıralamasının tablodaki alan sıralamasına uymasına dikkat ediniz.

SQL Server Sunucusuna Bağlanmak

 Bir sunucu adı belirttikten sonra geçerli bir kullanıcı belirterek sunucuya bağlanınız:

  • Windows Yetkilendirmesi ile bağlanmak istiyorsanız, Kullanıcı Adı ve Şifre alanlarını boş bırakınız.
  • Sunucuda tanımlı bir kullanıcı adı ile bağlanmak istiyorsanız geçerli bir kullanıcı adı ve parola belirtiniz.

Hedef Tablo veya Bakışı Belirlemek

 Başarılı bir sunucu bağlantısından sonra Veritabanı alanı sunucuda erişilebilen veri tabanlarının isimleri ile doldurulacaktır.Buradan bir veri tabanı seçildiğinde yan tarafındaki alanda erişilebilen tablo ve bakış adları belirecektir.

 Varolan bir tablo veya bakış seçildiğinde hazırlanan XML kaynağı bu hedefe ithal edilecektir, yeni bir isim belirttiğinizde ise SQL Server bu isimde bir tablo yaratarak veriyi bu tabloya ithal edecektir.

  • Telif ve Lisans

 XML2SQL tamamiyle ücretsizdir, programın üzerinde değişiklik yapmadan ve programın dağıtımından ticari kazanç elde etmeden istediğiniz gibi kullanabilir ve dağıtabilirsiniz.

[ Türkçe İçin Tıklayın ]

  • About XML2SQL

 XML2SQL is a tool for importing XML documents into tables or views in SQL Server 2000 databases.It depends on XML importing routines of SQL Server 2000.

 XML2SQL provides user a GUI, so it eliminates code writing process of importing XML data into SQL Server databases.By using XML2SQL, users easily formats XML data, selects destination database, and specify whether data will be imported into a new table or an existing table/view.

  • System Dependencies

 XML2SQL can work on any Windows client with MDAC 2.0 or higher installed, which includes Windows 98 and later.Only, Windows 95, Windows NT 4.0 and some oldest distributions of Windows 98 does not come with MDAC installed, so you have to download MDAC and some other updates from Microsoft and be able to use XML2SQL without problem.

 XML2SQL does not use ODBC, so you don't need to create a DSN for the server, however normally, you must have permission to connect to database.

  • Using XML2SQL

    Preparing XML Source

 Choose File->Open XML from the menu and select a valid XML document in the dialog box.After a valid file is selected, schema of XML document is loaded into a tree-view on left side of program main window.

 Double clicking node, or selecting -> button, when a text or an attribute node is selected opens another dialog, so that you can specify data type -and if available field size- of the field in SQL Server.After you confirm data type, the node is added to the listbox on the right side.

 After you add more fields, if you want you can move the fields to sort them in a different order, using Up and Dn buttons.Also double clicking field item, or clicking <- button, removes that field from listbox.

 You must sort the fields in right order if you import document into an existing table or view.

Connecting to SQL Server

 First; specify a server -or an instance- name in Server: field (If you wish to connect to a local instance, you can leave Server: field blank).After that you must choose authorization method:

  1. If you wisht to connect using Windows Authorization, just leave User: and Password: fields blank.
  2. If you wish to connect by a user name, supply correct login information in User: and Password: fields.

 After these, click Connect button to connect to SQL Server.After you connect, a list of names of databases on the server will be retrieved and filled into Database: combo.

Selecting Target View or Table

 After a successfull connect, Database: combo will be filled with names of available databases on the server.You must select a database to see the list of tables and views on that database.

 After selecting database, the Table or View: combo will be filled with names of tables and views on that database.You can select an existing table or view, or specify a new table name.

 If you select an existing table or view, XML data is imported into that table or view.Specifying a new table name, forces SQL Server to create a new table and import XML data into that table.

  • License

 XML2SQL is freeware.You can freely use and distribute full, unrestricted version without time limit or any other restrictions.However, selling XML2SQL is not allowed.