473,396 Members | 2,055 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

deleting multiple record same time

hi everbody...

i am using vb.net 2005 and sql server 2005.
my master-detail table

tableADISYON tableAYRINTI

ID ID
ADISYONNO <---------> ADISYONNO
DATE URUN
.......... .........
.......... .........
.......... .........
.......... .........

i am create relation ADISYONNO field. how i do delete master table row
and detail tabel same time.
ID ADISYONNO DATE ...... ....... ......
1 1 01.01.2006 12:00:00

ID ADISYONNO URUN ...... ....... ......
1 1 PIZZA
2 1 COLA
3 1 TEA
4 1 PIZZA
i am deleting master table ADISYONNO = 1 record , how i can delete same
time detail table ADISYONNO = 1 field
thanks

Apr 3 '06 #1
1 1112
Hi,

Have a look for on MSDN for Cascade.

You know that for this kind of questions which is not directly related to
language.vb code the newsgroup Microsoft.public.dotnet.framework.adonet is
probably a much better place.

I hope this helps,

Cor

<JK*******@gmail.com> schreef in bericht
news:11*********************@g10g2000cwb.googlegro ups.com...
hi everbody...

i am using vb.net 2005 and sql server 2005.
my master-detail table

tableADISYON tableAYRINTI

ID ID
ADISYONNO <---------> ADISYONNO
DATE URUN
......... .........
......... .........
......... .........
......... .........

i am create relation ADISYONNO field. how i do delete master table row
and detail tabel same time.
ID ADISYONNO DATE ...... ....... ......
1 1 01.01.2006 12:00:00

ID ADISYONNO URUN ...... ....... ......
1 1 PIZZA
2 1 COLA
3 1 TEA
4 1 PIZZA
i am deleting master table ADISYONNO = 1 record , how i can delete same
time detail table ADISYONNO = 1 field
thanks

Apr 4 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Ken Bass | last post by:
Hi all, I have a client that is obsessed (actually paranoid) with security. One requirement he has is that any data deleted from a database be physically removed. This means not only within the...
1
by: KC | last post by:
Hello, I am using Access 2002. WinXP, Template from MS called Orders Mgmt DB. I have tweaked this DB to work for our small co. It has worked pretty well up until I made the mistake of deleting...
3
by: deekay | last post by:
I'm using Access 2000 working in DAO at the moment and am having trouble deleting a record from a form that has been filtered. So I'm filtering a form and then when the user selects the record...
46
by: DP | last post by:
hi, i've got a form, with a subform in it. i've got a delete button in the subform. the code i;ve got is; Private Sub cmdDeleteRecord_Click() msg = "Are you sure you want to delete this...
19
by: MaXX | last post by:
Hi, I hope I'm not OT. I have the following issue: I want to delete a record from my db with a php script. Let's say I'm auth'd and I want to delete the record id 440. With a simple form (get...
11
by: shriil | last post by:
Hi I have this database that calculates and stores the incentive amount earned by employees of a particular department. Each record is entered by entering the Date, Shift (morn, eve, or night)...
1
by: sphinney | last post by:
All, I'm not sure how to adequately explain my problem in two sentences or less, so at the risk of providing TMI, here's the condensed verion. I have developed an Access 2002 database file that...
16
by: busterbaxter | last post by:
Hi All, I got a multiple delete working here but for some reason I occassionally get this error. The way the delete works is there is a text box where the user enters the quantity to delete. If...
1
by: Kyosuke18 | last post by:
Hi everyone, I have a problem in deleting a data that is connected on the database.. I tried this code but it shows me an error: Run-time error '-2147217900(80040e14)': Syntax error in string in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.