User Instances

Jul 6, 2006

Hi,


So if the connection strings for say 2 separate users is configured for a user instance, what is the best approach to synchronising the user instances against each other and the Server instance?

This architecture suits remote users and I'm very interested to learn more about it.

Cheers,

John

View 3 Replies


ADVERTISEMENT

Generating User Instances In Sql Server Is Disabled. Use Sp_configure User Instances Enabled To Generate User Instances.

Sep 28, 2007

 When I am in Visual Studio 2005, and I try to add an SQL database, I get the following error "generating user instances in sql server is disabled. use sp_configure user instances enabled to generate user instances." I am currently using SQL server 2005 Express. What do I need to do, to create an SQL database? Thanks in advance. 

View 4 Replies View Related

User Instances On Qsh.eu

Nov 10, 2007

Hi. I am trying to connect to a database but keep encountering the same error. I have a free hosting account with quantasoft (qsh.eu) who fully support SQL express user instances. I have also used the connection string generator on their site. This is the result of the error.
Cannot create file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase_log.LDF' because it already exists. Change the file path or the file name, and retry the operation.Could not open new database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'. CREATE DATABASE is aborted.Cannot attach the file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase.mdf' as database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'.File activation failure. The physical file name "C:Documents and SettingsJamesLocal SettingsTempVWDWebCacheftp_transmission.qsh.eu_wwwApp_DataDatabase_log.LDF" may be incorrect.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: Cannot create file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase_log.LDF' because it already exists. Change the file path or the file name, and retry the operation.Could not open new database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'. CREATE DATABASE is aborted.Cannot attach the file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase.mdf' as database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'.File activation failure. The physical file name "C:Documents and SettingsJamesLocal SettingsTempVWDWebCacheftp_transmission.qsh.eu_wwwApp_DataDatabase_log.LDF" may be incorrect.Source Error:



An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below. Stack Trace:



[SqlException (0x80131904): Cannot create file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase_log.LDF' because it already exists. Change the file path or the file name, and retry the operation.
Could not open new database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'. CREATE DATABASE is aborted.
Cannot attach the file 'H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase.mdf' as database 'transmission.qsh.eu_a45add63-33a4-4414-b09c-6880f10717b3'.
File activation failure. The physical file name "C:Documents and SettingsJamesLocal SettingsTempVWDWebCacheftp_transmission.qsh.eu_wwwApp_DataDatabase_log.LDF" may be incorrect.]
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +437
System.Data.ProviderBase.DbConnectionFactory.GetConnection(DbConnection owningConnection) +82
System.Data.ProviderBase.DbConnectionClosed.OpenConnection(DbConnection outerConnection, DbConnectionFactory connectionFactory) +105
System.Data.SqlClient.SqlConnection.Open() +111
System.Data.Common.DbDataAdapter.FillInternal(DataSet dataset, DataTable[] datatables, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +121
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, Int32 startRecord, Int32 maxRecords, String srcTable, IDbCommand command, CommandBehavior behavior) +137
System.Data.Common.DbDataAdapter.Fill(DataSet dataSet, String srcTable) +83
System.Web.UI.WebControls.SqlDataSourceView.ExecuteSelect(DataSourceSelectArguments arguments) +1770
System.Web.UI.WebControls.Repeater.GetData() +50
System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +232
System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +53
System.Web.UI.WebControls.Repeater.DataBind() +72
System.Web.UI.WebControls.Repeater.EnsureDataBound() +55
System.Web.UI.WebControls.Repeater.OnPreRender(EventArgs e) +12
System.Web.UI.Control.PreRenderRecursiveInternal() +77
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Control.PreRenderRecursiveInternal() +161
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1360
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------ 
When i remove the database= tag i get this
An attempt to attach an auto-named database for file H:HomeWebsqsh.eu ransmission_24be67cf-3e4c-4852-b3ec-fc849ce5b009wwwApp_DataDatabase.mdf failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.

View 1 Replies View Related

User Instances

Jan 11, 2007

I have been developing and testing my app for some time without worrying about the question of user instances. Due to the nature of the app, I would want the database to be copied to laptops, where data would be added and then merged back into the "main" DB.

To facilitate this, when the (VB) app first installs, it copies the DB files from the data directory to an easily accessible folder which it creates in the C: drive (if they are not already there - to facilitate application upgrades).

