Viewing 15 posts - 226 through 240 (of 381 total)
One thought: use a uniqueidentifier column and the NewID. It is somewhat wide, but it is almost certainly going to be unique.
January 16, 2007 at 12:34 pm
What happens if there are more than one Attachment? What is the pattern?
Are you changing the c:\ to h:\ in place? DTS might not be the tool for you.
Can the...
January 16, 2007 at 9:36 am
SELECT e.Employee, e.ChildName, e.ChildSex, e.Age
FROM EmployeesChildren e JOIN
(SELECT Employee, ChildSex, Max(ChildAge) as Age
FROM EmployeesChildren
GROUP BY Employee, ChildSex) a
ON e.Employee = a.Employee
and e.ChildSex = a.ChildSex
and e.Age = a.Age
January 16, 2007 at 9:31 am
This would return the result you ask for if I had a way to distinguish the two patient 01 rows
select t.Patient, t.arm, t.bestres, t.delay
from t
inner join
(
select
arm, bestres, min(patient) as...
January 16, 2007 at 9:25 am
Your example has a flaw. What is the difference between the two Patient 01 rows? There is nothing to distinguish them. You need some key: a date, an identity.
January 16, 2007 at 9:21 am
I found the execute process task in SQL 2000 DTS.
January 16, 2007 at 7:28 am
I have basic workflow (Task2 starts on success for Task1, Task3 starts on success for Task2). I would prefer not to link the sets in a workflow. I'm not sure...
January 15, 2007 at 9:12 am
The following is clumsy, but it works:
CREATE FUNCTION dbo.GetEmployeesByUserID
(@userid int)
RETURNS TABLE
AS
RETURN SELECT e.EmployeeID from mstEmployees e
where (exists (select 1 from secUserMasterMappings s
where s.UserID = @userid...
January 15, 2007 at 5:44 am
This is puzzling. The executesql step 1 is not disabled is it?
January 15, 2007 at 4:20 am
I had a couple puzzles with your script (you have the wrong table in your second append query). Also, I didn't understand your result for user 1. Since all of...
January 15, 2007 at 4:18 am
What derived table did you try? What are you trying to achieve?
select o.*
from z_inquiry o
inner join
where inquirydatetime = (
select frontend_id, max(inquirydatetime) as maxinq_dt
from z_inquiry i
group...
January 15, 2007 at 3:52 am
Have you tried doing a backup and restore? That many times can be easier. When trying to move an entire database I get into problems with relationships.
Do you have logins...
January 15, 2007 at 3:40 am
You can store them in an image datatype.
The problem is that you need application code to load the data.
January 12, 2007 at 2:29 pm
I have set the priority for the Task3 steps higher than normal. I will watch to see if that achieves the results I want.
January 12, 2007 at 9:18 am
Is there a reason that you are not using the execute process task? I find that when the batch file returns an error, the execute process shows an error.
January 12, 2007 at 6:42 am
Viewing 15 posts - 226 through 240 (of 381 total)