September 17, 2007 at 2:09 pm
I was wondering whether anybody could confirm an assumption for me. The information on SQL Server Express talks a lot about its special "User Instance" mode and how it can help to simplify deployment because you can go back to just copying in a file to set up your database, and how this is great for dealing with limited user security environments. However, I have some questions surrounding whether or not this is really as great as it's cracked up to be -- I saw somewhere, for example, that made it sound like you have to be coding your application in .NET in order to use it; and it sounded like it pretty much gives the end user full access to their personal SQL Server instance, which I might not necessarily want from an application perspective. The assumption that I wanted to confirm was this… Let's say that you're NOT using the "User Instance" mode. What do you then need to do in order to create the initial shell of your application database at deployment time? I was assuming that you end up having to have some sort of SQL script that does the database creation instead (including, I assume, assigning proper rights to tables to BUILTIN\Users as necessary). Is that correct?
September 18, 2007 at 4:24 am
That's what I would do. In my opinion, this user instance mode feature can make more problems - say - someone has a Standard or higher edition of SQL Server installed - user instance mode is useless then.
In my last project I built database from scripts in installer. This gives you the best control over the application setup.
...and your only reply is slàinte mhath
September 18, 2007 at 6:44 am
What is installer?
-Kyle
September 18, 2007 at 7:06 am
ah
In short: you have project category in Visual Studio: Other Project Types/Setup project. You have to create one and add a custom action (basically a .NET assembly) that will run your database script.
this is a longer discussion about setups, custom actions and other stuff
...and your only reply is slàinte mhath
September 18, 2007 at 7:15 am
Why does the user instance mode cause problems? How does it become useless if someone has Standard or higher installed?
Thanks,
Kyle
September 18, 2007 at 7:45 am
Higher versions do not support User Instance Mode. So, if you rely on it, you may get burned. You cannot connect to user instance using tcp/ip, only named pipes. Connection string has to be altered for user to enable him to connect to his instance - this may, or may not be an issue, depending how DBA sees his range of duties. I suppose that user instances consume additional memory and disk not necessarily.
There are also other considerations (after BOL):
...and your only reply is slàinte mhath
September 18, 2007 at 7:50 am
Thank you very much.
-Kyle
Viewing 7 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply