Hi everyone.
I really need some help here. The problem is, I have vb.net2005 application and a sqlexpress2005 database. But everytime I make changes to the database, be it changes in table structure, editng data or whatever in the vs.net IDE. The next time I try to run the application, the connection to the database will fail unless I edit my connection string, as example below:
now Database=dbname8, if I edited the database in VS IDE, I'll have to change the Database=dbname9 or something else and not dbname8. The same thing happen when I try to connect from a VB6 application. I've google the net and so far I have no idea what is going on.
Really appreciate your help.
CODE
strConnect = "Provider=SQLNCLI;Server=.\SQLExpress;AttachDbFilename=" & initPath & ";Database=dbname8;Trusted_Connection=Yes;Connect_Timeout=0"
MyConn.ConnectionString = strConnect