Viewing 15 posts - 4,771 through 4,785 (of 6,036 total)
It's clear example of hardcoded business logic.
Wrong by definition.
This is the core of your problem, not ANSI standad or its implementation in MS SQL.
November 15, 2006 at 5:57 pm
Russians use to get stuck with this kind of questions after 2nd bottle of vodka.
What you've got today? ![]()
Yes, this is it, and...
November 15, 2006 at 3:42 pm
> We were asked how to do this in MS SQL Server,
What makes Edwin's suggession extremely "useful".
> Until you are willing to post all your code as I did,...
November 15, 2006 at 3:18 pm
It's good to read manual time to time. At least when you are in trouble.
See BOL:
ORDER BY 1 means "order by 1st column in the query".
ORDER BY 2 means "order...
November 15, 2006 at 3:03 pm
During DELETE only LOG file is growing. So, this may lead to situation when DB run out of space.
So, you need to shrink it just not to allow to grow.
.mdf...
November 15, 2006 at 2:50 pm
> No, I don't remind myself of my own kids.
You should. Because (quote) "they look for things and don't see them when it is right in front of them."
Does syntax...
November 15, 2006 at 2:33 pm
And for SHRINKDATABASE specify you need to shrink LOG file only.
Then you can run it not only off hours. It will methodically delete records by small portions and let everybody work...
November 15, 2006 at 2:20 pm
Looks like you need to add into the loop 2 statements before WAITFOR:
BACKUP LOG WITH TRUNCATE_ONLY
DBCC SHRINKDATABASE
Sounds terrible, but it seems to be the only exit from this dead end.
It's...
November 15, 2006 at 2:05 pm
WHERE?
Select * From Table
Where Date(timestamp_column) >= DateAdd(Day, 1, DateAdd(Month, -1, Convert(Char(10), GetDate(), 120)))
Where is it "RIGHT HERE"?
Don't yourself remind you of your kids ?
November 15, 2006 at 1:44 pm
Sorry to disappoint you, but your test is not right. ![]()
1st, Edwin's query was this:
Select * From Table
Where Date(timestamp_column) >= DateAdd(Day, 1, DateAdd(Month, -1,...
November 15, 2006 at 1:03 am
You requested query for records with date FROM month ago TO moth ago + 1 day. You've got it.
Than you changed request - dates FROM month ago TO ... no...
November 14, 2006 at 9:09 pm
I did respond.
And respond was complete.
What you have found missing in that response?
November 14, 2006 at 7:58 pm
If it's an image it's not a link by definition. Everything going into image_column is an image, not link. Even if that image is just displaying picture of a link.
Easiest...
November 14, 2006 at 5:36 pm
Actually embedding photos is what image datatype is about.
If you don't want them to embed photos then just remove image column and replace it with nvarchar(255) one. They gonna store links...
November 14, 2006 at 5:06 pm
Yeah, you're bloody right. Terrible thing.
Try this:
Select Country
FROM CarrierRates.dbo.International R
WHERE R.Country_Cd = SUBSTRING(@ANI, 1, LEN(R.Country_CD))
AND R.City_Cd = SUBSTRING(@ANI, LEN(R.Country_CD)+1, LEN(R.City_Cd))
If you have computed column for...
November 14, 2006 at 4:53 pm
Viewing 15 posts - 4,771 through 4,785 (of 6,036 total)