User Profile
Collapse
-
You could use a char field to store your time so it looks like the time only, but I would recommend to use the datetime field to be more accurate and display the data formatted using the convert function, also having the datetime field allows you to use the datediff function to calculate time difference. -
Yyou cannot do it in the same statement since both are different type of operations update/insert. My recommendation is that you should have a field in that table like "updatetime " that should be updated with getdate() when your update runs, that allows you to make an insertable select statement based on the updatetime.Leave a comment:
-
You should have the indexes on the fields you want to join, do you have them like that?
TblActivities.c lientID = TblBookingsCrai g.clientid AND
TblActivities.c ampaignID = TblBookingsCrai g.campaignid AND
TblActivities.S upplierID = TblBookingsCrai g.SupplierID and
TblActivities.C reativeVersion = TblBookingsCrai g.CreativeVersi onLeave a comment:
-
could you please send us the query in order to check the code, it should be working as you say, but maybe the code has a syntax error.Leave a comment:
-
-
Try to use something else, I mean why do you need to use dynamic SQL, perhaps you could get the same result by using a view or a UDF.Leave a comment:
-
Correct might not be the same for me as for you. Could you please send us both tables' layouts or a top 1 from both and the desired output?Leave a comment:
-
You should just be able to use DTS to move the tables and data from SQL Server to Oracle. DTS can make OLE DB connections to any database that supports OLE DB.
Hint: you can use the DTS Wizards in the tools menu of the Enterprise manager.Leave a comment:
-
CODE:
select [Name],
( substring(Date, 5,4)+'-'+
substring(Date, 3,2)+'-'+
substring(Date, 1,2)+' '+
substring(Date, 10,2)+':'+
substring(Date, 12,2)+':'+
substring(Date, 14,2)) [Date]
from DateDemo
OUTPUT:
2006-09-06 02:37:18Leave a comment:
No activity results to display
Show More
Leave a comment: