Forum Replies Created

Viewing 15 posts - 20,791 through 20,805 (of 26,490 total)

  • RE: Adding to a date from a previous row

    Allister Reid (5/26/2009)


    Hi,

    I've tried solving this with quirky update method, but having some difficulties!

    Can't figure out how to add index to table variable? create index throws an error,...

  • RE: Duplicate primary key & partitioned views

    When creating a partitioned view in SQL Server 2000, you also need to place a constraint on each table that ensures a record belongs to only one table, for example...

  • RE: Full disk

    middletree (5/26/2009)


    If I am reading you correctly, this should do what I need:

    USE CHEMPAXDW

    GO

    DBCC SHRINKFILE('CHEMPAXDW_Log', 10000)

    BACKUP LOG WITH TRUNCATE_ONLY

    DBCC SHRINKFILE('CHEMPAXDW_Log', 10000)

    GO

    Not quite.

    BACKUP LOG [CHEMPAXDW] WITH TRUNCATE_ONLY

    BACKUP DATABASE [CHEMPAXDW]

    DBCC SHRINKFILE('CHEMPAXDW_Log',...

  • RE: Full disk

    george sibbald (5/26/2009)


    middletree (5/26/2009)


    Wow. That could be a problem. The whole issue here is that there is no disk space. I don't have a place to back it up to.

    then...

  • RE: Duplicate primary key & partitioned views

    Noticed you are using SQL Server 2000. Any chance of upgrading in the near future? Partitioned tables in SQL Server 2005/2008 would greatly simplify your problem, IMHO.

  • RE: Duplicate primary key & partitioned views

    Given the follwoing table:

    create table dbo.MyTable (

    DataCol1 int,

    DataCol2 datetime,

    DataCol3 varchar(25)

    );

    The new table would be like this:

    create table dbo.MyNewTable...

  • RE: Full disk

    middletree (5/26/2009)


    I ran the SHRINK statement, but it only saved me 5 GB. I need to do the Truncate thing first.

    I know this sounds weird, but I have...

  • RE: Duplicate primary key & partitioned views

    Looks to me like the IDENTITY column should be a SID. It should have NO RELATION to the data being inserted other than providing a unique ID for each...

  • RE: Are the posted questions getting worse?

    We are approaching the next big Party Time for The Thread. I suspect we'll hit 5,000 posts early in June with a possibility of it occuring by May 31st.

  • RE: Full disk

    middletree (5/26/2009)


    Helpful article, Lynn, but reading it makes me think we need to stay in Full Backup mode.

    If you need point in time recovery, then yes you do.

    Now that you...

  • RE: Are the posted questions getting worse?

    Bob Hovious (5/26/2009)


    They need a new how-to book: SQL for Window-Washers.

    I keep telling you Lynn, just don't look at his stuff and you will enjoy much more serenity.

    😛

    It's...

  • RE: The Real SQL Server Experts

    Damus (5/26/2009)


    - real foreach loops through table rows.

    Why use RBAR when set based solutions work much better and efficiently?

  • RE: Full disk

    middletree (5/26/2009)


    First day at new job, don't know much about how things are set up. On the databse server, which uses SQL Server 2005, the hard drive is 95% full....

  • RE: The Real SQL Server Experts

    Damus (5/26/2009)


    I withdraw all comments I previously posted on this discussion.

    I appologize to anyone who was offended. Did not mean anything wrong.

    Peace (white flag)

    I wasn't offended. I am...

  • RE: The Real SQL Server Experts

    Damus (5/25/2009)


    I am just a programmer. Been in the business for over 10 years now, I have changed the way I code so many times, but when it comes to...

Viewing 15 posts - 20,791 through 20,805 (of 26,490 total)