career

Technical Article

RE: Delete

  • Reply

Got this from someone on this site. I cannot take credit for it. I cannot remember who it was... ALTER TABLE TableWithDuplicates ADD EliminateDuplicates_RowID int NOT NULL IDENTITY(1, 1) DELETE FROM t1 FROM TableWithDuplicates t1 JOIN( SELECT EliminateDuplicates_RowID=MAX(EliminateDuplicates_RowID), Field1, Field2, Field3, Field4 FROM TableWithDuplicates GROUP BY Field1, Field2, Field3, Field4 HAVING COUNT(*) >= 2 ) […]

You rated this post out of 5. Change rating

2003-06-11

Technical Article

RE: Granting permission on SP

  • Reply

quote: ALTER PROCEDURE permissions default to members of the sysadmin fixed server role, and the db_owner and db_ddladmin fixed database roles, and the owner of the procedure, and are not transferable. Wouldn't it be sufficient to add the user to db_ddl_admin role on that db's that he needs? Cheers, Frank

You rated this post out of 5. Change rating

2003-06-11

1 reads

Technical Article

RE: How to corrupt a db

  • Reply

Hello Markus, quote: Here you have a script which corrupts the IAM of a table. Note that after running the script the table in question is longer accessible while the database status remains online. thanks, I will try it in the next days! ...and surely come up with follow-up questions Cheers, Frank

You rated this post out of 5. Change rating

2003-06-10

Technical Article

RE: Stored Procedures

  • Reply

Thanks AW, but.... I don't understand like resolving the problem! I execute the stored procedure in local SQL Server. In the code of the stored procedure, I use (for example), to reference a table: INSERT INTO TABLE_NAME_1 select ....FIELDS_NAME, .... from [SERVER_NAME].[DB_NAME].[dbo].[TABLE_NAME_2] SERVER_NAME is the name of my local SQL Server. Executing the procedure the […]

You rated this post out of 5. Change rating

2003-06-10

Blogs

SQL Saturday Boston 2024 Slides

By

Thanks to everyone that came to my talks. Slides are below. Best Practices for...

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers