Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    MS SQL Server


SuperbHosting.net have generously sponsored dedicated servers to ensure a reliable and scalable dedicated hosting solution for BigResource.com.





Single Instance/Multiple Instance/Virtualization Q


I work for a mid size company with the usual collection of enterprise applications. We are trying to consolidate our SQL environment consisting of around 100 databases none of which are over 100GB with the average database size around 5GB. Recently a large server was purchased as the "Big Daddy" SQL box. Obviously not all the databases will be moved to this one box but within reason a number can.

My question: What is the best way to configure the box?

1 OS & 1 Default Instance - How do we isolate loops memory leaks etc...
1 OS & Multiple instances, ie:Dedicated instance for each application. - How do you allocate CPU & memory, allow for optimum performance without putting others at risk from a rouge process?
Virtualized OS for each application with a default instance - Too much overhead impacts performance?

Future plans include offsite replication, perhaps mirroring with failover.

I'd appreciate anyone else's thoughts ideas? How have you tackled this problem in your environment?

Thanks
Scott




View Complete Forum Thread with Replies

Related Forum Messages:
How To Move A Single Database From SQL Server Instance To New SQL Instance
Hi,

I want to move one database from the source SQL Server 2000 instance to a new SQL 2000 instance in another machine. I have five user databases in this source SQL instance. How should be my approach to move this single database out of this ? My understanding is restoring this database in the new instance, copying all logins to the new instance and then copying the jobs, DTS packages, alerts, operators only specific to this database will do it. Please let me know if this is exactly what I should do ..

Thanks in advance..

Regards,
Himansu

View Replies !
How To Move A Single Database From SQL Server Instance To New SQL Instance
Hi,

I want to move one database from the source SQL Server 2000 instance to a new SQL 2000 instance in another machine. I have five user databases in this source SQL instance. How should be my approach to move this single database out of this ? My understanding is restoring this database in the new instance, copying all logins to the new instance and then copying the jobs, DTS packages, alerts, operators only specific to this database will do it. Please let me know if this is exactly what I should do ..

Thanks in advance..

Regards,
Himansu

View Replies !
Mirroring Multiple Databases On A Single Instance
Can someone explain what does this mean? This is from  http://www.microsoft.com/technet/prodtechnol/sql/2005/dbmirror.mspx

 

<quote>However, all these techniques for coordinating client redirection with a database mirroring have an important limitation. Database mirroring occurs only at the database level, not the server level. Be careful if your application relies on querying several databases on a server, or uses multi-part object names to query across several databases. When several databases reside on one server, and they are mirrored to a standby server, it is possible that one of several databases might fail over to the standby but the others remain on the original server. In that case, you might need one connection per database that you are querying, so that you do not attempt cross-database queries on a standby server where only one database is a principal and the remaining are mirrors.</quote>

Also I read somewhere that if one mirrored DB fails, all other mirrored DB should also be transferred to the mirror.

For example:  Let's say Srv1 (principle) and Srv2 (mirror) and Srv3(witness) are SQL servers with only default instances.  The SQL instance has 4 DBs (DB1, DB2, DB3, DB4) and all of them are mirrored to Srv2.

An ASP.NET application has four seperate connection strings like:
objConn1 --> Data Source=Srv1;Failover Partner=Srv2;Initial Catalog=DB1;Integrated Security=True;
objConn1.connect();

objConn2 --> Data Source=Srv1;Failover Partner=Srv2;Initial Catalog=DB2;Integrated Security=True;
objConn2.connect();

objConn3 --> Data Source=Srv1;Failover Partner=Srv2;Initial Catalog=DB3;Integrated Security=True;
objConn3.connect();

objConn4 --> Data Source=Srv1;Failover Partner=Srv2;Initial Catalog=DB4;Integrated Security=True;
objConn4.connect();

If DB2 failsover to Srv2 (mirror), why should all other DBs be failedover? 

Thanks

View Replies !
SQL7 Job - Single/Multi-Instance
SQL7

If I have a job that runs every minute, and that job happens to take more than one minute to run on occassion, will SQL Server start a second instance of the job or will it be serial - one after another ?

Thanks,

Craig

View Replies !
CREATE ENDPOINT To Expose A Single DB Instance
I have been looking at this statement for allowing access from a remote location to a specific database on my SQL Server (2005) from a client application.
Is it possible to do this using this method? I see lots of examples using this to expose Web Services of DB objects, however I need the client application to be able to authenticate to and access all objects in the database. If so, could some one provide a simple example of the arguments to use? For example, which protocol arguments are valid for this? I would like to use SQL Server Authentication. Is this possible?
 Regards,
 -Troy

