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

importing DB from another SQL server

Hello,

I need to set up a development platform at home with a copy
of a DB from a SQL server at a friend's company.
So far, all my attempts at backup/restore or export/import
have failed despite my reading all the documentation I
could find (I am a newbie).

Using DTS/Export wizard, I tried to export the DB first to a
plain text file, then to an excells file. After having gone
through all the screens, the export script runs. It
exported all the data for close to one hour, but at the end
I only get a 0kb empty text file, or 5kb empty excells
file.
Is there a feature on SQL server preventing export (such as
for security reasons)? Then why would the export wizard run
for so long, just to output nothing?

Since it's only for developement, I don't need the latest
data yet, so I burned on CD the .bak backup files
previously made, but I couldn't import nor restore them on
the other machine. Depending on what I tried, I had various
error messages, like
* an improper login and password (which should this be: that
of the owner of the DB on the source SQL server, or that of
the SQL admin or windows admin on the target server?),
* an error saying that the backup doesn't belong to the
empty DB I try to restore to...
* I even managed to import a mydbname.bak.dns file with the
DTS wizard (apparently it was a backup of an Access DB, not
the SQL Server DB I need), but the import script runs
apparently smoothly for a while, but then the target DB
didn't contain any of the imported tables, only the sys
tables.

For the last several weeks, I have tried everything I could
think of, read the docs, but still I am at a loss as to how
to import or make a copy on my system of the BD from the
office.

What would be the proper procedure to import/restore the
copies of the backup I have burnt on CD into my fresh
install of W2000/SP1 + SQL Server 2000?
Failing that, I can go back to my friend's office and try
again to export the data, but how do I make sure I don't
end up with an empty file?

thank you,

Anguo.

--

http://www.masquilier.org/
Condorcet, Approval alternative, better voting methods.

http://www.gnosis-usa.com/
Revolutionary Psychology, White Tantrism, Dream Yoga...

http://www.reuniting.info/
Intimate Relationships, peace and harmony in the couple.

Jul 23 '05 #1
3 2092

"anguo" <li****************@masquilier.org> wrote in message
news:cv***********@news.giga.net.tw...
Hello,

I need to set up a development platform at home with a copy
of a DB from a SQL server at a friend's company.
So far, all my attempts at backup/restore or export/import
have failed despite my reading all the documentation I
could find (I am a newbie).

Using DTS/Export wizard, I tried to export the DB first to a
plain text file, then to an excells file. After having gone
through all the screens, the export script runs. It
exported all the data for close to one hour, but at the end
I only get a 0kb empty text file, or 5kb empty excells
file.
Is there a feature on SQL server preventing export (such as
for security reasons)? Then why would the export wizard run
for so long, just to output nothing?

Since it's only for developement, I don't need the latest
data yet, so I burned on CD the .bak backup files
previously made, but I couldn't import nor restore them on
the other machine. Depending on what I tried, I had various
error messages, like
* an improper login and password (which should this be: that
of the owner of the DB on the source SQL server, or that of
the SQL admin or windows admin on the target server?),
* an error saying that the backup doesn't belong to the
empty DB I try to restore to...
* I even managed to import a mydbname.bak.dns file with the
DTS wizard (apparently it was a backup of an Access DB, not
the SQL Server DB I need), but the import script runs
apparently smoothly for a while, but then the target DB
didn't contain any of the imported tables, only the sys
tables.

For the last several weeks, I have tried everything I could
think of, read the docs, but still I am at a loss as to how
to import or make a copy on my system of the BD from the
office.

What would be the proper procedure to import/restore the
copies of the backup I have burnt on CD into my fresh
install of W2000/SP1 + SQL Server 2000?
Failing that, I can go back to my friend's office and try
again to export the data, but how do I make sure I don't
end up with an empty file?

thank you,

Anguo.


Check out this KB article:

http://support.microsoft.com/default...b;en-us;314546

The easiest solution would probably be to backup then restore the database -
this is described in the article. You don't need to restore to an existing
database, as you can create a new database when you restore - just give the
new name in the Enterprise Manager restore dialogue box, or see example E
under "RESTORE" in Books Online.

Simon
Jul 23 '05 #2
Simon Hayes wrote:
Check out this KB article:

http://support.microsoft.com/default...b;en-us;314546
The easiest solution would probably be to backup then
restore the database - this is described in the article.
You don't need to restore to an existing
database, as you can create a new database when you
restore - just give the new name in the Enterprise Manager
restore dialogue box, or see example E under "RESTORE" in
Books Online.

Simon


Thank you Simon,

I am looking into it right now.

Anguo.


--

http://www.masquilier.org/
Condorcet, Approval alternative, better voting methods.

http://www.gnosis-usa.com/
Revolutionary Psychology, White Tantrism, Dream Yoga...

http://www.reuniting.info/
Intimate Relationships, peace and harmony in the couple.

Jul 23 '05 #3
I've also found that software from Red-Gate.com is very useful once you
get the 2 copies of the database both up. You can make changes to
devel and then apply them to the production server.

Jul 23 '05 #4

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

Similar topics

4
by: Little PussyCat | last post by:
Hello, I nee to write something that will transfer excel data into an SQL Server table. I have for another database application I wrote have it importing Excel spreadsheet data using cell by...
0
by: Daryl Zavier | last post by:
Hi Gurus, Please forgive me if my question is dumb cause this is my first web application I've done. Currently in my web application there is a button to click which will fire off a DTS event...
2
by: Sara | last post by:
Hi - I've been reading the posts for a solution to my query, and realize that I should ask an "approch" question as well. We receive our production data from a third party, so my uers import...
29
by: Natan | last post by:
When you create and aspx page, this is generated by default: using System; using System.Collections; using System.Collections.Specialized; using System.Configuration; using System.Text; using...
4
by: Roy | last post by:
Could someone point me in the right direction here? The current method of importing new data into our db goes something like this: 1.) txt files received via email 2.) employees clean data and...
11
by: panic attack | last post by:
Hello everbody, Our system is using Sql Server 2000 on Windows XP / Windows 2000 We have a text file needs to be imported into Sql Server 2000 as a table. But we are facing a problem which is,...
1
by: penny111 | last post by:
Hi there, I've migrated a database named "crime" from an MS Access database to MySQL 5.0.37 using the MySQL Migration Toolkit 1.1.11. What i want to do is to copy the database folder from ...
4
by: Chloe C | last post by:
Hi I've got an Ingres database of some 200 tables which I need to import every night into SQL Server 2005 for use by Reporting Services. Most of the tables will come across unchanged (a few need...
0
by: upadhyayanuj | last post by:
Hi I have an error while uploading file and then importing it into my sql table The process cannot access the file 'c:\inetpub\wwwroot\FlowLine\Excel File\Fan_Details.xls' because it is being...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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...

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.