Forum Replies Created

Viewing 15 posts - 23,746 through 23,760 (of 26,486 total)

  • RE: Math Functions within Case When

    I find separating the join criteria from the filter criteria makes working with multiple table queries easier. Also, I would rewrite your current query using a CTE to replace...

  • RE: msdb is not backing up?

    Mani (11/14/2008)


    hi,

    Iam using the below procedure to Backup system Databases. It is taking the backups of master,model msdb in all instances except one instance it is not taking msdb backup?...

  • RE: Implementing Clustered Indexes After the Fact on Huge Tables

    I'd say by looking at what types of queries are being run against the database. You can als look at the missing index data management views and see what...

  • RE: Math Functions within Case When

    What is the error??

  • RE: Overall Backup Strategy

    kent.kester (11/14/2008)


    I need some advice. I'll lay out my current backup plan (that I inherited) then what I'm wanting to move to.

    Currently:

    *Full Backups Daily at 6AM: ...

  • RE: Help needed: Recursive CTE to flatten text columns into comma delimted field

    This code handles the values provided by Seth.

    DECLARE @test-2 TABLE

    (ID INT, TXT VARCHAR (MAX))

    INSERT INTO @test-2

    SELECT 1,'A'

    UNION ALL

    SELECT 2,'A'

    UNION ALL

    SELECT 2,'B'

    UNION ALL

    SELECT 3,'A'

    UNION ALL

    SELECT 3,'B'

    UNION ALL

    SELECT 3,'C'

    UNION ALL

    SELECT 4,'This...

  • RE: Case in a join statement

    I wouldn't use a case statement either. Here is what i would do (and some of this you should have done, ie the create table and insert statements)

    create table...

  • RE: Implementing Clustered Indexes After the Fact on Huge Tables

    That may be a good primary key, but remember that doesn't mean it should necessarily be the clustered index.

  • RE: Case in a join statement

    timscronin (11/13/2008)


    is it possible to do a case statement in a join. I have an order table which needs to join to a location table. It can join...

  • RE: Restore Seems Hung

    homebrew01 (11/14/2008)


    I'm trying to restore a large DB temporarily to retrieve a table, in a less than ideal situation, but it's my only option right now. The database is 700...

  • RE: Implementing Clustered Indexes After the Fact on Huge Tables

    Just one thing to think about. The Primary Key isn't always the one that should be the Clustered Index. As you look at the processing that occurs, you...

  • RE: cursor function

    Problem: You won't give us what we ask for so we can't provide you with the answer you are looking for.

    You only give us half answers to our questions, what...

  • RE: Filtering Records in Views

    May just be me, but I'd keep the filter in the stored procedure, unless the users also have access directly to view and not just using the stored procedure.

  • RE: why sql jobs are still running even if I disabled the jobs

    Even disabled jobs can be run. You can do so manually by right clicking on the job and selecting start job, or using msdb.dbo.sp_start_job stored procedure.

  • RE: cursor function

    paul.starr (11/13/2008)


    CREATE TABLE [dbo].[CustomerAddresses](

    [CustomerID] [dbo].[C_ID] (nvarchar(30))NOT NULL,

    [AddressTypeID] [dbo].[C_ID] (nvarchar(30))NOT NULL,

    [CustomerAddressID] [dbo].[C_ID] (nvarchar(30))NOT NULL

    insert into dbo.CustomerAddresses

    (CustomerID, AddressTypeID, CustomerAddressID)

    values('48313', '1', '48313-1')

    ('48313', '4', '48313-4')

    ...

Viewing 15 posts - 23,746 through 23,760 (of 26,486 total)