Forum Replies Created

Viewing 15 posts - 6,466 through 6,480 (of 6,485 total)

  • RE: Query suddenly runs slowly

    Using a base table versus a # temp table will help if your tempdb is either being hammered on, or is badly fragmented.  If you're using a lot of #temp...

  • RE: XML Data Types and mathmatical operations

    Well - it all seems to depend on how much you plan on using it and/or how big of a dataset we're talking about.  In defining the XML data source,...

  • RE: Query suddenly runs slowly

    Have you considered dumping the subquery results to a separate table, preferrably indexed (or dump to it first, then index), and run the outer query based on the new table?

    It...

  • RE: Copy SP from main database to other databases

    Query analyzer might be the quickest way to do this.

     

    Open up QA, and use the object browser to find the SP.  Right-click on it, and pick "Script into new window...

  • RE: Failed Login

    Check scheduled DTS packages.  If they involve outside data sources and you're using SQL server logins, you might see that type of entry.

  • RE: Avoid insert or update during table reading

    encapsulate whatever you're doing in a transaction, and then use a locking hint to prevent updates. 

    UPDLOCK looks like the one, and be sure to specify to do it at...

  • RE: Help Querying Data

    SELECT <columns>  FROM CompanyCategory WHERE CategoryID in

    (select companyid from CompanyCategory where categorid in (<all categories you want&gt having count(distinct categoryid)=<count of categories you want&gt

  • RE: Inserting a new row into a table by copying an existing one and changing the key(s)

    A few comments:

    • if the purpose of this copy is to fill in default values - why not use the default value property of the various fields?
    • your primary key is by...
  • RE: Mysterious random timeouts in stored proc execution

    Is the database trying to grow during that time? 

  • RE: Timeout on Insert

    I've had this happen before.  It did have something to do with the clustered index in my case.

    Keep in mind that the clustered index determines how the data is stored...

  • RE: Help

    To build on peter's example from before:

     

    Set @sql=' SELECT '+ @fiyatgrup+'*'+ @fiyatgrup+'Brm' result FROM dbo.GenelSFiyatlari'+

      ' WHERE UrunID = '+@urunid+' AND...

  • RE: Query suddenly runs slowly

    I might be missing something, but it seems to be that the outer GROUP BY and aggregate function isn't needed.  Your subquery already seems to be summarizing things to return...

  • RE: sorting puzzel

    I'll pass on a bit of wisdom someone gave me a while back when I was ranting about some of my customers....

    "The pay's the same"

    As long as the paycheck continues...

  • RE: DTS Package failing - sometimes

    Now - I can't address why it works in some places and not others - but that error usually is data-conversion or collation-related.  like taking oracle date fields and shoving...

  • RE: Help

    Well - do what you will while you're learning.  That's how you learn after all

    what I think he was getting at is that you're...

Viewing 15 posts - 6,466 through 6,480 (of 6,485 total)