Viewing 15 posts - 121 through 135 (of 152 total)
You should reference the first table twice:
DELETE dbo.car_bdr
from dbo.car_bdr JOIN dbo.CAR_master
on (dbo.car_bdr.actionlocation = dbo.car_master.actionlocation and
dbo.car_bdr.actionnum = dbo.car_master.actionnum
and dbo.car_bdr.currentyear= dbo.car_master.currentyear
and dbo.car_bdr.revision= dbo.car_master.revision)
August 13, 2003 at 8:31 am
Here is some code that will do just what you need. It is based off the storage of the datetime with the fractional value being the time:
Function GetMilliseconds(ByVal varDateTime...
August 1, 2003 at 3:49 pm
How does the package fail? What errors are reported, if any?
August 1, 2003 at 3:39 pm
The problem with event dates is related to the problem that I discussed with the Note_Type_FK -- you need to check all cases. SO, add this to your query...
August 1, 2003 at 3:38 pm
This error happens when more than one record is in the Inserted table. This can easily happen on an Update trigger.
For example, consider the statement:
Update MyTable Set MyField =...
July 31, 2003 at 2:31 pm
I personally would use:
If Exists (Select Col from Table where Col = @xxx)
Update
Else
Insert
July 31, 2003 at 2:24 pm
The trick here is in excluding all people with any record where note_type_fk = 29. Your current query will return people with note_type_fk = 29 if they also have...
July 31, 2003 at 2:22 pm
Now, having said that, jpipes is mostly correct -- most things that are done with a Cursor can be done without one, and usually far more quickly. Contrary to...
July 30, 2003 at 11:33 am
If you do want to use a Cursor for updating, you will need to ensure that the cursor is updatable. Some queries will return cursors where the cursor is...
July 30, 2003 at 11:26 am
An SQL task at the end of the process should do what you want. Add a new task step, and add an SQL Statement like:
ALTER TABLE MyTable Add gen_id...
July 30, 2003 at 10:10 am
Given your constraints, and excluding the manual run, you will need to add a logging task between each step of the package. This can be a simple SQL task...
July 30, 2003 at 10:06 am
Run the package manually from Enterprise Manager. This will allow you to look at the Start Time and Finish Time of each step in the Progress box (you can...
July 29, 2003 at 2:02 pm
Just a quick question: Is the behavior different if you do not use SP_EXECUTESQL, e.g.:
EXECUTE (@Command)
July 29, 2003 at 12:08 pm
The way I prefer for this is to use a CASE statement, e.g.:
SELECT Sum(Case When Column > 5 Then 1 Else 0 End) As GreaterThan5,
Sum(Case...
July 29, 2003 at 12:04 pm
Also, you should look at this MS article on Security relating to running DTS packages:
http://support.microsoft.com/default.aspx?scid=kb;EN-US;269074
There are a number of things to check that can cause this type of...
July 29, 2003 at 11:40 am
Viewing 15 posts - 121 through 135 (of 152 total)