Viewing 15 posts - 7,516 through 7,530 (of 7,545 total)
> Kill connections is pretty good. <
No, it's not - ALTER DATABASE should be used.
And if you really want to issue specific KILLs, you can do it something...
November 28, 2006 at 9:27 am
Try looking at table "syscolumns". It includes not just table columns but also stored procedure columns .
For example:
SELECT *
FROM syscolumns WITH (NOLOCK)
WHERE id...
November 27, 2006 at 3:17 pm
Change @Qry from VARCHAR(5000) to VARCHAR(8000).
November 27, 2006 at 3:14 pm
I too don't like a "t"|"tb[l]" prefix, no least of all because a view can be changed to a table and vice-versa. Column prefixes, of any type, are even worse.
I do...
November 14, 2006 at 10:01 am
No, "wrong situation" refers primarily to an application being added to the server. And not necessarily a full-blown business app either.
Say, instead, Java applets are added to the server. ...
August 21, 2006 at 11:10 am
>> How much memory does SQL use on startup? <<
I disagree about the relevance of this q. This knowledge is not only useful but vital for a senior DBA. Otherwise,...
August 21, 2006 at 9:18 am
Split the varchar and int portions for storage purposes only. You can still combine them for display, etc..
So, create two new columns, one varchar and one (small)int, copy the existing...
July 25, 2006 at 9:28 am
I recommend (Philip) Pratt's "A Guide to SQL". I used it for db classes I taught and thought it was excellent for students.
July 25, 2006 at 9:15 am
All those LEFT JOINs will kill your performance.
But, would you really ever need to process the Item master table? Wouldn't you be more likely to be processing the Applications, etc.,...
July 25, 2006 at 9:07 am
I would think that the first time the proc is run, and any future time that it has been paged out of the cache, there will be more overhead for...
July 25, 2006 at 8:46 am
Very sweet!
But why the extra overhead of declaring and setting a variable? Why not just return the calc'd value?
...
BEGIN
RETURN CASE WHEN ...
END
July 25, 2006 at 8:36 am
Make sure the table is not fragmented. You will have to add an index to check and/or adjust fragmentation. Once the table is compacted, if necessary, you can drop the...
June 28, 2006 at 12:37 pm
The method below creates and loads a table data type to hold the desired datetime ranges. The defaults are as you specified -- from 17:00 the previous day to 17:00...
June 28, 2006 at 12:32 pm
If you want to check the identity column specifically, you can use the reserved name IDENTITYCOL, which will always refer to the identity column of any table:
SELECT * FROM tableName
WHERE...
June 28, 2006 at 12:06 pm
Viewing 15 posts - 7,516 through 7,530 (of 7,545 total)