I'm writing a migration script from MSSQL to mySQL and I want to replicate all data from MSSQL database to a mySQL database.
I've read all tableas in MSSQL database but the problem arrives as I need to read all fields in each table.
If I try to do "sp_help tablename" to get all fields I get 3 resultsets wich I can't read from PHP. At least I don't know how. Anyway the query returns FALSE as if it was an error.
If I try to do "sp_columns @table_name = '$tableName'" also the query returns as if it was an error.
Before I send this queries I do an echo and copy the values from the queries to SQL Query Analyzer and both queries work perfectly.
Anyone knows a better way to do this or a way to solve my problem?
Tnanks in advance.