Question

Basically, I now have my .mdf file for my DataGridView. The contents that the dataGridView loads is within that file. However, if I deploy this software onto another computer, it no longer works despite changing the file location. So, I need to be able to put this data online so it can be used inside the application. Any ideas?

Was it helpful?

Solution

check these things 1. Make sure your database engine is configured to accept remote connections •Start > All Programs > SQL Server 2005 > Configuration Tools > SQL Server Surface Area Configuration •Click on Surface Area Configuration for Services and Connections •Select the instance that is having a problem > Database Engine > Remote Connections •Enable local and remote connections •Restart instance

  1. Check the SQL Server service account •If you are not using a domain account as a service account (for example if you are using NETWORK SERVICE), you may want to switch this first before proceeding

3.If you are using a named SQL Server instance, make sure you are using that instance name in your connection strings in your ASweb P.NET application •Usually the format needed to specify the database server is machinename\instancename •Check your connection string as well

OTHER TIPS

Then your .mdf save into your project folder (within any other folder). so during export .mdf file also save with your project folder(zip format).

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top