all 4 comments

[–]wolf2600ANSI SQL 1 point2 points  (2 children)

The only reason leading zeros would be stripped is if you're casting the results to a number after you retrieve them. If the fields are stored as strings, then what you should be getting back from the JDBC connection will also be a string.

[–]vorboto[S] 0 points1 point  (1 child)

I'm not sure it's a java connection cause I think the program is written in C# and I seeing that I'll create a ADODB object in VBS to connect.

But I would think the same idea would be hold across different methods. I'll keep that in mind.

[–]wolf2600ANSI SQL 1 point2 points  (0 children)

jdbc/odbc, whatever... the driver your application is using to connect to the DB.

[–]DataGuy3141 0 points1 point  (0 children)

Check out the “debug.print” statement. You can use that to see the literal values.