473,395 Members | 1,869 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,395 software developers and data experts.

Generate .SQL file

Hello,

I'm a junior in c# development, and would like to know how to generate
the .SQL files from my development system (database), so that I can
execute them on another system (from MSSQL to Oracle database)

I'm looking for a way to extract and create the 'CREATE TABLE... and
INSERT INTO...' statements, and how to process the created .sql file.

Thank you for your feedback!
Dirk

Nov 17 '05 #1
4 1833
Locusta,

If you have an oracle OLE-DB provider installed on your machine, you
could easily use Data Transformation Services in SQL Server to just do this
for you. You won't have to write any code at all.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Locusta" <lo***********@gmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
Hello,

I'm a junior in c# development, and would like to know how to generate
the .SQL files from my development system (database), so that I can
execute them on another system (from MSSQL to Oracle database)

I'm looking for a way to extract and create the 'CREATE TABLE... and
INSERT INTO...' statements, and how to process the created .sql file.

Thank you for your feedback!
Dirk

Nov 17 '05 #2
In SQL Enterprise Manager, right - click the node for the database you want
to "export", choose "All Tasks" from the context menu, then "export data" and
follow the wizard for the options you need. Be advised that the Transact Sql
it generates may not be 100% Oracle PL/SQL compatible, it may need to be
"tweaked". This assumes SQL Server 2000.
Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Locusta" wrote:
Hello,

I'm a junior in c# development, and would like to know how to generate
the .SQL files from my development system (database), so that I can
execute them on another system (from MSSQL to Oracle database)

I'm looking for a way to extract and create the 'CREATE TABLE... and
INSERT INTO...' statements, and how to process the created .sql file.

Thank you for your feedback!
Dirk

Nov 17 '05 #3
Hello all,

I'm using the Google reply function, this is not my pc.

Thank you for the feedback, I'm currently running my database on
MSDE2000, so I don't have a lot of tools ;)

Any suggestions on how I can do this under this free database?

Cheers,
D.

Nov 18 '05 #4
Some time ago, I used the SqlAdmin .NET assembly from the MS Web Data
Administrator Web app (a very nice web-based Enterprise manager clone) to
build a winforms - based SQL Database export utility.

Here's the link to that article, with source code download:

http://www.eggheadcafe.com/articles/20040913.asp

Peter

--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Locusta" wrote:
Hello all,

I'm using the Google reply function, this is not my pc.

Thank you for the feedback, I'm currently running my database on
MSDE2000, so I don't have a lot of tools ;)

Any suggestions on how I can do this under this free database?

Cheers,
D.

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Tim:. | last post by:
Hi Can someone tell me how I generate a new XML file that I can then use with an XSLT file. I am trying to use an XML file generated from Microsoft Project or even better generate an XML file from...
0
by: Almoni | last post by:
Hi, I have a few .xsd files that include each other in the following way: <!-- lets call the main schema file AA.xsd and it includes BB.xsd inside it --> <xs:schema...
4
by: Stephen | last post by:
I need to generate input XML for another application by serialising classes defined in an XSD document. The code below will generate the XML I require but I need to generate this in memory rather...
2
by: PeterW | last post by:
I have an xml file from which I want to generate an xsd schema and at a later stage a cs class. The xml file has a mix of defined namespaces and also an empty namespace. These are defined as...
0
by: ward | last post by:
Greetings. Ok, I admit it, I bit off a bit more than I can chew. I need to complete this "Generate Report" page for my employer and I'm a little over my head. I could use some additional...
6
by: comp.lang.php | last post by:
/** * Generate the random security image * * @access public * @param $willUseFilePath (default false) boolean to determine if you will be using a file path * @param mixed $filePath (optional)...
13
by: vm98123 | last post by:
Hi, could someone please give me a clue to this one: I do have an xml-File and an xslt-File so that a browser can display the xml-file. What I am trying to do is convert this to pdf or...
82
by: robert bristow-johnson | last post by:
here is a post i put out (using Google Groups) that got dropped by google: i am using gcc as so: $ gcc -v Using built-in specs. Target: i386-redhat-linux Configured with: ../configure...
2
by: bthubbard | last post by:
This may not be the best group in which to post this. If there is a better location please direct me there. I have been experimenting with Sandcastle to generate CHM help file documentation for...
23
by: Geoff Cox | last post by:
Hello, Is it possible to use php to generate different menus for users who have access to files in different folders? For example, user Fred might be able to access files in folders A, B and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.