Viewing 15 posts - 11,041 through 11,055 (of 14,953 total)
venki (2/9/2009)
GSquared (2/9/2009)
If you put two apostrophes in a row in that, SQL will allow it.
Thanks for your response.
But my question is I want to do it in single stmt.
Actually,...
February 10, 2009 at 8:02 am
You'd have to build something like that yourself, or set up your maintenance plan to have one backup and cleanup task per database. You can do that, but keep...
February 10, 2009 at 8:01 am
No clue on that one. I've never seen that happen before.
February 10, 2009 at 7:56 am
Will a drug have more than one price? How about more than one compliance value or more than one "treated days" value?
Perhaps the correct solution would be to do...
February 10, 2009 at 7:53 am
Bruce W Cassidy (2/9/2009)
February 10, 2009 at 7:43 am
GilaMonster (2/9/2009)
Vijaya Kadiyala (2/9/2009)
What if the table already exists, so in this case we have to use Update Statement right!!
Why?
Alter Table Add .... and add the computed column to...
February 9, 2009 at 2:52 pm
You're right. Didn't think it through quite far enough. Try this instead:
create table #T (
Ver char(10) primary key);
declare @Alpha char(26)
select @Alpha = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'
insert into #T (Ver)
select substring(@Alpha, number,...
February 9, 2009 at 12:56 pm
You might try something like this:
create table #T (
Ver char(10) primary key);
insert into #T (Ver)
select 'A' union all
select 'B' union all
select 'AA';
select *
from #T
order by reverse(ver) desc;
Returns:
AA
B
A
February 9, 2009 at 12:29 pm
In maintenance plans, there's a "Cleanup Backup task" that can do that for you.
February 9, 2009 at 11:47 am
If you put two apostrophes in a row in that, SQL will allow it.
February 9, 2009 at 11:43 am
Your post includes "if either dollar type 1 or 2 > 0". Under what conditions would this not be true? Or does this mean something other than what...
February 9, 2009 at 11:43 am
I guess I'd rather have ignore_dup_key off and have the insert code validate the data with an Exception operation. That's going to be easier to document, and it's going...
February 9, 2009 at 11:37 am
Welcome to SQL. Like anything else, it certainly has its quirks. 🙂
February 9, 2009 at 11:31 am
Vijaya Kadiyala (2/9/2009)
What if the table already exists, so in this case we have to use...
February 9, 2009 at 11:27 am
Viewing 15 posts - 11,041 through 11,055 (of 14,953 total)