The code is written and working. However, then I thought about user instances. With User Instance set to True, I suspect that this concept of a DB file created by a user on a given machine being readable by another user with a laptop is likely to fail (unfortunately I only have access to a single machine).

So I tried to change the User Instance to false (in the App.config file). This stopped the application from running. I checked in the Modify Connection (Advanced) screen which still showed User Instance to be True. I tried to change this but got an error message.

I can see a way around this, but I don't like it. I guess, rather than "export" the DB files to the laptop, I could send the data as an XML file. However, this seems to me to compromise security as it would be very easy for anyone to filter any actual data they wanted from such a file - unless there is a way to password protect an XML file?

So, is there any way that I can make these DB files (on the C: drive) available to any user, on any machine who is running the application so that they can import the data to their version of the App, add to it and then send the changes back to the original?

Thanks,

Rich

View 2 Replies View Related

SQL Express User Instances

Apr 30, 2008

I have a general question relating to SQL Express User Instances. Our application connects to a local SQL Express database through the default SQLEXPRESS user instance. My question is simply whether a user may experience a problem in connecting to our application's database should another application already be connected through the same default user instance (SQLEXPRESS)? The two applications are therefore running similtaneously. Also, are there any limit to how many applications could use the same service similtaneously?

View 1 Replies View Related

Problem With User Instances

Nov 14, 2007

On first run, my app takes the blank database from the data directory and sticks it into a folder on the C: drive. Lets call this folder ABC for convenience.

Now, sometimes, we need to take this DB to use on another machine. So I have a "Guest" button available at logon screen of the app that allows the user to browse the file system and select a different DB to use then creates the appropriate connection string for say, a DB on a USB stick or wherever.


Con = "Data Source=.SQLEXPRESS;AttachDbFilename="

Con += OpenFileDialog1.FileName

Con += ";Integrated Security=True;Connect Timeout=30" ';User Instance=True"

No problems here, it works for Express Edition.

However, someone else who is trying to use the app has SQL 2005 (not Express Edition installed) and it wouldn't work because the connection strings had User Instance = True in them.

Okay then, we'll just remove that bit of the connection string and it should work. They should be an Admin so no reason for User Instances.

It works fine if we browse to any DB file other than the one in ABC folder.

However, it is impossible to connect to the DB in ABC folder unless User Instance is set to True.

Secondly; for the app to work with the non-express version, would the connection string need to be changed (SQLEXPRESS)? If so, how do you detect programmatically which version the user has?

Can anyone help please, in idiot proof terms!!!

Thanks,

Rich

View 7 Replies View Related

User Instances And Triggers

Nov 7, 2007

Hi

We have developed an application that uses User Instances of the database for each user. We have a stored proc that enables and disables the triggers on the various tables of the database. In our first round of debugging we have found that the applciation hangs when we try to either enable or disable the triggers. Can you modify triggers in user instances???

Thanks
Kenzie

View 1 Replies View Related

Enable User SQL Instances

Mar 8, 2007

I couldn't reply the another thread so I'm continuing here.

Was about "Enable user SQL instances" and the Report Service didn€™t started too.
How do I enable this remote connections?
And in the instalation, Should I Add a user to the SQL Server Administration Role?

And also in the step "ready to install" of the SQL Server SP2 shows the following:

The following components will be installed:

· SQL Server Database Services (Upgrade)
(Database Services, Replication, Full-Text Search)
· Reporting Services
(Reporting Services, Report Manager)
· Client Components (Upgrade)
(Connectivity Components, Management Studio Express)

Warning: Setup found that the following components that already exist are at a different service pack level than the components being installed.

Components: Microsoft SQL Server 2005 Tools Express Edition, Microsoft SQL Server 2005 Express Edition (SQLEXPRESS)

After completing setup, you must download and apply the latest SQL Server 2005 service pack to all the components.

View 1 Replies View Related

User Instances And Server

May 5, 2007

Hi,



I nearly went nuts before finding out that SqlExpress Names Instances don't listen on Port 1433. Having discovered that I now think I can nominate a specific port, is that correct.?



My main question. I copied my databases from my development machine to a server, which will be accessed from an internal domain, and also through VPN tunnels. Should I change from User Instances on the server, and if so, how do I do this.?



My original application wasn't using User Instances, but chnaged to them somehow, when my PC had a name change.



Tailor

