tags:

views:

48

answers:

0

I need to get the Create script of a table from a SQL Server database given the table name using VC++6.0 in order to output it to a text file. I have tried to get this using SQL-DMO Script method for the table, using GetTableByName() but it returns null. I confirmed it has the correct table by using the GetColumnByOrd method.