Forum Replies Created

Viewing 15 posts - 4,906 through 4,920 (of 5,103 total)

  • RE: Traping SQL returning errors

    in other words :

    INSERT INTO TABLE(x1,,...) VALUES (@x1,@x2,...)

    WHERE TABLE.PRIMARY_KEY <> @YOUR_PRIMARY_KEY

    Edited by - noeld on 12/16/2003 06:57:22 AM


    * Noel

  • RE: Checking Insert, Update, or Delete in Trigger

    I agree with the others, it is better to keep the code in separated triggers but just for the fun of it this is how you can do it:

    IF SELECT...


    * Noel

  • RE: Emailing via SMTP relay

    You can try MS version also


    * Noel

  • RE: Determine default values for UDF parameters

    I have some bad news for you,

    YES YOU ARE RIGHT !!!

    COLUMN_DEF IS HARDCODED AS convert(nvarchar(4000),NULL)

    the reason: AFAIK that Default is NOT stored on any table as of SP3...


    * Noel

  • RE: Top n with a twist

    quote:


    quote:


    
    
    CREATE TABLE TBL (GRP INT, VALUE INT)
    GO

    INSERT TBL VALUES (1,...


    * Noel

  • RE: running a dts package from access project

    1. set a job that runs the package

    2. make sure to disable the job so that it does not run on a schedule

    3.Then run: exec sp_start_job


    * Noel

  • RE: Microsoft Killing off SQL Server 7.0

    quote:


    Basically they are pulling them off the market. Microsoft is supporting them, just not selling them.

    That's their perogative. With Yukon on...


    * Noel

  • RE: Passing a variable to the drop table cmd

    declare @mytablename varchar(50)

    set @mytablename = 'T'

    Exec ('DROP TABLE ' + @mytablename)


    * Noel

  • RE: Top n with a twist

    
    
    CREATE TABLE TBL (GRP INT, VALUE INT)
    GO

    INSERT TBL VALUES (1, 1)
    INSERT TBL VALUES (1, 2)
    INSERT TBL VALUES (1, 3)
    INSERT TBL VALUES (1, 4)
    INSERT TBL VALUES (1,...


    * Noel

  • RE: Running value based on previous row

    Can you insert the running total value at INSERT time?

    But if you update the ClosingDate Values

    an INDEXED VIEW with the previous query may do the Trick

    as allways ......


    * Noel

  • RE: Advanced T-SQL

    is that a TEXT type or a varchar type?


    * Noel

  • RE: Running Values Strategy

    I would calculate the Value at INSERT time so that you don't have to do it after the fact!!


    * Noel

  • RE: Summarising By Time Interval

    quote:


    Hi Stuart (stubob),

    I agree with you. Pre-calculation makes sense. This calculation is done only once and it is a time-saver. (If you...


    * Noel

  • RE: Running value based on previous row

    Is this what you are after ?

    
    

    CREATE TABLE TDATA(DATEONDATA DATETIME, ITEM VARCHAR(10), CLOSINGPRICE MONEY, MOVINGVALUE MONEY)
    INSERT TDATA VALUES('1-JAN-01','SUGAR',400,400)
    INSERT TDATA VALUES('1-JAN-01','SALT',450,450)
    INSERT TDATA VALUES('1-JAN-01','COFFEE',700,700)
    INSERT TDATA VALUES('2-JAN-01','SUGAR',425,405)
    INSERT TDATA...


    * Noel

  • RE: Counting Records from Text Files

    I am 100% with Phill here you didn't specify if you need the count before or after and I believe for after Phill's a very good choice

    ...


    * Noel

Viewing 15 posts - 4,906 through 4,920 (of 5,103 total)