View Replies !
How Can I Migrate All Objects Alogwith All Constraints,SP,Triggers Etc From Development Instance To Production Instance
Hi fellows,

I have to migrate all objects alogwith all constraints,SP,Triggers, indexes etc from Development instance to Production instance of a DB, all those things are created through wizard ie.  Sql server 2000 Enterprise Manager. if i use DTS it only mirates data along with tables and views but  constraints,SP,Triggers, indexes etc not yet copied.

can any body  help me how can I solve this problem by copying all objects alogwith all constraints,SP,Triggers etc from Development instance to Production instance.

This is Sql server 2000 Cluster environment.

thanks in advance for any help

rahman

View Replies !
Uninstalling SQL Server 2000 Instance On A Mulitple Instance Platform From Command Line
I have a situation where we need to uninstall a SQL Server 2000 instance from the command line using the REMOVE=ALL option along with the INSTANCENAME option in the uninstall process. This must be done from the command line and not through the operating system.  We will then install a SQL Server 2005 instance to replace the old SQL Server 2000 instance.
 
My question is whether or not performing an uninstall using the mentioned options will "break" other SQL Server 2000 instances on this server or will they continue to function normally?  I know under SQL Server 2005 the REMOVE=ALL option will remove all the shared components and certain instances will be "broken"; does the same thing happen in SQL  Server 2000?

View Replies !
Default Instance Files And Named Instance File Paths
Hello FacultiesWhen SQL2000 is installed as a default instance, all its supportingfiles as installed in MSSQL directory. And after installation as anamed instance, the files are added to the MSSQL$InstanceNamedirectory. If i keep the default instance files on the primarypartition and those of the named instance on another partition, willit cause any trouble? Please help.Thanks in advanceDebashish

View Replies !
Migrating From SQL2K Named Instance To SQL2K5 Default Instance
Hi, I have a task in hand to migrate (upgrade) from SQL2K named instance to SQL2K5 default instance.  There are many intranet applications touching current SQL2K.  I would like to perform this upgrade such that I don't have to touch any application code - meaning I don't have to change the connectionstring to point to new Default instance.    How can I achieve this?

So, in otherwords, here is what I want to achieve:

Current Server: SQL2K: SERVER_AINSTANCE_A (named instance)

Upgraded Server: SQL2K5:  SERVERB (default instance)

If I have both default, I could achive this by setting up DNS alias after migration done so that any call for SERVER_A would point to SERVER_B.   But in my case, I don't have SERVER_A, I have named instance.    Is there any solution?

Regards,

Vipul

View Replies !
Named Instance Problems (Default Of 7.0/2000 Instance)
I am trying to set up a Named Instance of SQL 2000 on the same machine that has a default instance of SQL 7.0. The setup always completes and I am able to register the Named Instance of the SQL Server with which it was installed on. However, when I try to connect the users to the database, with both windows and SQL authentication, I receive a SQL server not found error. I have tried an alias setup as well as physically specifying the port number in settup up an ODBC connection.
Has anyone ran into similar problems?
Also, has anyone been able to successfully complete the process as mentioned above?

View Replies !
How SQL Server2000 Client Instance And Server Instance Works?
Hi all,

i have installed SQL client instance on my Desktop "Machine-A", and i used to connect to SQLServer2000 running on another "Machine-B" by using valid username and password.

i created a DTS package and i used to run it. im very confused how the communication happens between the two machines and which process run where and which initiates which and which machine allocates waht resources. im really interested to know all these things. if any one know plz help me out.

Thanks in advance.

View Replies !
Move SQL2005 From Default Instance To Named Instance
I have a server with sql server 2005 installed as the default instance -- I have a piece of software that needs SQL2000 to be the default instance. Is there a way other than install new sql2005 named instance and move databases to rename my SQL2005 instance from <machinename> to <machinename>sql05 for example?

Bryan 

View Replies !
Installing A Default Instance AFTER A Named Instance???
I have SQL Server 2000 Standard Edition (sp3a) running on a windows 2003 (sp4) Server.

It is a Production Server with 3 NAMED Instances and NO Default Instance.

Does anyone know if I can rerun the SQL Server Install and add a DEFAULT Instance to this box without disrupting the other Named Instances???

View Replies !
Migrating From Named Instance To Default Instance
I installed SQL Server 2005 recently on a cluster.   I didn't go for the default instance and instead I named the instance option.  Now I would like to migrate everything from the named instance to the default instance, which I haven't yet installed.
 
