Aggregates

Technical Article

Double entries

  • Topic

Hi. I have a trigger that adds a row to a table whenever another table has a row added or updated.  It seems that the trigger is adding two rows instead of one whenever it's fired.  Anyone ever have this problem? Solutions?  Thanks in advance.

You rated this post out of 5. Change rating

2004-01-26

2 reads

Technical Article

Expiring Login Accounts

  • Topic

Hi there,A question more on Windows rather than SQL server. Is it possible to create a user account that expires after a set number of days? I am running Windows 2000 Server.Thanks in advance...  

You rated this post out of 5. Change rating

2004-01-13

1 reads

Technical Article

RE: Call stored procedure from stored procedure

  • Reply

you can also use the table datatype to return some data to the calling procedure though the suggestion above is the more straightforward way. Steve Jones sjones@sqlservercentral.com http://qa.sqlservercentral.com/columnists/sjones The Best of SQL Server Central.com 2002 - http://qa.sqlservercentral.com/bestof/ www.dkranch.net

You rated this post out of 5. Change rating

2003-12-10

1 reads

Technical Article

RE: SQL Help Needed

  • Reply

JulieW, Heres an idea, it's a bit ugly but should work - though you need 2 queries. Hopefully someone else has a suggestion because I'd like to know a nice way to do it as well. update @tablename set roletype = 'SecondLife' where id in ( select max(id) as id from @tablename where roleid in […]

You rated this post out of 5. Change rating

2003-09-01

1 reads

Technical Article

RE: Best way of getting Avg Date?

  • Reply

Hi Billy, quote: What is the fastest and most reliable way of figuring out the average date? Convert to number, average it and back? Is it: DECLARE @tt TABLE (THE_DATE SMALLDATETIME) INSERT INTO @tt VALUES('1/1/2003'); INSERT INTO @tt VALUES('1/2/2003'); INSERT INTO @tt VALUES('1/3/2003'); INSERT INTO @tt VALUES('1/4/2003'); INSERT INTO @tt VALUES('1/5/2003'); SELECT CAST(AVG(CAST(THE_DATE AS INT)) […]

You rated this post out of 5. Change rating

2003-08-28

2 reads

Technical Article

RE: ntext confusion

  • Reply

You can handle smaller amounts of data like this, but for the large amounts you are talking about see the BOL topic "Retrieving ntext, text, or image Values".

2003-08-27

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