Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


GamerOC

439 posts

Ultimate Geek


#136270 21-Nov-2013 10:49
Send private message

Microsoft Visual Studio 2012, hi geekzone and thanks for reading this post.
Im currently studying at Ucol database design and development but im at beginner level at the moment.
I have learnt to make database and tables plus how to enter data into database, however I would like to know if someone could please help me:
I want to import a xml format database base on Endnote program and into the Microsoft Visual Studio database but i cant figured out.



thanks again and have a nice week.

Create new topic
TwoSeven
1630 posts

Uber Geek

Subscriber

  #938417 21-Nov-2013 11:22
Send private message

Do you mean you want to write a program to do the import or do you just want to open have the database import data from the XML file.

For the second technique, this can be done through SQL Server Management console. However, using Visual Studio is very similar.

In Visual Studio (I am using VS2012 for this example), in your solution open the SQL Server Object Explorer [Ctrl \ Ctrl S] and then connect to your SQL server, select navigate to your database and select your table (you can view the data in the table here).

From the SQL menu at the top of the screen, select transact sql editor, this will open a T-SQL console (it may prompt you to login first). You can then write T-SQL script to do the import. Something like:

DECLARE @someXML XML
SELECT @someXML = .... (I believe OPENROWSET is the command).. You can google this example to find out the exact syntax.




Software Engineer
   (the practice of real science, engineering and management)
A.I.  (Automation rebranded)
Gender Neutral
   (a person who believes in equality and who does not believe in/use stereotypes. Examples such as gender, binary, nonbinary, male/female etc.)

 

 ...they/their/them...




GamerOC

439 posts

Ultimate Geek


  #938436 21-Nov-2013 12:18
Send private message

For now im just trying to import the data from a database based EndNote xml format to my SQL database. is all the code from the Endnote Database in one file.

Later on when more confident with writing the code i will see if i can attempt to develop a software that can do that for me.




thank you so much for your reply this may be exactly the solution to my problem,

I highly appreciated that you replied to my post,


thanks again




Andrew

Ragnor
8223 posts

Uber Geek

Trusted

  #938517 21-Nov-2013 16:31
Send private message

Yeah basically you read the file with OPENROWSET then either store it in table variable, temp table or table then process that table to extract the columns and rows.

http://stackoverflow.com/questions/16838627/import-xml-into-sql-server

http://www.mssqltips.com/sqlservertip/2899/importing-and-processing-data-from-xml-files-into-sql-server-tables/



TwoSeven
1630 posts

Uber Geek

Subscriber

  #938655 21-Nov-2013 20:57
Send private message

GamerOC: For now im just trying to import the data from a database based EndNote xml format to my SQL database. is all the code from the Endnote Database in one file.

Later on when more confident with writing the code i will see if i can attempt to develop a software that can do that for me.




thank you so much for your reply this may be exactly the solution to my problem,

I highly appreciated that you replied to my post,


thanks again




Andrew


No worries, Its good to see that you are taking the time to learn Visual Studio before writing the code.  There is a lot of good productivity to be had by learning to use ones toolset effectively and maximise its value and I come across a lot of developers who only really know how to open and save code files.





Software Engineer
   (the practice of real science, engineering and management)
A.I.  (Automation rebranded)
Gender Neutral
   (a person who believes in equality and who does not believe in/use stereotypes. Examples such as gender, binary, nonbinary, male/female etc.)

 

 ...they/their/them...


GamerOC

439 posts

Ultimate Geek


  #938714 21-Nov-2013 22:47
Send private message

Ragnor, thank you so much for the very useful links. these links are like gold to me now and just what i was looking by using OPENROWSET.


TwoSeven, thank you so much for giving me the idea to use OPENROWSET and also for your feedback in regards my approach to learning Visual Studio 2012.


I hope one day to be able to make some neat software solutions.


thanks again,



Andrew

Create new topic





News and reviews »

Gen Threat Report Reveals Rise in Crypto, Sextortion and Tech Support Scams
Posted 7-Aug-2025 13:09


Logitech G and McLaren Racing Sign New, Expanded Multi-Year Partnership
Posted 7-Aug-2025 13:00


A Third of New Zealanders Fall for Online Scams Says Trend Micro
Posted 7-Aug-2025 12:43


OPPO Releases Its Most Stylish and Compact Smartwatch Yet, the Watch X2 Mini.
Posted 7-Aug-2025 12:37


Epson Launches New High-End EH-LS9000B Home Theatre Laser Projector
Posted 7-Aug-2025 12:34


Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.