Connectionstring useless to reader?

E

Edwin Knoppert

This connectionstring was prepared by VWD itself.
Can i reuse it on a connection for the datareader i want to use?
I currently got this error:
ExecuteNonQuery: Connection property has not been initialized.
This is normal, the connection object remains NOTHING so the reader goes
wrong.

<configuration>
<appSettings/>
<connectionStrings>
<add name="users" connectionString="Data
Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|users.mdf;Integrated
Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
 
E

Edwin Knoppert

Hmm, seems OLEDB reader can not be used..
It is: System.Data.SqlClient.SqlDataReader
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,904
Latest member
HealthyVisionsCBDPrice

Latest Threads

Top