Is this an easy process?  What about the logins and the maintenance plans and jobs?  Is there anything else I need to be aware of?

View Replies !
Create A Named Instance On Top Of A Default Instance
Hi

I've never had to do this, but when I downloaded the Web Workflow Approvals Starter Kit, it requested that I install the database into a User Instance of .SQLEXPRESS.

Now the problem is, I've installed it onto a default instance, so I was wondering whether you can create a named instance on top of a default instance... and if so, how would you do that?

Cheers

Chris

View Replies !
Multiple Instance Of DTS
I have a DTS package I created that is dadabase driven to process source data from multiple sources.

Can I run several instances of this package in parallel for each source or would I need to create a copy for each source ?

JavaWaba

View Replies !
SSIS Multiple Instance
Hi,
I am trying to import the SSIS packages from the network into the sql server. So I try to connect to integration services using the connect button in object explorer. I enter the sql server 205 name and the instance name i.e. servernameinstancename

The error is produces is:
Failed to retrieve data for this request.
SSIS service does not support multi-instance

Thanks

View Replies !
Clustering With Multiple Instance
Dear friends

                  I want to ask something about clustering

1)We have only one Intance name in all  nodes of a cluster na.So same cluster storage (SAN device) is using in   all the virtual nodes.If some thing happen to this common .MDF file all the nodes will be down.So can we do in this way  create different instance name different nodes .Create seperate data files also .Then make replication.I don't know whether it is a foolish question.Anyway please clarify on me this

                                                                                                                         Filson

 

View Replies !
Multiple Instance &&amp; Licensing
Can multiple instances of SQL Server be installed on the same machine under the same license?  For example, a named instanced called WAREHOUSE and another called CHGMGMTSYS.

View Replies !
Multiple Instance Of The Same Report.
Hi,
 
I have a report that has a SSN input parameter based on which the report is generated.
 
So given a single row (one SSN), one report instance is generated.
 
Now, I have multiple rows 20,000 or so, rows from which I need 20,000 reports generated, (so they can be printed and mailed to the clients)
 
How do I design the report that can handle singe or multiple reports instances?
 
I did tried to use the List Report Item however I could not find a way to fix the page numbers so they restart for each instance of the reports instead of being 1 of 20,000 2 of 20,2000 and so on
 
Any help is appreciated.
Thank you,
Vance

View Replies !
Multiple Instance Cluster
Hi There
 
If i have a 2 node cluster running a single instance (default) and i want to add another instance to the cluster , can i install the second instance as a defualt instance ?
 
Since the cluster instances are referred to their virtual names/ip's and if i choose to intall the binaries of the second instance to a different location is this possible?
 
Since in theory you never have 2 default instances running on a single server but each within a virtual server?
 
Normally i install a named instance but do i have to ?
 
Thanx

View Replies !
MSDE Multiple Instance
I am trying to set up multiple instances of MSDE 2000 for use by Trend Micro virus scan products.  I have the instance set up but I am trying to access svrnetcn.exe to set up named pipes and TCP/IP and I keep getting a 126 error "The Specified Module could not be found". Any ideas how to set this up.

thanks,

eric

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance - Vista Business
Got windows Vista Business edition, installed Visual Web Developer Express, SQL Server 2005 Express SP2, SQL Server Management Studio SP1 in that order.  I was developing in VWD express without problems using WinXP but now on Vista Business, the local connection to SQL server appears to be a problem.
I know there's nothing wrong with my web.config or anything like that as it was working perfectly prior to running under Vista.  If i specify the database on the live website, it works fine.  If I specify the test database in app_data folder, I get the following exception:-

Server Error in '/UKSD' Application.


Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.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): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.]
System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection) +736211
System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) +188
System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) +1959
System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) +33
System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, Boolean ignoreSniOpenTimeout, Int64 timerExpire, SqlConnection owningObject) +237
System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(String host, String newPassword, Boolean redirectedUserInstance, SqlConnection owningObject, SqlConnectionString connectionOptions, Int64 timerStart) +374
System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(SqlConnection owningObject, SqlConnectionString connectionOptions, String newPassword, Boolean redirectedUserInstance) +192
System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, Object providerInfo, String newPassword, SqlConnection owningObject, Boolean redirectedUserInstance) +170
System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection) +130
System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnection owningConnection, DbConnectionPool pool, DbConnectionOptions options) +28
System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject) +424
System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject) +66
System.Data.ProviderBase.DbConnectionPool.GetConnection(DbConnection owningObject) +496
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.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
System.Web.Security.SqlRoleProvider.GetRolesForUser(String username) +771
System.Web.Security.RolePrincipal.IsInRole(String role) +272
System.Web.Configuration.AuthorizationRule.IsTheUserInAnyRole(StringCollection roles, IPrincipal principal) +120
System.Web.Configuration.AuthorizationRule.IsUserAllowed(IPrincipal user, String verb) +300
System.Web.Configuration.AuthorizationRuleCollection.IsUserAllowed(IPrincipal user, String verb) +191
System.Web.Security.UrlAuthorizationModule.OnEnter(Object source, EventArgs eventArgs) +3509206
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64



