Hi
I'm fairly new to C#. I am using VS2005 and SQL 2005 both express
versions. I create a table in SQL Server and populate it with data. I
then go to VS and create a new C# windows application. I then add a new
datasourse for the database and tables just created. When I try to test
the connection, I get a message saying that the database is in use with
another program. I then close Query Analyser. When I try to test the
connection I get an error message saying the user is not using a secure
connection or something like that. I kept deleting the DB and tried
again. I'm not sure how but eventually I managed to get a successful
connection to the DB.
I included Table1 and Table2 on the form. Table1 displayed the data as
fields and Table2 was in a datagrid. The autocontrols were automatically
added above. After running the application and exitting, I noticed that
I could not see the DB in Query Analyser and when I tried to connect
again it gave and error that the DB did not exist. When I created
another DB and tried the same thing - Query Analyser show the DB as
corrupt.
I tried resetting the status of the DB but it says that the DB status is
fine.
Could someone please advise.
Thanks in advance.
Rajesh
*** Sent via Developersdex http://www.developersdex.com ***