Viewing 15 posts - 6,046 through 6,060 (of 14,953 total)
Update dbo.MyTable
set Column = replace(Column, 'ABCDEF', '')
where Column like 'ABCDEF%';
Does that get what you need?
November 15, 2010 at 1:12 pm
Oh, and if this is for homework, you could also potentially use a loophole in the exact wording of the question, and build a cursor with an Order By in...
November 15, 2010 at 1:11 pm
You could do something stupid like:
select max(Salary)
from MyTable
where Salary <
(select max(Salary)
from MyTable
where Salary <
(select max(Salary)
from MyTable
...
November 15, 2010 at 1:09 pm
Are all the rows getting the same update? If so, modify the Where clause to include all the rows you want.
If not, what are some sample rows?
November 15, 2010 at 12:36 pm
I've used maintenance plans in SQL 2005 and 2008. Haven't used them in 2008 R2 yet. They work well enough for shotgun maintenance. They do backups well...
November 15, 2010 at 12:35 pm
SSIS FTP object doesn't do SFTP, as already mentioned.
I used WinSCP for this when I had to do it a little while back. They actually have a documentation page...
November 15, 2010 at 11:42 am
It's part of the max objects.
November 15, 2010 at 11:40 am
Ron, that'll work if you're processing one row at a time.
If you want to query a set of rows of data, add a Where clause that checks that the patindex...
November 15, 2010 at 10:52 am
I bet they loved the line about a laptop!
November 15, 2010 at 10:50 am
First, variables are batch-specific. You can't have a batch separator ("GO") between declaring and using. That's your biggest problem. Fix that first, see if you still have...
November 15, 2010 at 9:08 am
Jack Corbett (11/15/2010)
Grant Fritchey (11/15/2010)
November 15, 2010 at 9:06 am
Jack Corbett (11/15/2010)
GilaMonster (11/15/2010)
i have a partially written blog post, just trying to decide if i want to expose...
November 15, 2010 at 9:03 am
Take a walk around the block and look at the scenery for burnout. Trust me, it works. Sometimes takes a few laps.
On overwhelm, pick something that you can...
November 15, 2010 at 8:48 am
Adam Gardner (11/12/2010)
Michael Valentine Jones (11/12/2010)
... “We’re leaving Denver right now; we should be in Kansas City in about 3 hours.”Where are the flying cars I was promised?
The people who...
November 15, 2010 at 6:25 am
Viewing 15 posts - 6,046 through 6,060 (of 14,953 total)