View 5 Replies View Related

Sp_configuration 'user Instances Enabled' - PLEASE HELP!

May 6, 2007

HiI'm having no end of problems with Visual Web Developer and SQL Server 2005 Express Edition.

View 1 Replies View Related

Generating User Instances In SQL Server Is Disabled

Apr 22, 2008

 
I have recently returned to developing a website using Visual Web Developer Express 2008. I want to store information in a database. I have SQL Server 2005 Express edition installed on my pc.
When I try to Add New Item -> SQL Database from VWD2008 by right clicking in the App-Data folder and completing the dialogue I get the following error message:


Generating user instances in SQL Server is disabled. Use sp_configure ‘user instances enabled' to generate user instances.
I have SQL Server Management Studio installed but do not seem to be able to resolve this issue.
My operating system is windows XP Home SP2.
Some guidance on solving this would be appreciated.
Many thanks
Roger L

View 3 Replies View Related

Can SSCE 3.0/3.5 Cater For Multi-user Instances?

Oct 4, 2007

Hi all,

I just want to know if SSCE 3.0/3.5 can cater for Multi-user instances? I have a desktop application that I want to allow multiple Windows-user accounts to access. basically I need a datastore that can be lightweight (which SSCE is) and support "User Instances" (like in SQL Server Express)


thanx!

View 5 Replies View Related

Full-Text Search / User Instances

Mar 17, 2006

Is there any documentation on using full-text search with user instances? Is it even supported?

View 6 Replies View Related

FILESTREAM Feature Is Not Supported On User Instances

Nov 1, 2015

I am attempting to restore a backup of a 2008 R2 database to my new 2012 instance. I am receiving the message, "FILESTREAM feature is not supported on user instances." I am running v11.0.5343.0 (X64), Express Edition.I was under the impression from the features supported page [URL] .... that FILESTREAM was supported across editions. I can't seem to find anything online specific to 2012 as to why I am not able to restore.

View 5 Replies View Related

User Instances In SQL Express -- Need Code Samples

Apr 4, 2006

I would like to have more info on UserInstances concept of SQLExpress 2005.

Can i find any code samples for this feature in MSDN.

I have tried using the following links..
http://msdn2.microsoft.com/en-us/library/ms143401(SQL.90).aspx
http://msdn2.microsoft.com/en-us/library/ms143684(SQL.90).aspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnsse/html/sqlexpuserinst.asp
http://msdn2.microsoft.com/en-us/library/ms254504.aspx
http://msdn2.microsoft.com/en-us/library/ms165690(SQL.90).aspx
http://msdn2.microsoft.com/en-us/library/ms143446(SQL.90).aspx



any other links will be helpful for me in this regard.

Thanks,

Vaishu

View 1 Replies View Related

Installing SQL Express SP1 With Existing User Instances

Jun 14, 2006

Hi,

I've read the readme for the Service Pack 1 for Microsoft SQL Server 2005.

http://download.microsoft.com/download/b/d/1/bd1e0745-0e65-43a5-ac6a-f6173f58d80e/ReadmeSQL2005SP1.htm

But I'm not quite clear on what will happen if you currently have SQL Server Express 2005 installed with User Instances, and then you launch the installer for SP1.

Will it also update the User Instance? If so, how could I tell? When I go to the registry for the User Instance it has the older version value ie.

HKLMSOFTWAREMicrosoftMicrosoft SQL Server[instance name]MSSQLServerCurrentVersion = 9.00.1399.06

Shouldn't it be saying 9.00.2047.00?

Does this mean that I have to uninstall the User Instance before installing SP1?

Any help will be appreciated.

Thanks

Sam

View 4 Replies View Related

SQL Server 2005 Debug And User Instances Confussion

Mar 28, 2007

Hi all,



This is my first C# (2.0) Windows based app accessing a local SQL Server database. Ive build a couple of web based apps using C#.



First I just copied a datbase access wrapper class from one of my web apps and used that. It works, but, the database shown in Server Explorer in VS2005 shows the table as empty. The table in /bin/ however, is updated as expected. Before I realised that there were seperate instances of the database i stripped everything down to a very simple example



[code]
string sConnectionString = "Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Database1.mdf;Integrated Security=True;User Instance=True";
SqlCommand foo = new SqlCommand("INSERT INTO tblTest (foo) VALUES ('atest')");
SqlConnection conn = new SqlConnection(sConnectionString);
conn.Open();
foo.Connection = conn;
foo.ExecuteNonQuery();
foo.Dispose();
conn.Close();
[/code]



