dbTalk Databases Forums  

Problem importing data with SQL

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss Problem importing data with SQL in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
powerpoint@powerpoint.com.mt
 
Posts: n/a

Default Problem importing data with SQL - 11-25-2004 , 11:35 AM






I have a problem importing data with SQL. I want to transfer data from one SQL server to another. Apparently I only managed to transfer data when the new table is empty. I am choosing Append data to existing table but this is not working for me.
What am I doing wrong?


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Reply With Quote
  #2  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-25-2004 , 01:49 PM






Are you using the Transfer Objects task?

Drop this task and have a look at the following article. although it is
not SQL Server to SQL Server the pronciple if is the same

Building a Package in the DTS Designer
(http://www.sqldts.com/default.aspx?278)



powerpoint (AT) powerpoint (DOT) com.mt wrote:
Quote:
I have a problem importing data with SQL. I want to transfer data from one SQL server to another. Apparently I only managed to transfer data when the new table is empty. I am choosing Append data to existing table but this is not working for me.
What am I doing wrong?


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
--


Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


Reply With Quote
  #3  
Old   
powerpoint@powerpoint.com.mt
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-25-2004 , 02:52 PM



Yes, I am using DTS Import/Export Data.
Funilly enough I manage to transfer data when there is nothing in the new table.
If there is already some date in the new table, it will not allow data to be updated in the table and instead creates a new table with the $ sign.
This is the first time I am using SQL.


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Reply With Quote
  #4  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-25-2004 , 03:47 PM



With the $ symbol?

You would seem to be moving data from Excel right?

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Joe" <powerpoint (AT) powerpoint (DOT) com.mt> wrote

Quote:
Yes, I am using DTS Import/Export Data.
Funilly enough I manage to transfer data when there is nothing in the new table.
If there is already some date in the new table, it will not allow data to be updated in the table and instead creates a new table
with the $ sign.
This is the first time I am using SQL.


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...



Reply With Quote
  #5  
Old   
powerpoint@powerpoint.com.mt
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-26-2004 , 02:12 PM



Yes indeed. I first copy data onto excell for some modifications and then move data onto the new server.
I get primary contstraints error sometimes.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Reply With Quote
  #6  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-27-2004 , 03:09 AM



OK

Follow the article I sent you to create a package. The data source used is in the main not really relevant when we are just
starting out.

PK errors.

Look at the destination/Ask the DBA about the Primary Key attributes on the table. Now have a look at your spreadsheet and you
should be able to look through the same attributes there nd spot the problems. You cannt have duplicate values across a PK
constraint.

Personally I would look to import the spreadsheet into a working table and then use TSQL to do the UPDATE, INSERT , DELETE.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Joe" <powerpoint (AT) powerpoint (DOT) com.mt> wrote

Quote:
Yes indeed. I first copy data onto excell for some modifications and then move data onto the new server.
I get primary contstraints error sometimes.

************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...



Reply With Quote
  #7  
Old   
powerpoint@powerpoint.com.mt
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-28-2004 , 11:53 AM



Eventually, that was my intention, to import data from an excel file. but I still can't find a clue.
Are you willing to show me how if I give you access through pc anywhere?
I am willing to pay a fee.
What do you think?


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Reply With Quote
  #8  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-28-2004 , 01:02 PM



Contact me offline and we can develop your requirements further. We can maybe build a few packages together.

--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.SQLIS.com - SQL Server 2005 Integration Services.
www.Konesans.com


"Joe" <powerpoint (AT) powerpoint (DOT) com.mt> wrote

Quote:
Eventually, that was my intention, to import data from an excel file. but I still can't find a clue.
Are you willing to show me how if I give you access through pc anywhere?
I am willing to pay a fee.
What do you think?


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...



Reply With Quote
  #9  
Old   
powerpoint@powerpoint.com.mt
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-29-2004 , 01:30 PM



Hi,
I installed WinSQL and I managed to transfer a great deal of data from one database onto another. But when it comes to Items I am getting the following question:
LOMG DATA IS NOT AT THE END OF THE QUERY RESULT.

HOw do I do this in an sql query?

and,

How do I contact you offline?

Thanks a lot
Regards
Joe.


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...

Reply With Quote
  #10  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: Problem importing data with SQL - 11-29-2004 , 02:04 PM



If you are taking the whole of one database from ServerA to ServerB the
easiest way to do it is to use BACKUP/RESTORE.

My eMail address is as you see in the posts - no-spam



--
--

Allan Mitchell MCSE,MCDBA, (Microsoft SQL Server MVP)
www.SQLDTS.com - The site for all your DTS needs.
www.konesans.com - Consultancy from the people who know


"Joe" <powerpoint (AT) powerpoint (DOT) com.mt> wrote

Quote:
Hi,
I installed WinSQL and I managed to transfer a great deal of data from one
database onto another. But when it comes to Items I am getting the
following question:
LOMG DATA IS NOT AT THE END OF THE QUERY RESULT.

HOw do I do this in an sql query?

and,

How do I contact you offline?

Thanks a lot
Regards
Joe.


************************************************** ********************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP &
ASP.NET resources...



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.