troubleshooting Question

Dump data into new database issue

Avatar of Aleks
AleksFlag for United States of America asked on
10 Comments5 Solutions234 ViewsLast Modified:
I am making selections from database A and want to dump the results into database B.

Today i am running this statement:

USE BDotSheppard
INTO    dbo.Addresses
FROM    BDotDev.dbo.Addresses
WHERE   UserId = 15304

Later on ill run

USE BDotSheppard
INTO    dbo.Addresses
FROM    BDotDev.dbo.Addresses
WHERE   UserId = 15555

The problem is that when I run the second one it says that the object already exists and won't dump the data on top of the data I already have.
How can i simply add the data to this already existing object ?
Habib Pourfard
Senior Software Engineer
Join our community to see this answer!
Unlock 5 Answers and 10 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 5 Answers and 10 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros