Forum Replies Created

Viewing 15 posts - 6,931 through 6,945 (of 7,191 total)

  • RE: Setting up relationships correctly

    I thought we were talking about foreign keys?  At least that is what Darren's original question refers to.  I'm afraid I don't understand how you can have a foreign key...

  • RE: Setting up relationships correctly

    Gift

    Am I understanding you correctly?  Are you saying that, to create a foreign key, the name of referencing and referenced columns must be identical?  Is this new to SQL 2005,...

  • RE: Setting up relationships correctly

    Darren

    I'm afraid I'm not familiar with the SET TO NULL option.  But you can't have cascading deletes for the reason I mentioned above.  And you may find that you still...

  • RE: Setting up relationships correctly

    So I'm guessing you're getting the error message when you try to create the second foreign key constraint?  I'm also guessing that you are using the following code to attempt to...

  • RE: Setting up relationships correctly

    No, I don't think so.  I think you've got some sort of circular reference going on.  But without being able to see what the FKs do, I can't help you. ...

  • RE: Setting up relationships correctly

    Darren

    Do you have Query Analyzer?  You can use the Object Browser to expand the database, then expand each table.  Find the Constraints you are looking for, then right-click and this...

  • RE: Create a UDF for INSERT INTO # - EXEC construction?

    Can you not have the stored procedure insert directly into the DataBaseSizeReport table?  Or you could have it insert into the same temp table and then copy the data from...

  • RE: Setting up relationships correctly

    Darren

    Please will you post the SQL to create those two constraints, and any other foreign key constraints inolving either of those two tables.

    Thanks

    John

  • RE: Create a UDF for INSERT INTO # - EXEC construction?

    This worked for me:

    --Table

    CREATE TABLE #t(dbname sysnamelogsize decimallogspace decimalstatus INT)

    --Insert

    INSERT INTO #t(dbnamelogsizelogspacestatus)

    EXEC ('dbcc sqlperf(logspace)')

    --Results

    SELECT FROM #t

    John

  • RE: Invalid object name after synchronize manually replication

    Claudia

    Is 192.168.195.10 the publisher or the subscriber?  Is it possible that you have a case-sensitivity issue here (maybe one of the tables is called Region and the other REGION)?  You...

  • RE: administration help please

    This is far too big a question to answer in a few lines.  Make sure that you have enough memory and disks and that they are properly configured.  Make sure...

  • RE: Invalid object name after synchronize manually replication

    Claudia

    Sounds like you've got a table called Regions in the published database but not in the subscriber.  Check the list of articles in the publication, and make sure that all...

  • RE: isql and large result sets / tempdb

    Ade

    I know this doesn't answer your question, but it may make your life easier.  Why are you shelling out the SQL statement @Cmd to isql?  Why don't you run it...

  • RE: Help with INSERT INTO table from Stored PRoc

    Danster

    That would work, so long as your stored procedure's result set consists of only one row.  I think my original idea for making sure you only update what you've just...

  • RE: Joining against same table

    Dylan

    Try this.

    John

    --Table
    CREATE TABLE #eh_batch_reference 
     (eh_id_pk INTeh_order_id_fk INTeh_edi_reference VARCHAR(20),
      eh_batch_reference VARCHAR(20), eh_order_sent tinyinteh_completed_date datetime)
    
    --Data
    INSERT INTO 

Viewing 15 posts - 6,931 through 6,945 (of 7,191 total)