Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by cjblake

  1. cjblake

    Help!!! Getting Violation of PRIMARY KEY on insert

    I figured out my problem. Because I'm using tablea to help me determine which records needed to be inserted, I was getting multiple records for the id, thus causing the duplicate error. What I needed to do was add the DISTINCT keyword in my select statement to avoid this problem. Thanks for...
  2. cjblake

    Help!!! Getting Violation of PRIMARY KEY on insert

    The PK is not an identity column, but thanks for the suggestion!
  3. cjblake

    Help!!! Getting Violation of PRIMARY KEY on insert

    Thanks so much for your reply. I need tablea because that tells me which of the deleted records to insert back into the original table. I don't want to insert them all back in. Any thoughts on why I'm getting the PK violation when I'm verifying that the records don't exist? Thanks!
  4. cjblake

    Help!!! Getting Violation of PRIMARY KEY on insert

    I just archived and deleted a bunch of records and there was a very important piece of my code commented out that caused me to delete too many records. Fortunately I archived them, but I'm trying to insert them back into the table, but I get this message: Violation of PRIMARY KEY constraint...
  5. cjblake

    trusted connection error from Query Analyzer

    Denny, Thanks so much for your post! Finally! It works now that I added that. Cheers! CJ
  6. cjblake

    trusted connection error from Query Analyzer

    The 2 servers are in the same domain. My user is added in both servers. (I can run this fine logged in as me from the SQL Server, but not from my machine, so I was thinking that the issue couldn't be related to my account.) Thanks again, CJ
  7. cjblake

    trusted connection error from Query Analyzer

    Hi, Denis. Thanks for your post. I checked and unfortunately it is already mixed authentication. I was hoping it would be so easy! Any other ideas? Thanks! CJ
  8. cjblake

    trusted connection error from Query Analyzer

    On one of my SQL Server installations I have a linked server defined. I have created a stored proc that queries the linked server. If I log into the server as me (I'm an administrator) and use Query Analyzer to run the SP, it runs fine. If I am using QA from my own PC, I get: Login failed for...

Part and Inventory Search

Back
Top