M
Miro
Recently I had to switch out my XP machine with vb.2005 express and SQL
Express ( the computer died )
to vb.2008 Express with SQL Express and Vista.
The wierd part is, my microsoft book stopped working with the connection
strings from the chapters from the book.
By default this should work:
sqlProducts.ConnectionString = "Data Source=(local)\SQLEXPRESS;Initial
Catalog=AdoStepByStep;Integrated Security=True"
But it fails until I change the connection string to this:
Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Microsoft Press\ADO.NET 2.0
Step by Step\SampleDBs\AdoStepByStep_Data.MDF";Integrated
Security=True;Connect Timeout=30;User Instance=True
The book also comes with an exe that runs and says it attaches the database.
"AdoStepByStep database should be attached to (local)\SQLEXPRESS"
that should allow all the chapters to work.
Where can I go to check this configuration of where it attached.
Any help would be appreciated.
So far I have been opening up the chapters project and have been running
around everywhere changing the connection string, but I know there has to be
a setting somewhere that Vista or 2008 has changed.
Miro
Express ( the computer died )
to vb.2008 Express with SQL Express and Vista.
The wierd part is, my microsoft book stopped working with the connection
strings from the chapters from the book.
By default this should work:
sqlProducts.ConnectionString = "Data Source=(local)\SQLEXPRESS;Initial
Catalog=AdoStepByStep;Integrated Security=True"
But it fails until I change the connection string to this:
Data Source=.\SQLEXPRESS;AttachDbFilename="C:\Microsoft Press\ADO.NET 2.0
Step by Step\SampleDBs\AdoStepByStep_Data.MDF";Integrated
Security=True;Connect Timeout=30;User Instance=True
The book also comes with an exe that runs and says it attaches the database.
"AdoStepByStep database should be attached to (local)\SQLEXPRESS"
that should allow all the chapters to work.
Where can I go to check this configuration of where it attached.
Any help would be appreciated.
So far I have been opening up the chapters project and have been running
around everywhere changing the connection string, but I know there has to be
a setting somewhere that Vista or 2008 has changed.
Miro