Click here to Skip to main content
15,881,413 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I've create a single setup contain my .net application and database which runs in .net3.5 framework.
but here the problem is my application executes only if we install SQLExpress service pack so how to avoid this service pack installation(Service pack is very huge size setup and its taking long time to get the application installed)

Could you please give your suggestion to avoid this long time installation
Ambarish
Posted
Updated 16-Apr-11 21:55pm
v2
Comments
OriginalGriff 17-Apr-11 5:32am    
Answer updated

1 solution

If you use MSSQL in your application, then your user must have access to SQL Server to use it. However, it is not normal to ship SQL Express with your app setup - the user may already have SQL Server installed on an existing computer.

If this is a single user database system, consider not using SQL Server. If you use SqlCE instead, the code for the database is included in the .NET framework so no additional installation is required. SqlCE is a cut down version of MsSql which is single user only, and does not support some of MsSql more advanced features.


"Here im using SQL Express 2005(.mdf)database.
When i Installed both SQlCE and my .net application and my application is showing an error "An error has
occured while establising a connnection to the server.when connecting to sql server 2005....error-26
error locating server/Instance specified"
Please give ur advice"


I'm not sure what you have tried to do here: SQLCE won't open a .MDF database: convert it to an SQLCE database instead if you are going to go that route. There is a utility here to do that: SQL Server to SQL Server Compact Edition Database Copy Utility[^]
 
Share this answer
 
v2
Comments
JOAT-MON 17-Apr-11 5:22am    
From OP:

hi thank you for your replay....
Here im using SQL Express 2005(.mdf)database.
When i Installed both SQlCE and my .net application and my application is showing an error "An error has
occured while establising a connnection to the server.when connecting to sql server 2005....error-26
error locating server/Instance specified"
Please give ur advice
OriginalGriff 17-Apr-11 5:29am    
Thanks for doing that - I commented to the OP about replying in the right place, and deleted his answer...:thumbsup:
ambarishtv 17-Apr-11 6:19am    
I prefer .mdf databasea more than ldf database becos of their size. you've any idea to solve sqlexpress installation problem?
OriginalGriff 17-Apr-11 8:19am    
You can't. If you want to use full SQL databases, then you need SQL Server or SQL Express running on a machine to handle it. Sorry, but those are the breaks!
ambarishtv 17-Apr-11 8:24am    
thanks

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900