Forum Replies Created

Viewing 15 posts - 61 through 75 (of 179 total)

  • RE: Trigger Help

    I believe INSTEAD OF means just that... if you do not do your Insert/Update/Delete in the Trigger, it does not get done. An Insert/Update/Delete will not...

  • RE: formatting the zipcode

    Not sure exactly what you are after but you can separate it into pieces using Substring and then build a new string with a '-' concatenated between the parts.

    declare @oldzip...

  • RE: DUMB reindexing question

    Have you tried to increase the Fillfactor for this index?

    Toni

  • RE: Reindexing problem(Please help)

    This may be way off base (as I sometimes am) but maybe the index is on a View and the settings are not correct?

    Toni

    From the BOL on Indexed Views:

    The CREATE...

  • RE: insert into a table

    Here's a way to do it with a single select and without a cursor or a temporary table.

    Insert into TableFinal

    select coalesce(t1.memberid,t2.memberid,t3.memberid) 'memberid', initialjob, intermediatejob, lastjob

    from @t1 t1

    full outer join...

  • RE: Check Constraint

    Sergiy. Your post was quite interesting.

    I tried unsuccessfully to look up under what conditions a Raiserror would cause the trigger to cancel the Insert or...

  • RE: Return a cursor

    Agree that it is best to not use a cursor at all; however, if you use a GLOBAL cursor, you can pass it between procedures. The Global cursor...

  • RE: Check Constraint

    Here are some cleaner versions of the triggers that would handle multiple rows in an Insert/Update. I had to add an Identity column (unless you have a unique...

  • RE: Check Constraint

    If you need to determine what to do based on the value of a particular row against that of another row in the same table, a Trigger is your only...

  • RE: Transactional Replication in SQLSERVER 2000

    First I will admit to not fully understanding your question; however if you mean a table in both DBs can be updated at the same time (bi-directional) then you would...

  • RE: Linked server connection error

    Try having the Workgroup server join the domain of your target server.

  • RE: Union all or Multiple Inserts

    Union all is a clear winner..

    If you do a UNION ALL you will get all the rows and take less resources as there is no need to sort out the...

  • RE: best practices for if statements

    If the parameter columns do not allow nulls then you can do the select using Coalesce. With the key part being the Where clause...

    where region = Coalesce(@region,region) ...

  • RE: its definately a SQL Server Bug (table with 80 million rows)

    Treading lightly in the company of so many gurus....

    have you considered doing a BulkInsert and/or checking to see what the FillFactors are? If files are...

  • RE: Count of Distinct Records

    Agreed Chirag, you would not use the '*' (did not mean to imply you would - just lazy on my part to leave it in).

    shwetha004 had stated...

Viewing 15 posts - 61 through 75 (of 179 total)