Hello all,
Hope you can help. I have a VB.Net App which connects to SQL Server database created in Server Explorer in VS.Net 2003. I have MSDE2000 running on my development pc and when I run the app in the IDE or as a Package it connects fine. I use "Mixed Mode" authentication, because I have read in a Microsoft KB that Windows Authentication will only work if there is a server available to do the authentication. As these will be standalone installations this isn't possible (?), so I have created the following ConnectionString using the System.Data.SQL Client SQLConnection Class: -
"Persist Security Info=False;uid=sa;pwd=(my MSDE Password);database=ccms;server=(local)"
I will be distributing this app to clients, so I need to install MSDE2000 on their pc (unless they already have it). I have setup MSDE2000 on a Test machine and installed it with the same strong SA Password as I did on my development machine, and copied over the ldf and mdf files into MSDE Data Directory, and installed my app from the Setup Project I created in VS.
However, when I attempt to open the database I get the following message: -
"System.Data.SqlClient.SqlException:Cannot open database requested in login 'ccms'. Login fails. Login failed for user 'sa'."
'ccms' is the name of the database I am trying to open. I have spoken with Microsoft about this, but I was wondering if anyone can help me, as it is seriously delaying me. I have a red hot client waiting to beta test it, and want to get it to them asap.
I have changed the Registry setting on the Test machine to allow "Mixed Mode" authentication (as advised by MS) but to no avail.
Thanks in advance for your help.
Hope you can help. I have a VB.Net App which connects to SQL Server database created in Server Explorer in VS.Net 2003. I have MSDE2000 running on my development pc and when I run the app in the IDE or as a Package it connects fine. I use "Mixed Mode" authentication, because I have read in a Microsoft KB that Windows Authentication will only work if there is a server available to do the authentication. As these will be standalone installations this isn't possible (?), so I have created the following ConnectionString using the System.Data.SQL Client SQLConnection Class: -
"Persist Security Info=False;uid=sa;pwd=(my MSDE Password);database=ccms;server=(local)"
I will be distributing this app to clients, so I need to install MSDE2000 on their pc (unless they already have it). I have setup MSDE2000 on a Test machine and installed it with the same strong SA Password as I did on my development machine, and copied over the ldf and mdf files into MSDE Data Directory, and installed my app from the Setup Project I created in VS.
However, when I attempt to open the database I get the following message: -
"System.Data.SqlClient.SqlException:Cannot open database requested in login 'ccms'. Login fails. Login failed for user 'sa'."
'ccms' is the name of the database I am trying to open. I have spoken with Microsoft about this, but I was wondering if anyone can help me, as it is seriously delaying me. I have a red hot client waiting to beta test it, and want to get it to them asap.
I have changed the Registry setting on the Test machine to allow "Mixed Mode" authentication (as advised by MS) but to no avail.
Thanks in advance for your help.