viewpoint-particle
WinBatch Technical Support Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Current release
:
2023C (6.23CWC)
Home
Help
Search
Tech Database
Documentation
Downloads
Hints
Login
Register
WinBatch® Technical Support Forum
»
Archived Boards
»
COM Automation and dotNet
»
Delete database records
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Delete database records (Read 9509 times)
Jeff
Newbie
Posts: 47
Delete database records
«
on:
May 25, 2017, 01:21:50 pm »
Does anyone have a good example of deleting records by date from Microsoft SQL SERVER using ADO?
Logged
Jeff
JTaylor
Pundit
Posts: 1939
Re: Delete database records
«
Reply #1 on:
May 25, 2017, 01:49:34 pm »
Plenty of ADO examples in the Tech Database. Once you have your connection one easy way is...
SQLText = "Delete from table where ...."
myDBConn.Execute(SQLText)
Jim
Logged
stanl
Pundit
Posts: 1815
Re: Delete database records
«
Reply #2 on:
May 27, 2017, 02:02:16 pm »
While Jim's suggestion is straightforward and should work, you may experience difficulties. In which case
Which version of SQL Server are you using
What cursor options in your connection string are you using
will be helpful
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
WinBatch® Technical Support Forum
»
Archived Boards
»
COM Automation and dotNet
»
Delete database records