Click here to Skip to main content
15,907,392 members
Home / Discussions / Database
   

Database

 
QuestionData Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 7:13
QuickBooksDev17-Aug-12 7:13 
AnswerRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Eddy Vluggen17-Aug-12 8:03
professionalEddy Vluggen17-Aug-12 8:03 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 8:17
QuickBooksDev17-Aug-12 8:17 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Eddy Vluggen17-Aug-12 8:32
professionalEddy Vluggen17-Aug-12 8:32 
QuestionRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Paul Conrad17-Aug-12 8:32
professionalPaul Conrad17-Aug-12 8:32 
AnswerRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
QuickBooksDev17-Aug-12 8:42
QuickBooksDev17-Aug-12 8:42 
GeneralRe: Data Source Not Found on Windows using MyODBC (MySQL) connector Pin
Paul Conrad17-Aug-12 11:49
professionalPaul Conrad17-Aug-12 11:49 
QuestionSSIS and parsing empty strings to integers Pin
PIEBALDconsult16-Aug-12 7:56
mvePIEBALDconsult16-Aug-12 7:56 
Using SQL Server 2008 R2 and SSIS, I just ran into a little problem. The source table has a VARCHAR column that contains mostly integers, also some NULLs, and some empty values. I'm copying rows to another table where the column is INTEGER, and SSIS is throwing:

[ADO NET Destination [16]] Error: An exception has occurred during data insertion, the message returned from the provider is: The given value of type String from the data source cannot be converted to type int of the specified target column.


After a few hours trying to narrow down what string value and which int column, I found that it is the empty strings causing the trouble.

I have now wrapped the troublesome columns in CASE statements to replace empties with NULLs, but here's my question:

If I execute the following in SSMS or via ADO.net

CREATE TABLE dbo.NumTest (Num int)
INSERT INTO dbo.NumTest VALUES ( '' ) 


no Exception is thrown -- the resultant value is 0.

So why the elephant does SSIS throw an Exception? Why is it trying to parse the string? Shouldn't it simply pass it to the database and react to any Exceptions?

And how can I tell SSIS not to interfere?
AnswerRe: SSIS and parsing empty strings to integers Pin
Mycroft Holmes16-Aug-12 12:54
professionalMycroft Holmes16-Aug-12 12:54 
GeneralRe: SSIS and parsing empty strings to integers Pin
PIEBALDconsult16-Aug-12 14:37
mvePIEBALDconsult16-Aug-12 14:37 
GeneralRe: SSIS and parsing empty strings to integers Pin
Mycroft Holmes16-Aug-12 17:25
professionalMycroft Holmes16-Aug-12 17:25 
AnswerRe: SSIS and parsing empty strings to integers Pin
S Douglas14-Sep-12 8:38
professionalS Douglas14-Sep-12 8:38 
Questionhow to spilt the attributes dispatch container planning in Shipment project Pin
SubiyaPalanisamy16-Aug-12 4:35
SubiyaPalanisamy16-Aug-12 4:35 
AnswerRe: how to spilt the attributes dispatch container planning in Shipment project Pin
Eddy Vluggen16-Aug-12 5:35
professionalEddy Vluggen16-Aug-12 5:35 
QuestionCumulative addition among views. Pin
pamelaannegarcia12-Aug-12 7:43
pamelaannegarcia12-Aug-12 7:43 
AnswerRe: Cumulative addition among views. Pin
Mycroft Holmes12-Aug-12 18:29
professionalMycroft Holmes12-Aug-12 18:29 
QuestionHelp with Decimal Roundings Pin
Vimalsoft(Pty) Ltd12-Aug-12 0:51
professionalVimalsoft(Pty) Ltd12-Aug-12 0:51 
AnswerRe: Help with Decimal Roundings Pin
Eddy Vluggen12-Aug-12 1:10
professionalEddy Vluggen12-Aug-12 1:10 
GeneralRe: Help with Decimal Roundings Pin
Vimalsoft(Pty) Ltd12-Aug-12 2:01
professionalVimalsoft(Pty) Ltd12-Aug-12 2:01 
AnswerRe: Help with Decimal Roundings Pin
Niladri_Biswas21-Aug-12 22:39
Niladri_Biswas21-Aug-12 22:39 
QuestionHow to convert Physical XML files into Sqlserver Tables? Pin
Member 400654610-Aug-12 13:10
Member 400654610-Aug-12 13:10 
AnswerRe: How to convert Physical XML files into Sqlserver Tables? Pin
PIEBALDconsult10-Aug-12 13:32
mvePIEBALDconsult10-Aug-12 13:32 
AnswerRe: How to convert Physical XML files into Sqlserver Tables? Pin
Eddy Vluggen10-Aug-12 23:52
professionalEddy Vluggen10-Aug-12 23:52 
QuestionHow do you use the AVG api in sql to manage grouped output? Pin
Xarzu10-Aug-12 13:04
Xarzu10-Aug-12 13:04 
AnswerRe: How do you use the AVG api in sql to manage grouped output? Pin
Paul Conrad10-Aug-12 20:18
professionalPaul Conrad10-Aug-12 20:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.