StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Database Deployment Toolkit
»
Database Deployment Toolkit (How do I?)
»
Error converting DateTime field to DateTime2 in SQL2008 with DDT
Error converting DateTime field to DateTime2 in SQL2008 with DDT
Post Reply
Like
1
Error converting DateTime field to DateTime2 in SQL2008 with DDT
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Thanks Trent, I will play with the scripts to handle this.
Edhy Rijo
Reply
Like
1
Trent Taylor
Trent Taylor
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 6.9K
No...this is an entirely different data type. So the DDT (at present) doesn't automatically perform this conversion for you so you will have to handle this at the moment. At some point I will look to see if we can integrate this...but today...you will have to do it.
Reply
Like
1
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Trent,
Today I upgraded my dev computer to SQL2008, I want to take advantage of the new DateTime2 and Date fields in SQL2008, after changing one of table in the DDT to use DateTime2 and deploying the package I got the following error:
X 4/13/2009 1:50:05 PM -> Altering table 'Inventory' failed.
X 4/13/2009 1:50:05 PM -> FailedOperationException
X 4/13/2009 1:50:05 PM -> Alter failed for Table 'dbo.Inventory'.
X 4/13/2009 1:50:05 PM -> ExecutionFailureException
X 4/13/2009 1:50:05 PM -> An exception occurred while executing a Transact-SQL statement or batch.
X 4/13/2009 1:50:05 PM -> SqlException
X 4/13/2009 1:50:05 PM -> Implicit conversion from data type datetime to int is not allowed. Use the CONVERT function to run this query.
X 4/13/2009 1:50:05 PM ->
X 4/13/2009 1:50:05 PM -> Source : Microsoft.SqlServer.Smo
Shouldn't the DDT take care of running whatever command is required to do this type of conversions? or this must be handle via the Pre/Post script?
Edhy Rijo
Attachments
CardTrackingSystemDDT_results14.txt
(
179 views,
5.00 KB
)
Reply
Like
1
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
1
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search