Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Trying to set up a data service in VS2010 to use with linq to XML

Posted on 2011-03-19
5
Medium Priority
?
444 Views
Last Modified: 2012-05-11
I'm pretty lost here. I'm trying to setup a Visual Studio program to parse and store XML in a database. The XML is from embedded XMlL files in OpenOffice Word Documents.
I'm doing ok except with the parsing, etc, but getting the data into the database is a problem. The example I'm following says I need to add a server reference.

I'm not sure what database is best to use - compact model, edo, mdf, etc? I wasnt' sure even if SQL was working properly so I upgraded to 2008 r2.
The project no longer allows me to use the compact 3.5 database I had been using as the datasource for the Edo Model Entity object.

I know this is not clear, as I'm very new to this, but sure could use a little guidance.
thanks
0
Comment
Question by:jodyfaison
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
5 Comments
 
LVL 75

Accepted Solution

by:
käµfm³d   👽 earned 2000 total points
ID: 35174199
With respect, your question is a little convoluted. Can you break down the problem you are having and possibly post any code that is giving you problems?
0
 

Author Comment

by:jodyfaison
ID: 35174393
Yes, thank you kaufmed! "Convoluted" is being kind. ha.
Well. I've been trying all kinds of stuff, trying to learn this stuff.

I basically want to load an SQL database with XML data.
Let me just ask a few basic questions.
Is it ok to use in a VS 2010 project the SQL Server named after my machine? Server = PC-Jody ?

Also I've worked out a few things. I got SQLXML 4 sp1 loaded and in my SQL manager and have been able to create a table with a querry. So that's good. Now I'm trying to run a vbscript I found to upload bulk XML into a SQL server. It seems to be working ok, but it faullters as it doesn't like my connection string.
<objBL.ConnectionString = "provider=.NET Framework Data Provider for SQL Server;Data Source=JODY-PC;Initial Catalog=Briefs;Integrated Security=True"> I've attached the script.
ValidateAndBulkload.vbs
0
 

Author Comment

by:jodyfaison
ID: 35174423
Ok, I got a con. string to work and actually loaded data to a table. So now I'm going to try and adapt my tables to that example.
0
 

Author Comment

by:jodyfaison
ID: 35177117
Hey got that bulk loader to work. I'll check back when I can be more exact with a question. Thanks.
0
 

Author Closing Comment

by:jodyfaison
ID: 35177119
thanks
0

Featured Post

Prepare for your VMware VCP6-DCV exam.

Josh Coen and Jason Langer have prepared the latest edition of VCP study guide. Both authors have been working in the IT field for more than a decade, and both hold VMware certifications. This 163-page guide covers all 10 of the exam blueprint sections.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
This video Micro Tutorial is the first in a two-part series that shows how to create and use custom scanning profiles in Nuance's PaperPort 14.5 (http://www.experts-exchange.com/articles/17490/). But the ability to create custom scanning profiles al…

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question