This little tester windows based app has a simple tester drag and dropped grid view in it. When i run /pathToApp/bin/Debug/<AppName>.exe, independantly of VS, the grid view is full of the value "atest" as expected, but not when ran under visual studio. As I said above i found (at least i think this is right) there is a debug and user instance of the database. So im guessing I need two connection strings if i want to update both whilst dev'ing the application.



Ive had a look throuhg connectionstring.com and, to be honest, im confused... Any help for what the second connection string should be would be greatly apprecaited.

Thanks.

View 1 Replies View Related

Named Instances And Default Instances Of SQL Server 2000

Jul 18, 2001

I had a server with SQL Server 7.0
I installed a named instance of SQL Server 2000 and then i passed all my DB
of the 7.0 instance to the 2000 instance.
Then i removed the 7.0 instance, that was the default instance.
So at the moment there is only the 2000 version, but it isn't the default
instance
Can the 2000 instance become the default instance? (So that clients can
connect to it simply through computer name, and not creating an alias)

thanks

Fede

View 1 Replies View Related

Simple Examples Of SQLCLR By Connecting To SQL Express User Instances In Management Studio Via VB 2005 Express

Sep 28, 2007

Hi all,
I want to do SQLCLR by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express and I have read the following articles and books:
(i) Connecting to SQL Express User Instances in Management Studio in http://blogs.msdn.com/sqlexpress/archive/2006/11/22/connecting-to-sql-express-user-insta...
(ii) Managing SQL Server Express with SQL Server 2005 Management Studio Express Edition in http://www.microsoft.com/technet/sql/2005/mgsqlexpwssmse.mspx
(iii) Chapter 16 - Going Beyand Transact-SQL: Using the SQL Common Language Rutime (SQLCLR) in Microsoft SQL Server 2005 Express Edition for Dummies
(iv) Chapter 21 - Working with the Common Language Runtime in Microsft SQL Server 2005 Programming for Dummies
(v) Chapter 4 - Introduction to Common Language Runtime (CLR) Integration in Programming SQL Server 2005 by Bill Hamilton.
I want to create an SQLCLR project "HelloWorld" by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express. But I am still not sure how to get it started, because I do not understand the following things:
(1) Pipe Name for a User Instance, (2) Enabling (or Disabling) the CLR by using Transact-SQL, (3) Creating a Transact-SQL script, (4) Creating an Assembly, (5) Creating a backup device, etc. I need to see some simple examples of SQLCLR by Connecting to SQL Express User Instances in Management Studio via VB 2005 Express. Please help and tell me where in the websites I can find them.

Thanks in advance,
Scott Chang

View 5 Replies View Related

SQL Server Management Studio Express: User Instances Listed/founded In SSEUtil - How They Got In And Stay In SSEUtil?

Nov 23, 2007

I have used SQL Server Management Studio Express (SSMSE) and Visual Basic 2005 Express (VBE) for more than one year to pick up the Transect-SQL, ADO.NET 2.0, SQL Server 2005 Express, SQLCLR, etc. Yesterday, I used SSEUtil to execute:
C:SSEUtil>SSEUtil -l
I got the following:
1. master
2. tempdb
3. model1
4. msdb
5. 56713D4D965AE4455_TSVISUAL STUDIO 2005PROJECTSMYFIRSTAPPSSE-VBEXPRESS-WINDOWSAPPLICATION1BINDEBUGMYDB1.MDF
6. C:DOCUMENTS AND SETTINGSCOTT H CHANGMY DOCUMENTSVISUAL STUDIO 2005PROJECTSMASTERDETAILMASTERDETAILBINDEBUGMYDB1.MDF
7. C:ADONET2CODE-JOHNSONVBCHAPTER02CONNECTEDCLASSESSETBINDEBUGPUBS.MDF
8. C:PROGRAM FILESMICROSOFT SQL SERVERMSSQL.1MSSQLDATANORTHWIND.MDF
9. C:ADVENTUREWORKSLTADVENTUREWORKSLT_DATA.MDF
I created some VBE projects and used some examples from some tutorial books and websites in the past. But, I thought that user instance timeout is 60 minutes and user instances should be gone after 60 minutes. Why do I have the above-mentioned user instances remained in SSEUtil now? Please explain this thing for me.

