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...
The probability of survival is inversely proportional to the angle of arrival.
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,...
The probability of survival is inversely proportional to the angle of arrival.
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.
The probability of survival is inversely proportional to the angle of arrival.
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.
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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,
...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
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...
The probability of survival is inversely proportional to the angle of arrival.
February 22, 2011 at 8:49 am
Viewing 15 posts - 631 through 645 (of 1,048 total)