Viewing 15 posts - 20,536 through 20,550 (of 22,196 total)
To give you a specific answer, sample structures and data and code are necessary. To give you a general answer, take a look at the execution plans for the queries...
April 29, 2008 at 5:58 am
A statement is a single piece of work, whereas a batch is a whole set of work.
So, for example:
DECLARE @Id INT;
SET @ID = 52;
SELECT *
FROM dbo.MyTable
WHERE Id = @Id;
That...
April 29, 2008 at 5:48 am
I posted the same question at Connect. One of the MS reps gave me a good response.
https://connect.microsoft.com/SQLServer/feedback/ViewFeedback.aspx?FeedbackID=244214
April 29, 2008 at 5:44 am
I've been burned way too many times by poor use of functions to be any kind of advocate for them. However, if you really want to drill down on them,...
April 29, 2008 at 5:37 am
The queries work well when the data is loaded, but don't work when the tables are empty? I think the previous post may be right, the execution plans are still...
April 28, 2008 at 6:52 am
Doggone it! I was getting excited that I might be able to tell you something rather than ask you something.
😛
April 28, 2008 at 6:40 am
As to your initial question, it's two schema's in one database, not two databases.
As to your further explanation that you'll be bringing other applications online. As the other applications come...
April 28, 2008 at 5:24 am
Any performance degredation is not linear. Depending on how you're working with the system, there may be very little degredation at all. In the instances within the article, we were...
April 27, 2008 at 8:32 pm
Personally, I would have two schema's within the same database. This will allow you to lock down one schema, but have referential integrity between the schemas where as you would...
April 25, 2008 at 8:59 am
You know if you're getting different plans and different performance, you might have instances where one piece of data generates a plan that it can use and a seperate set...
April 25, 2008 at 8:53 am
I think I'm losing track of the thread. Where are you with this? Have you tried changing the indexes in any of the ways that have been proposed? Have any...
April 25, 2008 at 8:33 am
This is great! What a lot of fun, and really good information. I do like the DBA in traditional DBA garb doing the performance dance.
April 25, 2008 at 6:51 am
Agreed on using JOIN statements instead of IN statements.
Do you really need the DISTINCT? That's usually added when the data is bad, the structure is bad, or the where clauses...
April 25, 2008 at 6:34 am
Unless they're they're the only things in the field, then you could get away with:
SELECT...
FROM...
WHERE MyField = 'Project Managers Book'
OR MyField = 'The Project Book'
...
April 25, 2008 at 6:01 am
There was a time when I was recommending using this code to eliminate dynamic SQL and still have a multi-valued search query:
SELECT....
FROM....
WHERE...
AND CASE WHEN @LocationTypeId...
April 25, 2008 at 5:58 am
Viewing 15 posts - 20,536 through 20,550 (of 22,196 total)