Need to convert the DataTable return type to string
问题 I have a function to return the list of tables having primary key in a datatable, but now the need is to get the table list in the string return type. My method is as follows: public DataTable GetAllPrimaryKeyTables (string localServer, string userName, string password, string selectedDatabase) { // Create the datatable DataTable dtListOfPrimaryKeyTables = new DataTable("tableNames"); SqlConnectionStringBuilder objConnectionString = new SqlConnectionStringBuilder(); objConnectionString