Version Information: Microsoft .NET Framework Version:2.0.50727.312; ASP.NET Version:2.0.50727.312
 
I am taking a guess it's somerthing to do with access issues, but can't find anything out on searching the forums etc..
I am setup as an administrator, running VWD as an administrator and for the record, SQL Server Management Studio express works fine.
Another small issue, when I run the application from VWD, I always have to minimise the application and restore it as the graphics get corrupt.
Please help!! I cannot debug when running of the live website.

View Replies !
Replace Instance Of Multiple Char(32)
I have several fileds in a sql table which holds some text and a hell of a lot of white spaces (char(32)) which is causing some problems when I show the data on the front-end

What I want to do is use sql replace function to replace the char(32). However, because there is text I can't do a simple replace as the text will become just one word !

Can anyone tell me how to loop through the field to find the char(32), where the char(32) is greater than say 5 sapces and then replace this with just one single space

E.g. a field in a table contains the following :

"my text field and loads of spaces then some more text with loads of spaces "

I want to replace the char(32) with just one space so it looks like this :
"my text filed and loads of spaces then some more text with loads of spaces"

Thanks for your help

View Replies !
SQL Multiple Instance Priority Setting
Having multiple instances of sql server on the same Win2K box and
assign them to different priorities, for example,

Instance A is set to the highest priority for user queries;
Instance B is set to medium priority for data maintenance
Instance C is set to the lowest priority for other miscellaneous jobs.

I know this scenario is not an uncommon practice in the Oracle/Unix environment. My questions is: is this also a proven practice in the Sql Server/Windows shops?

View Replies !
Multiple Instance-tools Access
 

Hello,
 
I am currently running sql 2005 express on a W2k3 server, 4G ram. I would also like to install a named instance of SQL 2005 Developer Edition on this machine. Is this ok to do? I am assuming that I can access all of the instances through the SQL Server Management Studio, is that correct?
 
Thanks
Leo

View Replies !
Multiple Instance SSRS Problem
I have installed multiple instances of SSRS on same server with different database. I can go to the report server URL for both SSRS and run reports. But I cannot connect to the 2nd instance through "SQL Server Management Studio". Also

I am getting following error when I try to connect to the "Reporting services configuration" tool from a remote machine

 



