Viewing 15 posts - 12,526 through 12,540 (of 13,469 total)
did you update statistics?(see BOL "sp_autostats")
As I stated before, long running queries are often a result of bad statistics.
two servers, even with the same data, can have different statistics (and...
August 10, 2007 at 9:51 am
yeah this is a common scenario in smaller shops as they get bigger....Jeff's suggestions are right on; you'll upset the apple cart so to speak , as the developers must...
August 10, 2007 at 7:10 am
I think the update is a little deeper, you name your views just like I do with "vw_" preceeding it,and that makes me think you need to take look a...
August 10, 2007 at 6:42 am
it looks like you are actually updating a view, rather than directly accessing the underlying tables:
UPDATE vw_CostPriceUpdate_Update
SET Cost =[UK Cost]
if you do sp_helptext vw_CostPriceUpdate_Update, i bet the...
August 9, 2007 at 1:01 pm
this is a prototype example, because your field names, as welll as other manditory (NOT NULL) columns are not mentioned here.
you want to be able to insert a note from...
August 7, 2007 at 2:53 pm
the script below will get you started; the core table you are looking for is sysforeignkeys
typical results:
| CONSTRAINTNAME | REFTABLE | REFCOLUMN | FKTABLE |
August 7, 2007 at 11:28 am
here's how i would do it, there's probably a better way:
[edited after posting: Mike Howell beat me to it...same solution i think]
CREATE TABLE #TEST(
SERVER_NAME VARCHAR(30),
DATABASE_NAME VARCHAR(30),
DBSIZE INT)
INSERT INTO #TEST(SERVER_NAME, DATABASE_NAME, ...
August 7, 2007 at 11:11 am
speaking form the standpoint of a bit of experience, too many times I've encountered a situation where dates or partial dates were entered into say, a varchar field, It caused...
August 7, 2007 at 10:04 am
you have to group by the case statment in this situation..it's wordy, but that's how it works...only in the ORDER BY clause can you reference by alias, so it's like...
August 7, 2007 at 9:56 am
glad I could help.
I was wondering if your stored procedure will save your notes correctly if no notes exist yet...it wasn't obvious to me whether the notes get saved based...
August 7, 2007 at 9:52 am
I'm assuming that on this document, it looks something like this based on your original post.
You would want to add something similar in blue; note how i removed the...
August 7, 2007 at 9:11 am
I don't think the issue is with Conn.Execute where it is calling that stored proc.
I think you have a statement after Conn.execute that is referencing a recordset (notes maybe?) that...
August 6, 2007 at 8:01 am
here's one of many ideas you'll get:
since you have the SQL, put it in query analyzer and get the estimated execution plan.(control K in QA)
look at the plan and see...
August 3, 2007 at 12:33 pm
usually select @@SERVERNAME wil return what you are looking for. if it were a n instance, like MYSERVER\SQL2005, it would be the part before the slash.
August 3, 2007 at 7:01 am
the status column is used a s a bitfield mask to query whether an index is clustered,unique, etc.
the status of zero is going to mean false for all indexproperties; it...
August 3, 2007 at 6:59 am
Viewing 15 posts - 12,526 through 12,540 (of 13,469 total)