Thanks,
Scott Chang

View 5 Replies View Related

Failed To Generate A User Instance Of SQL Server Due To Failure In Retrieving The User's Local Application Data Path. Please Make Sure The User Has A Local User Profile On The Computer. The Connection Will Be Closed

Dec 7, 2006

This is my first time to deploy an asp.net2 web site. Everything is working fine on my local computer but when i published the web site on a remote computer i get the error "Failed to generate a user instance of SQL Server due to failure in retrieving the user's local application data path. Please make sure the user has a local user profile on the computer. The connection will be closed" (only in pages that try to access the database)
Help pleaseee

View 3 Replies View Related

How Do We Determine Which User Database Tables Are Mostly Retrieved By User Or Modified By User?

May 22, 2008



Hi,
Please give the T-SQL script for this ? Thanks

Shanth


View 4 Replies View Related

Get All Instances

Apr 23, 2008

Hi,

Can anybody tell me..which command should i use to get the list of all the server names, all the sql server instances in each server and all the databases in each sql server instance.

View 9 Replies View Related

Instances

Jan 12, 2006

Why do people have various instances of SQL Server running on 1 box , why cant we have various databases running for 1 instance

Whats the advantage of multiple instances


Thanks

View 1 Replies View Related

SQL Instances

Sep 29, 2006

I have a server running one instance of sql server enterprise edition. I want to install an additional application that requires sql enterprise edition. Can I install sql enterprise an create another instance for the new app. I know that I would have to give it's unique instance name.

Thanks in advance.

View 7 Replies View Related

Sql Instances

Jul 11, 2007

Hi every1. How can i know all the sql instances installed in my local machine?

Thanks.

RON
________________________________________________________________________________________________
"I won't last a day without SQL"

View 5 Replies View Related

2 Instances...

Feb 7, 2008

hi everyone.

i am working on 2 instances of sql. I want to do a queries and selects with this 2 instances in a single page. How could I do that?
For e.g. assuming the name of the instances are A and B...

thanks



RON
________________________________________________________________________________________________
"I won't last a day without SQL"

View 1 Replies View Related

Instances

Feb 26, 2008

Is it possible to change a 'Default' instance to a unique name?

Am thinking I shouldn't have to re-install SQL 2005?

View 15 Replies View Related

Instances Of SQL

Jul 20, 2005

Hi,Is it possible to install more than one instance of SQL on the same server?I am thinking of the SQL that comes with Windows 2003 SBS (Small business)--Thank youPlease post only

View 2 Replies View Related

SQL Instances

Jul 20, 2005

Hi,I am pretty sure that the answer to this one is a simple "no", butthought I would check anyway...If I upgrade a SQL7 server to SQL2000, leaving the SQL7 instance asthe default instance on the new SQL2000 installation and install anamed instance of SQL2000 -- Can I at a later date, make the SQL2000named instance the default instance and remove the old SQL7 instancealtogether?Many thanks,Colin

View 1 Replies View Related

Instances

Feb 2, 2007

How to see the no of instances created for my server.

View 4 Replies View Related

SQL Server Instances

Mar 5, 2007

Hi Dears, How can i detect the Local SQL Server instance (server name, uid, pwd) installed in a standalone systemusing C# 2.0?I used the fucntions available in odbc32.dll, but it only returns the result while the systemis connected in network.can any one resolve this....?thanks in advance...yenkay  

View 5 Replies View Related

Multiple Sql Instances

Dec 1, 2007

i have sql server 2005 express running. during install, i had issues with a system dll that i found answers online and resolved. i am still very green, but i know much more now than i did at the time. i believe that as a result of the partial then failed installs i have multiple instances either fully or partially installed.  when i am in the sql server mgmt express environment, it lists two sql engines.  i only ever use one, and would like to safely remove the second without damaging or corrupting anything done with the other instance.
my reasons for wanting to do this are twofold. first, i would like to free up the drive space taken up by the second instance. (i am a stickler for clean harddrive mgmt and maintenance). second, now that i have used the software and am somewhat more familiar with it, i would consider installing a second, intentional instance so that i may attempt to better customize some of the install-time settings and configurations.
can anybody give me any pointers/ guide me in the direction of information on how to SAFELY go about this?
thank you in advance for any help.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved