Is there a generic way to retrieve a database schema using ODBC that works across databases?
If not, what is the easiest way to do this when the database server is MS SQL Server?
I am working with unixodbc, from Linux.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Query against the INFORMATION_SCHEMA views. Beautiful thing about using information schema is that it’s a standard so it should be portable to any database that has implemented the standard.
e.g.
SELECT * FROM INFORMATION_SCHEMA.COLUMNS ISCThe standard is the SQL-92 Starts at page 535