Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Delete row from local after  drop field from remote ; tsql dosnt work

Posted on 2013-11-11
2
Medium Priority
?
258 Views
Last Modified: 2013-11-12
Dear all ,
Need Drop field from Remote Database then delete field reference from Local Database.

I try this:
alter Table Remote.dbo.AAAATESTTABLE drop column FieldName28 ;
Delete  ReferenceTable where  FieldID=20094;

 And This:
alter Table Remote.dbo.AAAATESTTABLE drop column FieldName28 ;
Delete  LocalDB.dbo.ReferenceTable where  FieldID=20094;

Both failed to execute delete on ReferenceTable  without any error.
Please Help,,,
0
Comment
Question by:ethar1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 66

Accepted Solution

by:
Jim Horn earned 2000 total points
ID: 39641503
DELETE needs to be DELETE FROM
0
 

Author Comment

by:ethar1
ID: 39642335
same
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question