RE: Delete all records from a DB
There is no magic (movies are excepted). You have to go through every table that has relevant data and execute a DELETE statement with the WHERE clause.
2003-05-09
There is no magic (movies are excepted). You have to go through every table that has relevant data and execute a DELETE statement with the WHERE clause.
2003-05-09
quote: Ah! Problem is me, me thinks. Sometimes it's difficult to explain what u have and what u want to someone else but I think we are getting there. I agree that a cursor could be a solution but I am trying to keep to set based as much as possible to satisfy the purists […]
2003-05-08
2 reads
create a parameter-table with a column "lastkeyvalue". Read that value for update and than its all up to you. Others cannot reach it until you release it. That is if you want to have a key sequence. You could also use uniqueidentifiers. Then you can just generate them at clientside. They are considered to be […]
2003-05-08
Posted duplicate post in Administration with subject "How to get sql server agent running"
2003-05-07
1 reads
and no prizes for guessing.... *couldn't resist that*
2003-05-07
1 reads
I had a same problem with SQL 2000 when I restored one of my DBs in different server which had same logins because of UIDS mismatch. But this can be easily solved with sp_change_users_login 'Update_One', 'user', 'login'. Dinesh mcp mcse mcsd mcdba
2003-05-07
Quick note: you swapped the sides of the join between your first chunk of code and your second. The CSCSHBAL table should be the one the join direction referes to (on the right for RIGHT, on the left for LEFT)
2003-05-06
One alternative is to use transactions and issue a SELECT with TABLOCKX within the transaction on the tables to be locked. TABLOCKX holds exclusive lock on the table till the transaction is completed.
2003-05-06
By Steve Jones
I can’t remember how I heard about Small Data SF 2024, but it caught...
By Steve Jones
moledro – n. a feeling of resonant connection with an author or artist you’ll...
By Arun Sirpal
Let’s go back to data platforms today and I want to talk about a...
Comments posted to this topic are about the item 7 sept, scheduled book
Comments posted to this topic are about the item 7 sept, schedlued article
Comments posted to this topic are about the item 6 sept, published book
Azure Data Lake Storage Gen 2 is built on ...?
See possible answers