Viewing 15 posts - 48,151 through 48,165 (of 49,571 total)
Jeff Moden (12/2/2007)
A
Why would you say that?
I'd say B. Dates should be stored in datetime columns, not seperated out. There are a couple of good reasons
There are some quite powerful...
December 3, 2007 at 4:05 am
First I would suggest turning off the autoshrink. That will try and shrink both the data and the log files.
In simple recovery mode, the transaction log will grow to a...
December 3, 2007 at 1:21 am
They're in a different database to the one you're in. Look at the DB_ID.
If you're using SQL 2005 SP2, you can use the enhanced version on object_name that takes...
December 3, 2007 at 12:33 am
karthikeyan (11/28/2007)
If you know answer then post it otherwise dont try to chear other persons.Understood.
Who gave you the right to order people around here?
And please lay off on the...
December 2, 2007 at 11:54 pm
karthikeyan (11/27/2007)
Gila,I am not ordering you,Just my kind suggestion.Thats it.Because i am using sql2000,so if you give some generic query then i will try it out.
If you want a SQL...
December 2, 2007 at 11:36 pm
Nice. I'm also a little tired of people looking for a free lunch.
Problem is, those who need it most will likely not be the people who read it.
November 27, 2007 at 2:38 am
SET NOEXEC ON
Run the query.
With noexec on, all SQL will do is parse and compile the query. If it encounters syntax errors, you'll get the error back.
I could be mistaken,...
November 27, 2007 at 2:27 am
Thanks. Will let you know afterwards how it went. I'm not looking forward to it, since admin's not my main job function.
November 27, 2007 at 1:37 am
In your case, probably because the column is not nullable, or because there's an index on that column and SQL's decided that it's the best way to do the counts.
November 27, 2007 at 1:28 am
If you've never done a full database backup since switching to full recovery mode, the log will auto-truncate as if it was in simple recovery mode.
Fairly simple reason. Without a...
November 26, 2007 at 2:09 pm
Ha! Found it. That had me stumped for some minutes.
You're missing an END. There's a BEGIN on line 7, but no matching end. Put the END after the last EXEC...
November 26, 2007 at 1:59 pm
Very strange. Also getting syntax errors when I get management studio to do a syntax check.
November 26, 2007 at 1:56 pm
Jeff Moden (11/26/2007)
The "how long" and "who's going to be using this and how" actually doesn't matter much.
I had a reason for writing those, but now I can't...
November 26, 2007 at 1:38 pm
Viewing 15 posts - 48,151 through 48,165 (of 49,571 total)