Code Block
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.
************** Exception Text **************
System.Management.ManagementException: Not found
   at System.Management.ManagementException.ThrowWithExtendedInfo(ManagementStatus errorCode)
   at System.Management.PropertyData.RefreshPropertyInfo()
   at System.Management.PropertyDataCollection.get_Item(String propertyName)
   at System.Management.ManagementBaseObject.GetPropertyValue(String propertyName)
   at System.Management.ManagementBaseObject.get_Item(String propertyName)
   at ReportServicesConfigUI.WMIProvider.RSReportServerAdmin.get_IsSharePointIntegrated()
   at ReportServicesConfigUI.ConfigurationManager.ResetStepStatus()
   at ReportServicesConfigUI.ConfigurationManager.ChangeMachine()
   at ReportServicesConfigUI.ConfigurationManager.LaunchDialog()
   at ReportServicesConfigUI.ConfigurationManager.OnActivated(EventArgs e)
   at System.Windows.Forms.Form.set_Active(Boolean value)
   at System.Windows.Forms.Form.WmActivate(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
RSConfigTool
    Assembly Version: 9.0.242.0
    Win32 Version: 9.00.3042.00
    CodeBase: file:///C:/Program%20Files/Microsoft%20SQL%20Server/90/Tools/Binn/RSConfigTool.exe
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
System.Management
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.832 (QFE.050727-8300)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.Management/2.0.0.0__b03f5f7f11d50a3a/System.Management.dll
----------------------------------------
System.ServiceProcess
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/WINNT/assembly/GAC_MSIL/System.ServiceProcess/2.0.0.0__b03f5f7f11d50a3a/System.ServiceProcess.dll
----------------------------------------
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.
For example:
<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>
When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


 
 




"Reporting services configuration"  tools works when I am RDC (Remote Desktop Connection) to the server.
 

View Replies !
Connection String For Default Instance Of SQL Server 2005, On A Box Also Running A Named Instance Of SQL Server 2000
The box I am trying to connect to is running two instances of SQL Server.
There is a SQL Server 2005 instance which is the default. There is a SQL Server 2000 instance which is named 'SQLSERVER'.
 I can connect to the SQL Server 2000 instance no problem:<add key="ConnectionString" value="server=MYPCSQLSERVER;database=mydatabase;user id=****;password=****" />
However,  I am having trouble connecting to the Default SQL Server 2005 instance. I have tried:
<add key="ConnectionString" value="server=MYPC;database=mydatabase;user id=****;password=****" />
 but it doesn't work. I have tried explicitly setting SQL Server 2005 to use port 1434 (as SQL Server 2000 is running on port 1433), and then used:
<add key="ConnectionString" value="server=MYPC,1434;database=mydatabase;user id=****;password=****" />
but this doesn't work either.
 
Am I mssing something here? Any help much appreciated
Thanks...
 

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Connection
 

my web app was working fine but as soon as i added in a page and few store procedures and 2 tables it just pop up with that error message.
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
 
i did go into the folder C:Documents and SettingsdnguyenLocal SettingsApplication DataMicrosoftMicrosoft SQL Server Datasqlexpress and delete the directory but this didnt help much. I still get the same error message. please help

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Connection
Hello,
 
I have just reinstalled windows xp pro with service pack 2 and framework 2.0.
I am using SQL Express and visual studion 2005.
I am trying to run my website and i keep getting this error message, i followed few instructions but i still failed to make it work. could someone who faced similar issues guide me,
 
thanks
 
MM

 
 
 
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed
 
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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Source Error:





Line 112: Public Overridable Property Theme() As String
Line 113: Get
Line 114: Return CType(Me.GetPropertyValue("Theme"),String)
Line 115: End Get
Line 116: Set
Source File: C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Fileswroxunitedeecd65d2e1a6a798App_Code.ws-dzmjl.6.vb    Line: 114

Stack Trace:





[SqlException (0x80131904): Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.]
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.Web.DataAccess.SqlConnectionHolder.Open(HttpContext context, Boolean revertImpersonate) +84
System.Web.DataAccess.SqlConnectionHelper.GetConnection(String connectionString, Boolean revertImpersonation) +197
System.Web.Profile.SqlProfileProvider.GetPropertyValuesFromDatabase(String userName, SettingsPropertyValueCollection svc) +766
System.Web.Profile.SqlProfileProvider.GetPropertyValues(SettingsContext sc, SettingsPropertyCollection properties) +428
System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider) +410
System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName) +117
System.Configuration.SettingsBase.get_Item(String propertyName) +89
System.Web.Profile.ProfileBase.GetInternal(String propertyName) +36
System.Web.Profile.ProfileBase.get_Item(String propertyName) +68
System.Web.Profile.ProfileBase.GetPropertyValue(String propertyName) +4
ProfileCommon.get_Theme() in C:WINDOWSMicrosoft.NETFrameworkv2.0.50727Temporary ASP.NET Fileswroxunitedeecd65d2e1a6a798App_Code.ws-dzmjl.6.vb:114
Wrox.Web.GlobalEvents.ThemeModule.app_PreRequestHandlerExecute(Object Sender, EventArgs E) in C:WebsiteWroxUnitedApp_CodeThemeModule.vb:30
System.Web.SyncEventExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +92
System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +64




Version Information: Microsoft .NET Framework Version:2.0.50727.832; ASP.NET Version:2.0.50727.832

View Replies !
RDP &&amp; Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance. The Conne
As a starter i tried to modify and translate the Personal Website Starters kit from the VS2005Team SDK.

When i'm working on the machine were it's installed , under debugging, all works great.

But when i try to develop from my laptop, via RDP on the develop machine,  i've got this message and can not debug (connect to the SQLxpres Server)

Does anybody now a solution ?? 
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

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: Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.

Source Error:







Line 5: Sub Application_Start(ByVal sender As [Object], ByVal e As EventArgs)
Line 6: AddHandler SiteMap.SiteMapResolve, AddressOf Me.AppendQueryString
Line 7: If (Roles.RoleExists("Administrators") = False) Then
Line 8: Roles.CreateRole("Administrators")
Line 9: End If


 

