Forum Replies Created

Viewing 15 posts - 631 through 645 (of 1,048 total)

  • RE: calculation intensive sql

    One thing so consider is whether or not to run a bunch a separate single count queries, as you have proposed, or to run a single query with a number...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: So many Subqueries....

    Wow. That is some plain ugly looking TSQL.

    Having said that, I would have done exactly what you did, if for no other reason than to sustain my own sanity,...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: books to read about sql server performance

    Writing the queries is only half of the equation. The other half (and arguably the more important half) is the database design itself.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Help with tuning a troublesome index

    All I can say is that if you don't want to normalize it you will have to live with the performance issues.

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Help with tuning a troublesome index

    This data is not normalized, and it will end up being very FAT & containing a lot of repetitive bloated data that will impact your performance when you get 700K...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Missing row delimeter {CR}{LF} in .txt file

    I am not aware of any "handy" tool to exactly what you want.

    If it were me I would write a little .net utility to read the file and write it...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Grant permission to create table in SP

    I would suggest that you create a temp table (in tempdb) for this as workaround.

    You will still have the create table permission issue in tempdb but what have done is...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: BEGIN/COMMIT TRANSACTION question

    several comments here:

    @@ERROR is only correct for the statement immediately preceeding it so is not reflecting the status of the actual delete.

    I think try catch is a superior way to...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Better way of extracting the first 5 bits from bigint and convert them to int?

    Only way to be sure is to write a CLR (c#) version and test it.

    I wrote a T/SQL function to convert an (varchar) IP address to a bigint and compared...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is there any way to keep one global temp table, and avoid to be changed by other SQL Script?

    In you specific case, I think this methodology would work:

    set @sqlInsert = 'SELECT @ResultCountOut= COUNT(*) FROM ' + @tblResultName

    EXEC sp_executesql

    @sqlInsert,

    ...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Is there any way to keep one global temp table, and avoid to be changed by other SQL Script?

    How I typically deal with this problem is to generate a temp table name based upon something unique to the process. In a typical case you can use the PID...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: MAXDOP setting ignored

    I don't think you can draw anything conclusive about DOP based on how many threads you see executing. Even with One CPU a query can be handled with multiple SQL...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Unable to perform a simple select count - SQL 2008

    that is not the process doing the count(*) that is your sp_who2 process.

    to avoid confustion. USE MASTER then run the sp_who2 ... look only for results concerning...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Unable to perform a simple select count - SQL 2008

    You may not have seen my edits:

    The reason a select * can return almost immediately is that it doesn't have to read the entire table (all data pages) before returning...

    The probability of survival is inversely proportional to the angle of arrival.

  • RE: Unable to perform a simple select count - SQL 2008

    how many rows are in the table? (I mean approximately?)

    The reason a select * can return almost immediately is that it doesn't have to read the entire table...

    The probability of survival is inversely proportional to the angle of arrival.

Viewing 15 posts - 631 through 645 (of 1,048 total)