VB.net 2005 and database

  • Thread starter Thread starter Maileen
  • Start date Start date
M

Maileen

Hi,

I've created a small application which should create a DB in different
plaftforms like MS SQL 2000 and PostgreSQL.

First i perform a simple test to see if user enter correct connection
string.
if it works, so i have a simple SQL statement like "create database DBTest;"

so, i create a command, using odbcCommand.
and after i connect this command to my odbcconnection.
so i open connection, use odbcCommand.ExecuteNONQuery and close
connection....
but when application arrives on line where is ExecuteNonQuery, it freeze
and timeout is overpass.

So, where can be the problem ?
does someone have an example ?
thanks a lot,
Maileen
 
Back
Top