Quantcast
Channel: MySQL Forums - Connector/NET and C#, Mono, .Net
Viewing all articles
Browse latest Browse all 1451

Timeout on Index Create (no replies)

$
0
0
Hey Everyone,

I am having some strange problems with the connector when I try to create an index.

queryString = string.Format("Create index {0} on {1} ({2}) ", idxName, tableName, columns);
command = new MySqlCommand(queryString, connection);
command.CommandTimeout = 9999999;
command.ExecuteNonQuery();

I have checked the commandtimeout value after i set it and it stays at 9999999. If I am running in the debugger it seems to follow this when I run it as a windows service, it times out after 30 seconds. Any Ideas?

Viewing all articles
Browse latest Browse all 1451

Trending Articles