Forum Replies Created

Viewing 15 posts - 3,676 through 3,690 (of 7,191 total)

  • RE: Rogue MDF and LDF file

    Jeff

    If the file is being used by another instance, that instance is going to be on the same computer. Are you able to see whether any other instances are...

  • RE: Verify Backups

    Agreed, yes, and much has been written about the importance of doing test restores. I still verify my backups as well - after all, there's no point in going...

  • RE: Verify Backups

    You can query the code of stored procedures in table [syscomments].

    Best to use sys.sql_modules, since syscomments starts a new row after every 4000 characters (I think) of the definition. ...

  • RE: Puzzling SQL query using MERGE statement

    Where you have a duplicate, how do you decide which one to throw away? And why do you want to use MERGE? MERGE is used for updating, inserting...

  • RE: Find the availability on the user

    You still haven't shown us what you've tried. But from your required results, it looks as if you need a PIVOT query. If you search for "pivots and...

  • RE: Find the availability on the user

    Sounds like homework to me. What have you tried?

    John

  • RE: Subqueries in SQL with different data types

    Tony

    If it's a collation conflict you're suffering from, you can use the COLLATE clause in your query. If the problem is different data types, you can use CAST or...

  • RE: Dynamic Query issue

    Please will you post the actual code you're running? If that is it, I would recommend sorting out the typos, syntax errors and undeclared variables before you worry about...

  • RE: Process Monitor Program_Name question

    Brandie

    Could the second one be from Object Explorer or similar? I think you get the third for linked server queries.

    John

  • RE: Convert xml file into sql table

    Import the XML into a staging table, then the <XMLColumn>.value function to shred it into the individual columns.

    John

  • RE: Execution Plan Behavior

    Chandan

    Yes, for simple queries such as the one you posted, that's a good summary. Of course, there are reasons why the query optimizer may not pick the best plan...

  • RE: Execution Plan Behavior

    Thanks. But the index which is being used is having only 1 column and if the other column is being retrieved internally from clustered index, shouldn't the execution plan show...

  • RE: Execution Plan Behavior

    A non clustered index consists of the index key column(s) plus the clustered index column(s). That's why your query was covered by the non clustered index.

    John

  • RE: Unzip file from T-SQL Script

    Do what I'd do, and type "xp_cmdshell" into your favourite search engine. If you're not familiar with the command line syntax of whatever zip utility you're using, you'll need...

  • RE: Memory Allocation Across Multiple Database Instances

    What do you mean by "allocated memory threshold"? Is it an alert that's generated when a particular process uses more memory than the threshold you set? If so,...

Viewing 15 posts - 3,676 through 3,690 (of 7,191 total)