G
Guest
Hi,
I'm using the following command to access information on a SQL Database and
everything works fine.
Dim oSqlCommand As New SqlClient.SqlCommand
oSqlCommand.CommandType = CommandType.Text
oSqlCommand.Connection = mSqlConnection
oSqlCommand.CommandText = "SELECT * FROM TABLE"
Dim oSqlReader As SqlClient.SqlDataReader
oSqlReader = oSqlCommand.ExecuteReader
oSqlCommand.Dispose()
Therefore, as soon as I change the userID and the Password of the Connection
String, I've got the following error: Invalid Object name 'TABLE'
With the new userID and Password, the connection is established and the
TABLE table is present. Therefore, I could not access it.
What I have noticed is that only the owner of the TABLE could access the
TABLE. As soon as I tried to access the TABLE with another user, I could not
get the information.
Does someone know how to solve the problem?
Thanks,
I'm using the following command to access information on a SQL Database and
everything works fine.
Dim oSqlCommand As New SqlClient.SqlCommand
oSqlCommand.CommandType = CommandType.Text
oSqlCommand.Connection = mSqlConnection
oSqlCommand.CommandText = "SELECT * FROM TABLE"
Dim oSqlReader As SqlClient.SqlDataReader
oSqlReader = oSqlCommand.ExecuteReader
oSqlCommand.Dispose()
Therefore, as soon as I change the userID and the Password of the Connection
String, I've got the following error: Invalid Object name 'TABLE'
With the new userID and Password, the connection is established and the
TABLE table is present. Therefore, I could not access it.
What I have noticed is that only the owner of the TABLE could access the
TABLE. As soon as I tried to access the TABLE with another user, I could not
get the information.
Does someone know how to solve the problem?
Thanks,