Viewing 15 posts - 286 through 300 (of 424 total)
Mike Feuti (3/11/2008)
Preferred name.email name_address email purpose
0...
March 11, 2008 at 10:26 am
Mike Feuti (3/11/2008)
...update name_address
set name_address.email =(this is the part I don't know)
(name_address.email needs to be copied from the name_address table where purpose='Home' to the name_address table where the purpose='Company')
and preferred_mail='0'
you've...
March 11, 2008 at 9:43 am
suggestion: create the view in the required database and create a synonym for that view in the desired database.
March 9, 2008 at 6:15 pm
the files you've identified are not sql server full text index catalogs.
you've posted this question in multiple forums on multiple sites. what indexing product (outside of sql...
March 9, 2008 at 6:12 pm
the vs debugging package is safe but should be placed on development servers only. i'd personally keep them off test servers also (since i think test should mimic production...
March 7, 2008 at 3:53 pm
by "auto-generate primary key", i assume you're referring to an identity column. if so, we typically add the identity column as the last column of the table, then create...
March 7, 2008 at 7:47 am
here's one solution:
select A.username, A.id
from your_table as A
join (select username, max(id) as max_id
from your_table group...
March 7, 2008 at 7:41 am
here's an old school alternative with another temp table:
select row_number() over (order by opid asc, ownerchg_date asc) as seq, *
into #op_hist
from #op_owner_history
select C.*, isnull(N.ownerchg_date,getdate()) as end_date
from #op_hist as C...
March 6, 2008 at 6:36 pm
Cast rank_code as a varchar.
SELECT CASE RANK_CODE WHEN 1 THEN 'officer'
ELSE cast(RANK_CODE as varchar) END AS Rank_Code_Text
FROM tableA
Also, you should not redefine an existing column in the SELECT. ...
March 6, 2008 at 10:12 am
you appear to be creating "TransferLevel" in the CTE.
select ..., TransferLevel = 0 will name the output column "TransferLevel".
Does "TransferLevel" exist in dbo.CardActivationDetail or dbo.CardActivationDetail? If not, that's...
March 4, 2008 at 11:30 am
create trigger
on ms273512
after insert, update
begin
if ( update( {approval_field} ) )
begin
update rm00101
...
March 3, 2008 at 5:43 pm
have you considered using reporting services? it supports all types of advanced/rich formatting.
March 3, 2008 at 5:35 pm
Ian Crandell (3/3/2008)
March 3, 2008 at 5:33 pm
look for 'ROLLUP' in the sql server books and read the 'Summarize Data Using ROLLUP' topic.
March 3, 2008 at 3:06 pm
the trigger can limit it's actions based on fields. you'd just have a
[font="Courier New"]create trigger trigger_name on table_name
after update as
begin
if update(column_name)
begin
...
February 29, 2008 at 12:08 pm
Viewing 15 posts - 286 through 300 (of 424 total)