delete

Technical Article

RE: Incorrect DOTW on SQL Server 8.0

  • Reply

Don't think that "DATEFIRST" should matter in this case. As the @@DATEFIRST value is changed, only the weekday numbers are changed as well. It doesn’t affect the number to name mapping.  SET DATEFIRST 7 -- default, SundaySELECT DATEPART(WEEKDAY, getdate()),DATENAME(WEEKDAY, getdate())The result will be 4, Wednesday SET DATEFIRST 1 -- MondaySELECT DATEPART(WEEKDAY, getdate()),DATENAME(WEEKDAY, getdate())The result will be […]

You rated this post out of 5. Change rating

2004-06-02

Technical Article

Alternatives to self-joins?

  • Topic

I have a small issue, but I cannot find a way out of it - any assistance with this would be great.We are implenting indexed views for a 'data warehouse' type arrangement.  The problem is that many of our existing views incorporate self-joins which prevent me from creating indexes on them.  These views have been […]

2004-03-10

212 reads

Technical Article

RE: cloning a table

  • Reply

I usually do all my data modeling in Erwin. It then creates a script that I modify to create the tables and triggers. Once I have run the script I then create my basic stored procedures for inserting, updating, deleting using a vb app I created many years ago. All the SPs that have specific […]

You rated this post out of 5. Change rating

2004-01-22

Technical Article

RE: SQL/Active Directory issue???

  • Reply

Maybe this would work: sp_grantlogin [@loginame =] 'login' sp_grantlogin sp_revokelogin Note that the SQL security account procedures and the NT security account procedures differ. If you got a snapshot of all of the logins/role membership/permissions for the NT accounts, and their NT account name has not changed, then you could scan through them and use […]

You rated this post out of 5. Change rating

2003-12-01

Technical Article

RE: QOD 17th Nov

  • Reply

Ok I am a proponent (big word for the day) ok stored procedure grouping. There biggest advantage are to break out code so that individual execution plans can be stored for situation many folks do if begin code here end else begin alternate code here end but to call that limited revisioning is not correct. […]

You rated this post out of 5. Change rating

2003-11-17

Technical Article

RE: Continuous replication

  • Reply

If you don't want to apply a new snapshot, you will have to manually insert all the missing recors in your subscribers, and update all the different records, too. Since the subscription, expired, the distribution db didn't save all the transactions to apply, so you have your db not on sync. The easiest way it […]

You rated this post out of 5. Change rating

2003-07-28

Technical Article

RE: Help Reqd for Optimization

  • Reply

I hat eto say it, but the causes of poor performance are probably due to your use of cursors. If you post an example of common usage, perhaps we can suggest ways to replace the cursors with set-based solutions. Also, if you are running cursors within a transaction, your transaction log will balloon most likely. […]

2003-07-23

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