Viewing 15 posts - 136 through 150 (of 358 total)
If I understand correctly, you should be able to use this. The in clause will return all of the cxa_adr_key values that currently have cxa_on_hold_flag = 1. The...
April 7, 2009 at 12:28 pm
After looking at the query a little more, I am not quire sure what you are trying to do. It looks to me like you are just trying to...
April 7, 2009 at 12:15 pm
You have it in the query twice with the same name.
update co_customer_x_address
set cxa_on_hold_flag = '1'
from
(select distinct a1.cxa_mailing_label, a1.cxa_adr_key, M.cxa_adr_key
from co_customer_x_address a1
outer apply
(select a2.cxa_adr_key from co_customer_x_address a2
where a1.cxa_adr_key = a2.cxa_adr_key)...
April 7, 2009 at 11:41 am
The first thing that stands out to me is that you need to alias the query in the from clause.
update co_customer_x_address
set cxa_on_hold_flag = '1'
from
(select distinct a1.cxa_mailing_label, a1.cxa_adr_key, M.cxa_adr_key
from co_customer_x_address...
April 7, 2009 at 11:35 am
Are you doing something like dropping and recreating the database for some reason? The first time a database is created, you can't perform a TLog backup until you have...
April 7, 2009 at 10:33 am
You can use the replace function as long as you want to replace all occurances of the server name.
Update Table
Set Col = Replace(Col,'ServerName','NewServerName')
If you just want to replace...
April 6, 2009 at 12:11 pm
I have never set up Database Mail using Gmail, but this link may help.
http://mail.google.com/support/bin/answer.py?hl=en&answer=13287
April 5, 2009 at 11:47 am
Both databases need to run on the same version. Here is a link.
April 4, 2009 at 12:02 am
The first thing that comes to mind is that the transactions are stored in the distribution database until they have been applied to all the subscribers. If connectivity is lost...
April 3, 2009 at 10:22 pm
Try this. You can set it to single user mode and immediately roll back all of the transactions. Then it should be all yours...
Alter Database MyDatabase Set SINGLE_USER With...
April 3, 2009 at 10:04 pm
Transaction Log backups are only supported using the Full and Bulk-Logged recovery models because the Simple recovery model truncates the transaction log on checkpoint (when the data is written to...
April 3, 2009 at 9:53 pm
You are only allowed to have one clusted index on a table. By default, when you create a primary key, a clustered index is created on the columns that...
April 3, 2009 at 9:50 pm
Thanks Jonathan. This one came in handy today.
April 1, 2009 at 12:20 pm
You can use the ISNULL function to return a 0 if the value is null.
Select ISNULL(val1,0) - ISNULL(val2,0)
January 20, 2009 at 9:21 pm
Thanks Jeff.
I knew there was a way to do it without the math, I just cound't think of it last night.
December 7, 2008 at 6:51 am
Viewing 15 posts - 136 through 150 (of 358 total)