Viewing 15 posts - 106 through 120 (of 182 total)
Noel,
Who asked you? KIDDING!
CHEERS!
March 29, 2006 at 12:02 pm
even better.... I forgot about ROLLUP
--data
declare @t table (Yr int, Branch int, TRec int)
insert @t
select 2004, 1, 1000
union all select...
March 29, 2006 at 11:29 am
A little "bug" in SQL 2000 for INSERTED/DELETED tables is that you must join it with the source table, otherwise you only return 1 row or an error depending the...
March 29, 2006 at 11:00 am
--I don't know if this fits what you are looking for but I will post anyhow, because I never see anyone use compute
declare @t table (Yr int, Branch int, TRec...
March 29, 2006 at 10:55 am
You're using a "Text File (Source)" object?
Double check the file name and properties. It should not make a difference unless there's been more changed other than the the .dbf...
March 29, 2006 at 9:45 am
only thing I could think of is if the connection references the server "(local)" and the database doesn't exist on the workstation you are opening the package from.
March 15, 2006 at 10:40 am
There are few ways to do this, and if you search the forum, you'll find quite a few responses.
You need to make an executable out of the vb...
March 15, 2006 at 10:31 am
looks good, but you forgot to group by nbr.
March 12, 2006 at 10:39 pm
how about a new admin taking over for a careless admin
March 10, 2006 at 12:34 pm
--OR!!
declare @affected tinyint
SET @affected = 1
SET ROWCOUNT 1
WHILE @affected > 0
BEGIN
DELETE employee
FROMemployee
INNER JOIN
(
SELECT id, name, salary
FROM employee
GROUP BY id, name,salary
HAVING COUNT(1)>1
) dupes
ONdupes.id = employee.id
ANDdupes.name = employee.name
ANDdupes.salary =...
March 10, 2006 at 7:56 am
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/tsqlref/ts_ua-uz_82n9.asp
MSDN.com is your friend....
March 7, 2006 at 2:59 pm
--okay this mind teaser made an impression on me.
--I just made an efficiency edit I learned from another thread
SELECT DISTINCT t1.nbr, t1.dt, t2.dt, DATEDIFF(d, t1.dt, t2.dt) + 1...
March 7, 2006 at 10:10 am
Viewing 15 posts - 106 through 120 (of 182 total)