473,396 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

convert .bak file into xml using c#

109 100+
Hi all,

I have a sql .bak file which i need to convert into xml file.

can someone help with this?

pointing out to some tutorial or some suggetion on how to start?

Thak you,
Nov 21 '08 #1
5 10024
balabaster
797 Expert 512MB
I hate to point to another site to give you the information, but there's a post here that may help:

http://stackoverflow.com/questions/156279?sort=oldest

I don't think you're going to find a way to do this directly - although I'd love to hear if you do. You will need to import the bak file into SQL Server / SQL Server Express and then you'll be able to export your tables to CSV using DTS.
Nov 21 '08 #2
arial
109 100+
hi all,

I am stuck with another problem now. I got my xml of my sql database using asp.net c#. but now one of my column hold logitutude value in varchar format like; 117088752, which I had to convert into degree decimal format and export into xml.



can someone help me on this?


Thank You,
Dec 3 '08 #3
balabaster
797 Expert 512MB
Is that not 117.088752 degrees?

If it's not, then I have no idea. What datum is that in? UTM11, NAD23, NAD83? I need more info.
Dec 4 '08 #4
arial
109 100+
Lat = 32788580 and Lon = 117097500

This is how I have long/latitude saved in my database table.

I need like this,

Lat --32.78858º
Long ---117.0975º .

I know this conversion but I don't know how can apply this conversion to each of my datarow and then put it into xml.

So, my xml file put longitude and latitude as shown below.
Expand|Select|Wrap|Line Numbers
  1. <Locationinfo>
  2. <id>1</id>
  3. <Latitude>32935665</Latitude>
  4.     <Longitude>117243797</Longitude>
  5. </Locationinfo>
  6.  
  7. <Locationinfo>
  8. <id>2</id>
  9. <Latitude>56935665</Latitude>
  10.     <Longitude>897243797</Longitude>
  11. </Locationinfo>
  12. etct...etc.
  13.  

And I need this value in xml like,


Expand|Select|Wrap|Line Numbers
  1. <Locationinfo>
  2. <id>1</id>
  3. <Latitude>32.78858º </Latitude>
  4.     <Longitude>17.78858º </Longitude>
  5. </Locationinfo>
  6.  
  7. <Locationinfo>
  8. <id>2</id>
  9. <Latitude>56.78858º </Latitude>
  10.     <Longitude>89.78858º </Longitude>
  11. </Locationinfo>
  12. etct...etc.
  13.  
Thank You.
Dec 4 '08 #5
Frinavale
9,735 Expert Mod 8TB
As Balabaster has already indicated, you need to know the algorithm you used to create these numbers in order to be able to format them the way you desire.

If you don't know this algorithm you'll never know if "1170975" is 1.170975, 11.70975, or 117.0975.

-Frinny
Dec 4 '08 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: hunterb | last post by:
I have a file which has no BOM and contains mostly single byte chars. There are numerous double byte chars (Japanese) which appear throughout. I need to take the resulting Unicode and store it in a...
1
by: Daniel | last post by:
I have looked everywhere on the web for an answer to this and the only thing I can find is converting the image format when the file is present on the local filesystem. What I want to do is use a...
5
by: Learner | last post by:
Hello, Here is the code snippet I got strucked at. I am unable to convert the below line of code to its equavalent vb.net code. could some one please help me with this? static public...
5
by: melickas | last post by:
We designed a custom application using Office Developer Tools '97 which included a Run-time version of Access--- so it would not matter if our customer even had any version of Access on their...
6
by: PenguinPig | last post by:
Dear All Experts I would like to know how to convert a HTML into Image using C#. Or allow me contains HTML code (parsed) in Image? I also tried this way but it just display the character "<" &...
5
by: bbb | last post by:
Hi, I need to convert XML files from Japanese encoding to UTF-8. I was using the following code: using ( FileStream fs = File.OpenRead(fromFile) ) { int fileSize = (int)fs.Length; int buffer...
6
by: tshad | last post by:
Apparently, I can't do: Dim da2 As New OleDb.OleDbDataAdapter("Select PR, Convert(varchar,getchar(),1),F1, F2, F5, Sum(F4) from temp .... I am getting this error. 'undefined function...
23
by: Carl K | last post by:
I need to take the take the pdf output from reportlab and create a preview image for a web page. so png or something. I am sure ghostscript will be involved. I am guessing PIL or ImageMagic ? ...
5
by: sonu | last post by:
hey good morning ...... how to convert a video file in .flv format in php for linux hosting......is there any package whis provide this facility . Can i use ffmpeg for linux hosting...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.