Forum Discussion
rraghvani
Champion Level 3
3 years agoI'm not familiar with MongoDB at all, but can you use the following code and fill in the connection string and command text (without passing parameters), ensure you are using the correct ODBC driver.
// Create database connection object
var conn = ADO.CreateConnection();
conn.ConnectionString = ""; // Fill-in
conn.Open();
// Create command object
var cmd = ADO.CreateCommand();
cmd.ActiveConnection = conn;
cmd.CommandType = adCmdText;
// Execute commands
cmd.CommandText = ""; // Fill-in
cmd.Execute();
conn.Close();
First verify that you can query a table, then try to drop the database.
- Semirxbih3 years agoContributor
Thanks for the response, I attempted all types of connection strings and it's not possible, I just keep getting the "[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified 8:45:53 Normal 0.96" error.