Viewing 15 posts - 21,151 through 21,165 (of 22,202 total)
Everything everyone else said is 100% true. Just understand that if you don't need case sensitivity, using it just to be cool can add an incredible amount of overhead to...
January 28, 2008 at 5:49 am
Designing web pages & managing databases are two different beasties. But since you ask, I have all of the Inside SQL Server 2005 series sitting on my desk, well thumbed...
January 28, 2008 at 5:45 am
We've actually got a method that does this pretty well. We try to use it sparingly, but some of our reports from some of our systems have legitimate requirements to...
January 28, 2008 at 5:42 am
And be sure to check the execution plan to be sure that indexes are being used at all.
January 28, 2008 at 5:36 am
Even if you don't explicitly state a return value, all stored procedures have one. I prefer to do something along these lines in 2005 (similar, but different error handling, in...
January 27, 2008 at 10:38 am
As the size of the database increases, sp_updatestats can degrade pretty seriously. You may need to identify those particular tables or indexes that need more frequent updates and use UPDATE...
January 27, 2008 at 10:34 am
Strings are supposed to be surrounded with single quote marks. Quoted Identifiers allows you to put double quote marks around reserved and key words to use them as objects within...
January 27, 2008 at 10:29 am
fn_listextendedproperty, as you've found, only returns values where those values exist. What you'd need to do is combine the output of that query through a left join with a valid...
January 26, 2008 at 4:53 am
Theres a catalog view sys.extended_properties. You should be able to pull it right out of there.
January 26, 2008 at 4:42 am
You could output as XML and then pass it on to the presentation layer, but it'd probably be a lot easier overall to format the output on the app.
January 26, 2008 at 4:38 am
Cool, 128 character three place numbers. I use those all the time.
January 25, 2008 at 1:18 pm
I like Mark's because it will only return those customers who have orders in all the included years. Much more precise.
January 25, 2008 at 9:04 am
It's hardly optimal, but you could:
SELECT...
FROM...
WHERE YEAR(OrderDate) IN (2001,2002,2003,2007)
You could add those values to a temp table & join on it. That would probably be better than than in IN...
January 25, 2008 at 9:02 am
My two cents, use the stored procedure. Cascading deletes is extremely unforgiving. That can be good, but it can be bad. As long as you've got appropriate constraints in place,...
January 25, 2008 at 6:33 am
I did just a bit more searching. I wasn't sure if it was possible to identify the proc you're in, let alone that proc that called you. If you look...
January 25, 2008 at 6:00 am
Viewing 15 posts - 21,151 through 21,165 (of 22,202 total)