Viewing 15 posts - 631 through 645 (of 1,048 total)
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...
March 2, 2011 at 7:12 am
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,...
March 1, 2011 at 3:02 pm
Writing the queries is only half of the equation. The other half (and arguably the more important half) is the database design itself.
February 28, 2011 at 11:00 am
All I can say is that if you don't want to normalize it you will have to live with the performance issues.
February 28, 2011 at 10:39 am
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...
February 28, 2011 at 8:25 am
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...
February 28, 2011 at 8:12 am
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...
February 25, 2011 at 12:48 pm
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...
February 24, 2011 at 3:29 pm
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...
February 24, 2011 at 11:11 am
In you specific case, I think this methodology would work:
set @sqlInsert = 'SELECT @ResultCountOut= COUNT(*) FROM ' + @tblResultName
EXEC sp_executesql
@sqlInsert,
...
February 24, 2011 at 7:05 am
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...
February 23, 2011 at 6:58 am
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...
February 22, 2011 at 11:20 am
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...
February 22, 2011 at 9:03 am
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...
February 22, 2011 at 8:54 am
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...
February 22, 2011 at 8:49 am
Viewing 15 posts - 631 through 645 (of 1,048 total)