Forum Replies Created

Viewing 8 posts - 49,561 through 49,569 (of 49,569 total)

  • RE: Question of the Day for 15 Jun 2004

    srowlands: a trigger fires once per operation. If an update affects 20 rows of a table and there is an update trigger, then the trigger will fire once and both...

  • RE: Best way to change the data type of a replicated column/table

    I'm no expert on replication, but can't you do a sp_repladdcolumn to create a temp column, copy the data over, sp_repldropcolumn to remove the old one, then do another sp_repladdcolumn...

  • RE: Question of the Day for 15 Jun 2004

    There are actually two things wrong, the one the correct answer refers to and the additional problem that on an insert, no records will be inserted due to the inner...

  • RE: Assigning Multiple Variables

    Select @var1=col1, @var2=col2 from table where....

    HTH

  • RE: Converting DATETIME to NUMERIC

    The integer portion of a datetime is the date and the fractional is the time. I don't know the details of how it's stored though.

    What are you trying to do...

  • RE: pls answer toi my date problem

    For some reason I couldn't reply to your other post...

    I've found that inserting a date into SQL in the format yyyy/mm/dd is often best. It's unambiguous.

    Maybe you can switch the...

  • RE: Clustered Index need Primary keys?

    By default, a primary key is supported by a unique clustered index, so by dropping the key and creating the index you won't be gaining anything.

    You will gain if...

  • RE: Return date only from getdate()

    Alternatively if you want to avoid the conversion to char

    select count(*) from WHERE

    cast(floor(cast([datetime] as float)) as datetime) = cast(floor(cast(getdate() as float)) as datetime)

    The above is faster than a...

Viewing 8 posts - 49,561 through 49,569 (of 49,569 total)