Forum Replies Created

Viewing 15 posts - 76 through 90 (of 122 total)

  • RE: tune up query

    There is an index+PK on this field, of course.

    The values are selected by the previous query and could vary every time.

    The second similar problem is:

    select value from tbl_value where test_id...

  • RE: dropping table with indentity referenced by FKs

    Thanks a lot - I just started to write my own script - you saved me bunch of time!

  • RE: dropping table with indentity referenced by FKs

    I'm doing conversion/upgrade involving a lot of old tables to be replaced by new ones or just deleted. It's a lot of time to find all FKs and then write...

  • RE: index/full scan help

    The statistics were showing fine, but they were update with analyze command - old way of doing it... I run the new gather_table_stats and suddenly a miracle - the cost...

  • RE: index/full scan help

    This is an Oracle query which I'm running from a DTS package to pull the data and feed my crystal report and staging tables.

    Except what is the difference if it's...

  • RE: joining to itself

    This is the query from my initial posting. It's an old report and I cannot change anything else then the select statement, but it still need to return multiple resultset...

  • RE: Just a thought: Which statement is faster?

    You cannot do this:

    ( SELECT COUNT(1) FROM Table2 WHERE v = Table1.Val ) != 0

    - use a variable to assign it to or include the !=0 in the inner...

  • RE: joining to itself

    One more complication - I cannot replace the single query for the report with procedure as I was thinking. I can not touch the report and it needs a...

  • RE: Just a thought: Which statement is faster?

    Everything will depend on the proper indexing. Generally, the inlist IN operator is not my favorite, although it works fine. I'm trying not to use "NOT IN" at all. "Exists/Not...

  • RE: joining to itself

    Hi Ganesh,

    good morning to you too but I'm almost ready to go to bed...

    This improved the performance - very good thinking. Thank you. In the same time, I redesigned the...

  • RE: not able to restore the database

    I do not like to use EM for this - you'll need with move option if these are not backups from the particular device.

    Try to make yourself a restore DB...

  • RE: where remote query will execute

    Thanks, guys!

    This is what MS confirmed but I was seeing something else going on...

    If I tried to run the first query above, the activity on the remote server A was...

  • RE: How to make maintenance plan in SQL server

    Thanks a lot, guys, for all of your input.

    The problems my co-workers have with their new DBA are almost solved due to this posting and they have their...

  • RE: Copying databases from one server to another.

    Hi, I'm sorry for the delay, i had a virus attack at home...

    Your script will work just fine, if you have the right logical names. ZRun restore fileoption -(check the...

  • RE: Copying databases from one server to another.

    This is a nasty error whoch appear when you have permission issues - you need SQL account to be an admin account on both servers. Make a search in MS website...

Viewing 15 posts - 76 through 90 (of 122 total)