Код: Выделить всё
select TABLE_NAME
from information_schema.tables
where table_catalog = 'DB' and table_schema = 'SCHEMA';
Код: Выделить всё
string Query = "select TABLE_NAME from information_schema.tables where table_catalog = 'DB' and table_schema = 'SCHEMA';";
IDbCommand Cmd = Conn.CreateCommand();
Cmd.CommandText = Query;
IDataReader Reader = Cmd.ExecuteReader();
while (Reader.Read())
{
Console.WriteLine("test"); // this never gets printed!
}
Есть ли способ читать из Information_schema в Visual Studio? Или альтернативный способ получить список всех таблиц в базе данных/схеме Snowflake?
Подробнее здесь: https://stackoverflow.com/questions/790 ... ng-c-sharp
Мобильная версия