Forum Replies Created

Viewing 15 posts - 1 through 15 (of 39 total)

  • RE: Working with Temp Tables

    Steve Jones - Editor (5/6/2010)


    I think you might want to do this instead:

    DROP TABLE dbo.mytable

    go

    CREATE TABLE mytable( col1 int, colb varchar(20))

    GO

    INSERT MyTable SELECT 1, 'a'

    INSERT dbo.mytable SELECT 2, 'b'

    GO

    DECLARE @tbl...

  • RE: Working with Temp Tables

    Dan.Humphries (5/6/2010)


    I would try running the dro table seperately. If it is truly not in the tempdb then you will get an error stating the table does not exist...

  • RE: Working with Temp Tables

    Dan.Humphries (5/6/2010)


    I dont see a drop table section to drop the temp table on completion so if you have run this in testing and then you are trying to run...

  • RE: Working with Temp Tables

    Steve Jones - Editor (5/6/2010)


    Why copy it? Is the logic that complex?

    Couldn't you copy the row back into the table directly, changing the columns?

    insert TableA

    select ColA+1

    ...

  • RE: Managing/Loading Large Amounts of Data

    That depends almost entirely on the nature, structure and format of the file. There is nothing complicated about float or decimal (though you do have to be set on...

  • RE: Sharing data between two databases

    Ok, so its like setting up permissions in active directory. I can handle that. Where do I setup the schemas?

  • RE: Sharing data between two databases

    Just when I think I'm starting to get good at this stuff, I come on here and realize I'm not, haha. Schema's, hmm...where do I begin? Would this schema be...

  • RE: Unable to start execution of step 1

    Problem fixed by applying SP2.

  • RE: Unable to start execution of step 1

    I tried configuring the user for sql service service and sql server agent service as administrator but still not working.

    I have this procedure working on my physical machine.

  • RE: Unable to start execution of step 1

    Also note, this is running on vmware, so I don't know if this would affect it.

  • RE: Unable to start execution of step 1

    Line 1:

    EXECUTE master.dbo.xp_create_subdir N'C:\SQL Server Backups\test'

    If I run the t-sql manually it works (From New Query).

  • RE: Reset Identity Specification

    Cool. Will Truncate Table Drop my foreign keys?

  • RE: Troubleshooting Query

    So my index in my county table should be the state_code? I really can't think of what I would index in my States table since it just lists each state...

  • RE: Troubleshooting Query

    I guess I must be missing the meaning of index. In my county table I have 1 column called County_Id (primary key, unique identifier), another column with the actual county...

  • RE: Troubleshooting Query

    Ok, I went into my database diagrams and updated a few table relationships and it seems to have fixed the delay. However, they still do not say "Seek" instead of...

Viewing 15 posts - 1 through 15 (of 39 total)