Forum Replies Created

Viewing 15 posts - 42,541 through 42,555 (of 49,571 total)

  • RE: Use Table Column Contents As Where Clause

    Derek (12/6/2008)


    I would think WHERE (dbo.tblSkillsetType.SQLSnippet) would cause an error

    Yes it will. The where clause must consist of conditions, where one expression is compared against another. As I said in...

  • RE: Use Table Column Contents As Where Clause

    The only way to do that is to use dynamic SQL, build up the final query and then use sp_executeSQL to run it.

    Be aware of the downsides of dynamic SQL...

  • RE: Error 3201 - Can''t Open Backup Device - Network Drive

    Does the directory 'R:\MSSQL\BACKUP' exist?

    Is there anything more useful in the SQL error log

  • RE: Using temp tables to break up complex queries

    sqlguy (12/5/2008)


    And I know that if a query has 5 or more tables then this indicates that the query should be refactored.

    Why 5? What's magic about a 5 table...

  • RE: Deadlock occured?

    madhu.arda (12/5/2008)


    Dead lock occured again. I have couple of questions:

    1.In this dead lock, SPID 90 is automatically killed by SQL Server right?

    Spid 90 wasn't even involved. The deadlock...

  • RE: Query Performance

    GSquared (12/5/2008)


    Replace all the Or and In statements with Union queries and the whole thing will probably speed up. Depends on your indexes, of course, but it can make...

  • RE: Improve SQL Query Performance

    Tables, indexes and execution plan please.

    For the exec plan, right click on the plan (in management studio) select save as. Save it as a .sqlplan file. Zip that file and...

  • RE: SQL Query not returning records for today

    Don't change the where clause. You don't want to change what rows the query's returning (affected by the where clause), you want to change how the results are displayed (the...

  • RE: Certain Number of rows before SQL will use an index ?

    Depends on the table, depends on the query, depends on the index.

    e.g if the table has say 100 rows will it still use table scans despite there being indexes present...

  • RE: Changing from NVARCHAR to VARCHAR ... major performance difference?

    I'm going to guess that the columns are varchar and there's an index on at least one of them. If you compare a varchar column to an nvarchar parameter, SQL...

  • RE: network load balancing sql 2000

    I'm not even sure you can.

    Maybe for a static reporting environment where all databases are static, but that's an odd case. SQL just doesn't scale out.

  • RE: network load balancing sql 2000

    Yes, but it's not the same databases.

    Active/active is two instances of SQL each with their own databases, one running on each node (hence each node is active) and set...

  • RE: Transaction Logs

    juancabrer (12/5/2008)


    3. Open the transaction log that took place after data corruption took place, delete the transactions that corrupted the data, save the transaction log, and apply this new saved...

  • RE: network load balancing sql 2000

    There's no way to have two active instances of SQL on two machines using the same database files (as you would have in a load balancing scenario). The way clustering...

  • RE: Best SQL config for SAN

    Barkingdog (12/5/2008)


    What is your opinion of this layout? OK, overkill, not enough?

    Where are you going to put your backups?

Viewing 15 posts - 42,541 through 42,555 (of 49,571 total)