Forum Discussion
rraghvani
Champion Level 3
I'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.
Semirxbih
2 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.
Related Content
- 12 years ago
- 13 years ago
- 8 years ago
Recent Discussions
- 6 days ago
- 6 days ago
- 9 days ago