Forum Replies Created

Viewing 15 posts - 151 through 165 (of 192 total)

  • RE: Indexing .doc files(adding functionality like monsterindia.com)

    Can you make use of SQL server full text indexing?

    Either way I could suggest a few options.

  • RE: understanding this query ( and UNION ALL)

    To break it down:

    With is part of the syntax of creating a Common Table Expression

    http://www.databasejournal.com/features/mssql/article.php/3502676

    If you look at the bit between the ()'s there are two select statements....

  • RE: A big Delete

    It's worth pointing out that I have about a 5 hour window to run this so it may need to span multiple days. One approach I had considered would be...

  • RE: A big Delete

    It looks like I made a mistake in the Schema def. The Clustered Unique key is actually on Cust_num, Order_Id.

    Almost all selects will join cust_num with another table also clustered...

  • RE: weekly Reports by using cross-tab query??

    Hi Jeff, I agree with you on the global temp table. In the query I actually use the current SPID as part of the name. It's not perfect but I...

  • RE: weekly Reports by using cross-tab query??

    how about this:

    Be careful of overflowing the 4000 byte variables and if there are more values for request you could expand this out to generate the insert statements dynamically too.

  • RE: weekly Reports by using cross-tab query??

    If you are using SQL2005, you could use the PIVOT() function. If you aren't you can get around this using dynamic SQL.

    Give me a few minutes, and I'll code up...

  • RE: Can I SELECT FROM a Stored PROC?

    I should have read the question in more detail, I'm sorry. INSERT INTO...EXEC Isn't going to do it because you only want specific columns.

    You could insert your results into...

  • RE: Can I SELECT FROM a Stored PROC?

    INSERT INTO table1(ColA, ColB, ColC)

    EXEC StoredProc1 'Param1'

  • RE: Join question

    Yikes! I've been there a few times.

    I suspect this isn't quite what you ment, but I have found this to be an extremely useful app.

    http://www.securiteam.com/tools/6J00S003GU.html

    Please tell me...

  • RE: Join question

    Cool. If you like I'll send you what I've been working on. It is a proc that performs analysis and resolves drift (both one way and two way) It will...

  • RE: Join question

    Sorry to chime in so late, but this sounds a lot like something I was working on awhile ago.

    Are you performing some sort of data drift analysis between servers?...

  • RE: UPDATE

    Ninja is correct and perhaps we both should have made that more clear, that the code was to demonstrate the general concept, and not a snippit to be used verbatim...

  • RE: UPDATE

    Good point Ninja,

    10000 would definitly be a more appropriate number. Depending on the width of the table, you could probably increase that number even further without SQL Server acquiring a...

  • RE: UPDATE

    Read this if other processes are going to need to read from or write to during the update:

    Vladin's suggestion of breaking the update into chunks is worth considering. When you...

Viewing 15 posts - 151 through 165 (of 192 total)