Forum Replies Created

Viewing 15 posts - 9,421 through 9,435 (of 18,923 total)

  • RE: Help required urgent please

    Short and sweet...

    Make new DB

    SELECT * INTO NewDB.dbo.TblName FROM dbo.CurrentTbl

    Backup new databse

    Backup currentdb

    DELETE dbo.CurrentTbl

    Import

  • RE: Creating an audit trail

    This also assumes that you don't have to comply with SOX.

  • RE: Import- FK problems

    You realize that ALL constraints are disabled by this script.  You better make sure to revalidate all your data before inserting it into the table.

     

    Also doing that will mark the...

  • RE: Import- FK problems

    You can also browse BOL in the alter table ection to find out what script can disable/enable a constraint (any type).

  • RE: @@Rowcount in view???

    Like the one of the guy who invented that exemple ?! .

  • RE: IP address retrieval

    That can also be used as a split function (when the dba doesn't want to have one on the server).  Of course, that works only if you only need to...

  • RE: @@Rowcount in view???

    Why do you think I can't figure out a usefull way to use that thing???

     

    The only way I could see a good use would be to do a deffered cross-join...

  • RE: How to get a variable resultset

    It's possible if you know the Max Depth of the tree... as you can do as many left joins as the max depth requires... but that also has some draw...

  • RE: How To - swap data between two row

    UPDATE dbo.YourTable SET Seq = CASE Seq WHEN 1 THEN 2 WHEN 2 THEN 1 ELSE Seq END WHERE Seq IN (1, 2)

  • RE: 2 inner joins in an update query?

    Nothing comes to mind.  I have not used mysql in over 3 years (back in school actually) so I never really needed to find one.

     

    Google maybe?

  • RE: Creating an audit trail

    Where do you want to send that new information?

     

    You have to give more details or the answers we'll provide will be extremely generic... at best.

  • RE: 2 inner joins in an update query?

    There are not.  Sorry but I can't help you anymore than I did.  Somebody else will catch up with this sometime soon and figure it out.

  • RE: 2 inner joins in an update query?

    This compiles OK in my QA.. but I can't test without the tables so tell me how it goes.

     

    UPDATE tblSchedule

        SET tblSchedule.HomeScore = 14,

         tblSchedule.AwayScore = 17

    FROM tblSchedule

        INNER...

  • RE: Change Table Filegroups on 2005

    Assuming the previous idea works (make sure you test first).

     

    Script all the tables but only the clustered index.

    Do a search and replace to set the new filegroup and add the...

  • RE: 2 inner joins in an update query?

    Can you post your new version pls?

Viewing 15 posts - 9,421 through 9,435 (of 18,923 total)