Viewing 15 posts - 31 through 45 (of 66 total)
Thank you Phil, that's it, the problem is resolved.
July 25, 2005 at 12:03 pm
The primary key is not an identity field. And if I add this primary key into my import, I got the same error:
Violation of Primary...
July 25, 2005 at 9:59 am
I have tried different ways to convert it to null, but when SQL Server sees null value in the smalldatetime field, it seems put a default value 1/1/1900 automatically.
The way...
April 19, 2005 at 11:59 am
Thank you for all of your replies. I think what happens is when it's empty string, the retrieved session value from txtDOB.text will turn to #12:00:00AM# before it inserts to...
April 14, 2005 at 8:50 am
yes, in my asp.net application, i have put the code to check if the textbox contains null value:
If txtDOB.Text = Nothing Then
Session("DOB") = DBNull.Value Else
April 13, 2005 at 3:18 pm
Each employee can have up to 5 records (5 PayCodes)I need to ensure each employee : their payamt of PayCode 2 =1.5 * PayAmt of PayCode 1.
Example Table:
For example:
EmpID PayCode ...
March 10, 2005 at 4:22 pm
Yes, the Update_Ind is only at the 1st table (UPR00100). If there's any updates in 2nd table (UPR00200), the trigger should set Update_Ind=1, and nothing to do with 2nd table...
January 26, 2005 at 2:57 pm
Thanks for your help. But I still have problem with my 2nd trigger.
The 2nd trigger will update the 1st table (set Update_Ind=1) when there's a update on 2nd table (UPR00200). ...
January 26, 2005 at 2:11 pm
Never mind, I got it work:
ISNULL(CAST(CONVERT(CHAR(8), F.Transmit_Date, 10) AS VARCHAR(30)), 'Not Transmit Yet') AS TransDate
Thank you.
January 14, 2005 at 9:15 am
Farrell, thank you it works. But I still have a question:
Transmit_Date is a smalldatetime, which should display 1/14/2005 12:00AM. After I casted to varchar, it displays Jan 14, 2005 12:00AM,...
January 14, 2005 at 8:55 am
Thanks, this is exactly what I need.
December 21, 2004 at 12:18 pm
Yes, please ignore this one because I found out I should use OpenRowset and I don't know how to delete this post.
October 25, 2004 at 10:32 am
Viewing 15 posts - 31 through 45 (of 66 total)