all groups > sql server dts > november 2004 >
You're in the

sql server dts

group:

Problem importing data with SQL


Problem importing data with SQL (powerpoint NO[at]SPAM powerpoint.com.mt)
11/25/2004 9:35:43 AM
sql server dts:
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/
Re: Problem importing data with SQL (powerpoint NO[at]SPAM powerpoint.com.mt)
11/25/2004 12:52:56 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/
Re: Problem importing data with SQL Allan Mitchell
11/25/2004 7:49:28 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)



[quoted text, click to view]

--


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.
Re: Problem importing data with SQL Allan Mitchell
11/25/2004 9:47:33 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


[quoted text, click to view]

Re: Problem importing data with SQL (powerpoint NO[at]SPAM powerpoint.com.mt)
11/26/2004 12:12:36 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/
Re: Problem importing data with SQL Allan Mitchell
11/27/2004 9:09:52 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


[quoted text, click to view]

Re: Problem importing data with SQL (powerpoint NO[at]SPAM powerpoint.com.mt)
11/28/2004 9:53:43 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/
Re: Problem importing data with SQL Allan Mitchell
11/28/2004 7:02:56 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


[quoted text, click to view]

Re: Problem importing data with SQL (powerpoint NO[at]SPAM powerpoint.com.mt)
11/29/2004 11:30:43 AM
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/
Re: Problem importing data with SQL Allan Mitchell
11/29/2004 8:04:49 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


[quoted text, click to view]

AddThis Social Bookmark Button