This is the connecting string

 

<add name="Personal" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|Personal.mdf" providerName="System.Data.SqlClient" />

<remove name="LocalSqlServer"/>

<add name="LocalSqlServer" connectionString="Data Source=.SQLExpress;Integrated Security=True;User Instance=True;AttachDBFilename=|DataDirectory|aspnetdb.mdf" />

View Replies !
Is Using A Named Instance Better Over Using A Default Instance??
If you were asked to install SQL 2005 on a machine, would u install a default instance or a named one? And why would u choose one over the other?? Also, r there any issues with using a default instance?

Thank you for all your help.

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
No wonder Microsoft is giving it away for free. It€™s not worth anything. I am very disappointed in this version of SQL server. I decided to start learning VB so I downloaded and installed VB 2005 express edition and SQL 2005 express. I tried to build a personal website using the starter kit. I kept getting the following error message, for which I have seen numerous postings on this forum.
€œFailed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.€?
I went out and bought the Standard version of VS 2005 thinking there may be a feature that the free express version is lacking. I uninstalled the express version, cleaned the registry, deleted all the folders it created and installed the Standard edition. Then I tried to create a personal web using the starter kit and it does the same thing again.
I can not create a database file, connect to a database file. I can not create or attach a database on the SQL 2005 express from VS 2005. The SQL server Express seems to be working OK since I can attach to it using Microsoft SQL Server Management Studio Express. There is something about the way VS tries to connect to the database server that is not working. VB does recognize the local computer as a SQL server but can not connect to it.
SQL server is set to accept Shared memory, TCP/IP and named pipes for local clients.
What is causing this?
This is some information on the system I am using:
 
MS XP (SP2)
 
Microsoft Visual Studio 2005
Version 8.0.50727.42  (RTM.050727-4200)
Microsoft .NET Framework
Version 2.0.50727
Installed Edition: Standard
 
Microsoft SQL Server Management Studio Express                                                                  9.00.1399.00
Microsoft Data Access Components (MDAC)                                                              2000.085.1117.00 (xpsp_sp2_rtm.040803-2158)
Microsoft MSXML                                                                  2.6 3.0 4.0 5.0 6.0
Microsoft Internet Explorer                                                                   6.0.2900.2180
Microsoft .NET Framework                                                                 2.0.50727.42
Operating System                                                                     5.1.2600
 
I am now to programming but nor computer illiterate. I have been working with MS SQL servers since version 6.5 and have MCSE, Network+, A+ and Security plus certifications. Installing and using VS should not be this problematic. What is wrong with Microsoft?

View Replies !
How To Fix Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
when I try to connect to an mdf as a power user,
---------------------------
Microsoft Visual Basic 2005 Express Edition
---------------------------
Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed.
---------------------------
OK  
---------------------------
 
I was able to do do this before until Saturady when I had to re-install sql server, and express etc due to some system problem on my xp Pro PC.  What have I misconfigured?
 
 
I do see the service SQL Serer(SQLEXPRESS) started under Network Service and SQL Serfver(MSSQLSERVER) started under local system.
 
My power user ID does have modify access to the sql 90 database folders. and to the mdf.
 

View Replies !
Failed To Generate A User Instance Of SQL Server Due To A Failure In Starting The Process For The User Instance
Hello everyone,

I am new in .NET development and currently trying to learn VWB through Microsoft online tutorials.

Here is the problem that prevents me from getting further:

in VWB, when you right click App_Data and chose "Add New Item" and then select SQL database, the following error message is displayed:

"Failed to generate a user instance of SQL Server due to a failure in starting the process for the user instance. The connection will be closed."

If I cancel out of it, it does generate mdf file under App_Data folder in Solution Explorer, but when I try to open it, it says:

"The item does not exist in the Web directory. t may have been moved, renamed or deleted." and that is where the whole sharade deadends.

I can connect via mycomputersqlexpress under Data Connections in Database Explorer (it then adds "master.dbo" to the path) and then create custom tables, but that is not the same, isn't it? I mean, this will not integrate my database tables through default configuration that I am trying to follow?

All this happens on local machine.

Thanks to everybody who can help!

Jeff

View Replies !
Can Multiple Instance In A Cluster Share Disk Resources?
Is there a way for multiple SQL 2005 instances in a cluster to share drives for user databases. 

Once we install our instances in the cluster using seperate disk resources.  Can we then have multiple instances share the same physical disk for user databases only.  This is for a test environment.

 

Thanks

