Is there a way to export a table with the time(7) datatype using gsqlcmd?
Sebastian Wright
I am using the gsqlcmd command-line tool to read and export SQL files. I am able to do so, but not if one the tables I'm exporting has a time(7) datatype column. It doesn't recognize this type. How do I get it to recognize it?
I use this command:gsqlcmd my_database_name "select * from table_name"
When I execute this command for a table that doesn't have this type, it displays the columns and data in the command line.
When I include this datatype, it gives me this error:
3Execution error: Unknown SQL type - SS_TIME_EX.
1 Answer
Support suggested that I was probably using the wrong provider in my connection string- I needed to use the .NET SqlClient Data Provider. It reads the time datatype now.