Forum Replies Created

Viewing 15 posts - 49,471 through 49,485 (of 49,552 total)

  • RE: Update Issue

    An update statement may only target one table.

    I don't know what the update statement looks like, but it sounds as if you're trying to update RaceLog and RaceLogRslts in...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: cycles or multiple cascade paths Error

    Well it's not a particuarly good idea to modify primary keys in the first place. Why is it necessary to mod the pk? If the pk is changed, are there...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Which Trigger type fired?

    Yes, there is a way, and it's related to the inserted and deleted tables.

    For an insert, only the inserted table will have rows.

    For an update, both inserted and deleted...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: cycles or multiple cascade paths Error

    I'm not sure, but I suspect that it has to do with there been 2 ways to cascade a delete or update from Rooms to Device

    (Rooms->Device), (Rooms->Employee->Device)

    You should be able...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Question of the Day for 31 Jan 2005

    Same here w.r.t. error_line(). No mention in BoL and select error_line() returns "'error_line' is not a recognized builtin function name

    Version

    Microsoft SQL Server Yukon - 9.00.852 (Intel X86)

    Jul 19 2004...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: some questions for the post of DBA

    Text and image fields aren't stored in the row, all that's stored in the row is a 16 byte pointer. That's why a text/image field may store up to 2GB

    How...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: some questions for the post of DBA

    No, run profiler, save into SQL table, run queries. I had a very nice set of stored procs at my last job that. One would summarise profiler data and produce...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: some questions for the post of DBA

    1st I don't know

    2nd you can use profiler to log stored proc start and end times

    3rd 8060 bytes

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Changing the column order

    As far as I know,not without dropping and recreating the columns or the table.

    The way enterprise manager changes column orders is to create a new table with the new...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Append to Existing Table ?

    INSERT INTO Items (ID, Item)

    SELECT ID, Items FROM Items_RTD

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: how to IF NULL then value = 0

    Update ...

    Set val32 = ISNULL((Select vh3 FROM OPENQUERY(....)),0)

    Should work. Works fine if the inner select is all local. I don't have a handy linked server to test on.

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Trigger Help

    A tranaction was created by the initial delete statement and the trigger will be part of that.

    BEGIN

    RAISERROR('Property may not be deleted when it is on a...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Counting instances of strings

    You could try searching for " profit "

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Counting records inside a trigger

    How are you doing the insert?

    Try putting some print statements into the trigger and do an insert from query analyser. That's about the only way I know to get messages/errors...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • RE: Counting records inside a trigger

    I've never used calculated fields myself, but from what I understand they update only when the data changes, so it may save you from writing a trigger in the first...

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 15 posts - 49,471 through 49,485 (of 49,552 total)