View Replies !
Any Help With Returning The Last Instance Of A Multiple Version Record In Joined Tables?
 

We have an archive table which keeps each instance of a sales order that was archived under a "Verion No" field.  Each time the sales order is archived it is entered into the archive tables (Sales Header Archive, Sales Line Archive).  What I am trying to do is write a query to return all sales orders but only the most recent archived version.
 
For example this table layout is similar to what I am working with.  Version No, Order No and Customer No. are the keys between the Header and Line tables, Customer Name column in the output is from only the Sales Header Archive table
 
SALES LINE ARCHIVE TABLE
Version No - Order No. - Customer No -----> (other columns)
     1              s-5               1000

     2              s-5               1000
     1              s-6               2000

     1              s-7               3000
     2              s-7               3000
     3              s-7               3000
     1              s-8               4000
     1              s-9               2000
     2              s-9               2000
 
 
Here is what I need to output to show:
 
RESULTS OF JOINED TABLES
Version No - Order No - Customer No - Customer Name ---> (other columns)
     2             s-5             1000              Something, Inc.
     1             s-6             2000              Acme
     3             s-7             3000              Company, LLC
     1             s-8             4000              Blah & Associates
     2             s-9             2000              Acme
 
It should return the last Version No of each Sales order.
 
Does that make sense?  It is something probably easy...  But, I've spent two days using multiples and multiples of different ways, that just aren't working:  I'm about to dropkick my server cabinet...
 
 

View Replies !
Named SQL 2005 Instance Multiple Active Recordsets-C# Stored Procedure-Connection String
I am working on a C# stored procedure for SQL 2005, and i've uncovered a couple questions.

First a description of the procedure:

I have a series of equations taking place to calculate a score based on activities in which the user participated in, that will give them an over all grade or rating.  The calculations currently take place in the database, and I am moving this from T-SQL to C# CRL.

1.  In order to connect the stored procedure to the database I use a SqlConnection and a SqlCommand to execute either dynamic sql or a stored procedure to return data to a data reader.  Is there an easier way to connect to the database?  In SSMS if i open up the query it knows what database i am connected to.  Do I have to make a sql connection in C# stored Procedures?

2.  I have multiple functions within the main C# Stored Procedure that I'm working on.  This ends up requiring Multiple Active Recordsets.  I must set this withing the connection string.  Seeing as I'm using a named instance of SQL 2005, I now must put the userid, password, and server name into the code.  Is there a more secure way to connect to SQL Server in a C# Stored procedure that allows MARS?

3. I encryped the connection string, and put it into the assembly, I wrote a decryption class, and in the procedure itself everytime I need to refrence the connection string, I call it, decrypt it, and pass it along.  But my code to decrypt the connection string is in the compiled DLL, if the server was ever compromised the encrypted connection string and the key to decrypt it are sitting in the DLL.  Is there a config file that I can use for C# Stored Procedures?

4.  If I have to keep the connection string in the file, then I need to change that per environment.  Example I have 3 test environments before production.  So I would need to change the connection string for each file.  That may be fine for one procedure, but what if I have 20, that will quickly get of hand?

5. Along the security lines, can the assembly for a C# Stored Procedure be called from outside the assembly?  From a command prompt, or by a maliceous program?  Or could it be called directly by a .NET application instead of going through a T-SQL Stored Procedure that is using
WITH EXECUTE AS CALLER
AS
EXTERNAL NAME [PROJECTNAME].[CLASSNAME].[METHODNAME]


Thanks

View Replies !
Error Message: Failed To Generate A User Instance Of SQL Server. Only An Integrated Connection Can Generate A User Instance
 Hello everybody,I was configuring a SqlDataSource control using SQL Authentication mode.I first added a database file (testdb.mdf) through Solution Explorer-Add New Items. Then through Database Explorer I created a table named "info"Then while configuring  the SqlDataSource control I used the SQL Authentication mode and attached the "testdb.mdf" database file.Test Connection showed success. But when I hit the Ok button of the wizard it displayed the following error message:Failed to generate a user instance of SQL Server. Only an integrated connection can generate a user instance.While configuring the  SqlDataSource control I clicked "New Connection". Under Data Source section I tried both Microsoft SQL Server and Microsoft SQL Server Database File. And in both the cases I attached a databese file(testdb.mdf).          Plz enlighten me on this.Thanks and Regards,Sankar. 

View Replies !
Named And Default Instance In SQL Server 2kNamed And Default Instance In SQL Server 2
Hi,

