Viewing 7 posts - 166 through 172 (of 172 total)
declare @pk int
insert into table1:
table1.cell1
,table1.cell2
,table1.cell3
select @pk = @@identity
insert into table2:
,table2.cell1
,table2.cell2
,table2.cell3
Regards,
Andy Jones
May 27, 2002 at 5:40 am
Insert into Car Values( 1 , 'Infiniti')
Insert into Car Values( 2 , 'Acura')
Insert into Car Values( 3 , 'BMW')
Insert into Car Values( 4 , 'Lexus')
Insert into Style Values ( 1...
May 24, 2002 at 4:20 am
Try :-
SELECT field1, field2 FROM table
order by
case
when field3 is null then 1
when field3 = '' then 1
else 0
end
,field3
Andy Jones
May 23, 2002 at 9:27 am
Yes, in an 'Execute SQL' task specify your sql statement to be something like :-
exec sp_Name ?
Then click the parameters button to assign the global varaible to the ? parameter.
Andy...
May 23, 2002 at 8:59 am
Create a global variable within the DTS package called month. The following ActiveX script will assign the current month to the variable which can then be referenced throughout the package.
'**********************************************************************
'...
May 23, 2002 at 2:57 am
Hi, how about :-
SELECT
*
from
account A
inner Join Contact C on a.primarykey=c.accountkey
inner join Address D on A.primarykey=D.foreignkey
WHERE
case
when @Aname is null then A.Name
else...
May 2, 2002 at 4:16 am
Hi Deejay, an option is,
SELECT
M_education.name,
M_Education.xdate AS enddate
ORDER BY
case @edu_asc_desc
when 1 then Enddate
else null
end asc
,case @edu_asc_desc
...
April 17, 2002 at 3:14 am
Viewing 7 posts - 166 through 172 (of 172 total)