?
Solved

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

Posted on 2013-11-11
2
Medium Priority
?
256 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

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

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

In the first part of this tutorial we will cover the prerequisites for installing SQL Server vNext on Linux.
It is possible to export the data of a SQL Table in SSMS and generate INSERT statements. It's neatly tucked away in the generate scripts option of a database.
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.
Suggested Courses

770 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