I am trying to create a DB in a instance of sql server 2k. But the problem is
i have two instances, one default and the other named instance.
So when i create a db in default instance, the same is getting
created automatically in named instance.
Same happens when i try to do this in named instance. I mean both are acting
like mirror instances. Can anyone try to sort this out.

thanks in advance,
sekhar

View Replies !
Connect From Databases In 1st Instance To Databases In 2nd Instance
This is the scenario. Is it possible to create views or something (like Oracle DB Links) in a database in Instance 1 which can show data from another database in 2nd Instance ?


I want to do this to create reports.

View Replies !
2nd SQL Instance. Pro & Con
Here's our problem:

We have our SQL2000 server setup for the collating sequence that a third
party, Lawson Software, requires, and are in the process of testing our
new Lawson installation.
OK so far, however, we want to use this SQL server for non-Lawson
databases using the default (non-Lawson collating sequence). I think
that we can change the non-Lawson databases individually to the default,
but am afraid that down the road, each time we add a database, we'll
have to remember to change the setting, and will get tripped up from
time to time.

Since Lawson will be more static as far as database creation goes, are
there any suggestions about how to handle this, such as changing the
Server collation back to the default, and set the Lawson databases to
what they need ?

How about installing a 2nd instance of SQL for the non-Lawson
applications on the same server ? Would that keep the Lawson &
non-Lawson things more separate ??

Thanks in advance for your help & suggestions.

View Replies !
First Instance Only
Is there a SQL function that will return only the first or top instance of each separate result.

For example:

Select x,y,z
from a

When x,y,z appear more than once in the result set, I only want one of them, or the first one, returned.

Please do not confuse this question with "select top 1 x,y,z from a" - that is a separate animal.

Thank you to all,

JR

View Replies !
Dts Instance
i have a DTS which is been excuted on multiple instances. but i need to know which instance of the dts is running when i enter into the dtspackage at runtime. I tried with activex script inside the dts to take the instance i was notable to make it.... Can any one help me in this...

View Replies !
How To Specify Instance Name?
I have 2 named instance (prod and test) running on the same enterprise 2005 sp2 64-bit server.
 
Development is on a different virtual machine not connected to the above server.
 
How and where in the configuration file can I specify which instance a package shall use?

 
It should be possible to run different package on the 2 instances at the same time.
 
Regards

View Replies !
Instance Of Sql
 

hi all ,
 
 
when i opened the sql sever 2005 logs i seen  this message can any one pls suggest  wht it means?
 
Message
This instance of SQL Server has been using a process ID of 7548 since 1/16/2008 9:58:28 PM (local) 1/16/2008 4:28:28 PM (UTC). This is an informational message only; no user action is required.
 
 
thanks in advances,
manoj

View Replies !
Instance Name
Hello,
This is the present setup.
Server A --> sql server 2000
Server B --> sql server 2005

On my machine I point to an instance name of sql server 2000 to use. i.e.
sqlserver2000Serverinstance1
On my local machine I have installed sql server 2000 and can use the enterprise manager. Have the Admin rights.
I have setup a daily backup job on sql 2000...

On server B, I installed sql 2005. Restored the sql 2000 backup onto sql 2005. And now I have the sql 2000 database in sql server 2005.

Now I can use the sql 2005 by refering to the serverB name (Not an instance).

In Server A, the applications are using a login name (sql authentication) i.e. username, password.

Questions
1) How do I install sql 2005 on my local machine (Remember that I have sql 2000)

2) If I should run the setup for sql 2005 on local machine, then during the installation, do I give it an instance name or should this instance name be done on the server i.e. server B ?

Thanks

View Replies !
SQL Instance
Hi

Previously I install SQL Server 2005 Express edition
and now I install SQL Server2005 Developer Edition
on the same machine.

But I want to remove the Express instance from the machine
how can i do it..

thanks

asm

View Replies !
Instance Name
Hi gang,

Another question. I'm using SQL Server Express and I went to the Configuration Manager and don't find anywhere the default instance 'SQLEXPRESS', instead I see things like "SQL Server 2005 Network Configuration" and under that "Protocols for MSSQLSERVER". Does this mean that whoever installed Express named the default instance "MSSQLSERVER"?

Also from my application I use a connection string to connect to SQL Express using "SERVER=MYSERVER" and it connects fine but when I try to use "SERVER=MYSERVERMSSQLSERVER" or "SERVER=MYSERVERSQLEXPRESS" it doesn't connect.

Any ideas?

Thanks.

View Replies !

Copyright © 2005-08 www.BigResource.com, All rights reserved