?
Solved

remove record from SQL database

Posted on 2010-08-26
2
Medium Priority
?
390 Views
Last Modified: 2012-08-14
The table FormDefinitions have the following:

(<xaoFormID, char(75),>
           ,<xaoControlName, char(70),>
           ,<xaoClassID, char(35),>
           ,<xaoType, numeric(1,0),>
           ,<xaoProperties, text,>
           ,<xaoCode, text,>)

I would like to delete the following records
where xaoFormID like '%FSIPVSTR09%'  and (xaoControlName like '%chkelecpckupg%' or xaoControlName like '%cmdelecpckupg%')

Open in new window


I've been using SQL Server for about 5 months and never had to delete any records.

So, what is the the best way to do this via SQL Statement?

THANKS.
0
Comment
Question by:jeremyll
[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 3

Accepted Solution

by:
celdridgeMadman earned 1000 total points
ID: 33538247
delete from FormDefinitions where xaoFormID like '%FSIPVSTR09%'  and (xaoControlName like '%chkelecpckupg%' or xaoControlName like '%cmdelecpckupg%')

Just be careful when deleting obviously!
0
 
LVL 16

Assisted Solution

by:vdr1620
vdr1620 earned 1000 total points
ID: 33538383
Be sure of what you want to delete...I would you to go through these articles before you delete the data from the table..

http://msdn.microsoft.com/en-us/library/ms189835.aspx
http://www.sql-tutorial.net/SQL-DELETE.asp
http://www.sql-tutorial.com/sql-delete-sql-tutorial/
0

Featured Post

Introducing Priority Question

Increase expert visibility of your issues by participating in Priority Question, our latest feature for Premium and Team Account holders. Adjust the priority of your question to get emergent issues in front of subject-matter experts for help when you need it most.

Question has a verified solution.

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

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

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