I make an application. I want to make an setup to install sqlexpress. So I add the SqlExpress in prequested components. There I want to make some configuration to the sqlexpress. There configuration that i want to make is that , to create a new sql instance in sqlserver. While installing the sqlexpress ... default instance is "sqlexpress" if i install express edition. anyway, i want to make it something like "abc". So how can i make a configuration to the sqlexpress installation
For the first time, I want to set up the configuration of my SQL Server Management Studio Express (SSMSE) to allow me in doing the non-User-Instance/ADO.NET 2.0 programming from my VB 2005 Express. The SSMSE and VB 2005 Express are in my Windows XP Pro PC that is part of our NT 4 LAN System in our office. I read the article "How to configure SQL Server 2005 to allow remotre connections" in http://support.microsoft.com/kb/914277/ about (i) "Enable remote connections for SQL Server 2005 Express", (ii) Enable the SQL Server Browser service", (iii) Create exception in Windows Firewall, and (iv) Create an exception for the SQL Server Browser service in Windows Firewall. I entered the SQL Server Surface Area Configuration and I could not decide what options I should take for doing the non-User-Instance/ADO.NET 2.0 programming from my VB 2005 Express. I have the following questions on the page of "Minimize SQL Server 2005 Surface Area": (1) I saw "Configure Surface Area for localhost [change computer]". I clicked on [change computer] and I saw the following: Select Computer The Surface Area Configuration of this surface area of this computer or a remote computer. Specify a computer to configure: O Local computer O Remote computer Should I choose the "Local computer" or the "Remote computer" option? (2) Below the "Configure Surface Area for localhost [change computer]", I clicked on "Surface Area Configuration for Service and Connections", Select a component and then configure its services and connections: |-| SQLEXPRESS |-| Database Engine Service I picked => Remote Connection On the right-hand side, there are: O Local connections only O Local and remorte connections O Using TCP/IP O Using named pipes only O Using both TCP/IP and named pipes Should I choose O Local and remorte connections and O Using named pipes only?
Please help and tell me what options I should choose in (1) and (2).
Hi all, I have read/studied (i) Working with Databases in Visual Web Developer 2005 Express in http://quickstarts.asp.net/QuickStartv20/aspnet/doc/data/vwd.aspx, (ii) Xcopy Deployment (SQL Server Express) in http://msdn2.microsoft.com/en-us/library/ms165716.aspx, (iii) User Instances for Non-Administrators in http://msdn2.microsoft.com/en-us/library/ms143684.aspx, and (iv) Embedding SQL Server Server Express in Applications in http://msdn2.microsoft.com/en-us/library/ms165660.aspx. I do not understand the concepts and procedures to do Xcopy and User Instances for non-administrators completely-I do not know how to connect to databases and create database diagrams or schemas using the Database Explorer. I have a stand-alone Windows XP Pro PC. I have created a ChemDatabase with 3 dbo tables in the SQL Server Management Studio of my SQL Server Express and a website of my VWD Express application with an App_Data folder. I am not able to proceed to use Xcopy and user instance to bring the 3 dbo tables of ChemDatabase to my App_Data folder. Please help and give me some detailed procedures/instructions to bring the 3 dbo tables of ChemDatabase (or ChemDatabase itself) from the SQL Server Management Studio Express to the App_Data folder of the website of my VWD Express project? Thanks in advance, Scott Chang
How is memory, (RAM) used per instance in SQL Express 2005? I am aware that SQL Express will use only 1 GB of RAM, but is that as a whole, or per instance?
SQL Express 2014 was installed to support reporting for an application. I can connect to the server using the server name without any issue. When I run “select @@version”, I get SERVERNAMESQLEXPRESS, but I can’t connect to the server with SERVERNAMESQLEXPRESS. This is throwing off one of my script when trying to connect to the server.My script connects to the server using SERVERNAME for default instance or SERVERNAMEINSTANCENAME for named instance.
I just installed SQL Server Express 2005 (server) and created default instance SQLEXPRESS, so that, when I want to access in remote mode, the server conn string is: <servername>SQLEXPRESS
But I have been told there is one way to configure SQL Server so that only one instance is allowed, so you dont need to specify any. If this was true, I would only need to give 'servername' to access remotely.
Is this true? How can I achieve this? Will it be possible to doing it after having installed software, or do I have to uninstall and install it again?
Sorry if this is too basic, I am just having first contact with SQL Server
Hi, I have a installed SQL Server named instance by passing command line parameters to SQLEXPR.EXE on many computers. When I tried to uninstall this instance from one of the machines, the unistallation doesn't proceed after System Configuration Check dialog. The screen was blank for a long while and I had to use the Task Manager to stop it.
I'm able to unistall this instance from the other computers.
Also, I'm able to remove the instance by Clicking the Change option from Add/Remove programs.
When I try to connect to a default Express instance in Management Studio at the machine (Windows XP SP2) where the instance is installed, I'm getting the following error:
An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified) (Microsoft SQL Server)
What does provider: SQL Network Interfaces mean? Does it mean the Shared Memory, Named Pipes and TCP/IP?
Additional information: 1. The following Network Protocols are enabled: Shared Memory, Named Pipes, TCP/IP thru Configuration Manager 2. SQL Server Express default instance is running using NT AUTHORITYNetworkService. 3. SQL Server Browser service is not running. I believe this is not needed unless I want to connect to the instance from another machine. 4. Has tried to disable Windows Firewall but I believe it should not be matter in this particular case since this is within the same machine. 5. Can connect to the instance in ODBC Administrator using System DSN thru Named Pipes or TCP/IP.
Can such error caused by not having sufficient memory so the system is running kind of slow?
i have both server instances installed on same machine, 1st is sql 2k enterprise and 2nd is sqlExpress 2005.
all was working fine till today, i renamed a catalog in the express2005 instance. the reason for this renaming was a duplicate catalog name in the 2k and in the 2005 so when i backup my dbs one is overwriting the other because of the same file name.
after this rename i started to get some errors in the application so i decided to rename it back to its original name and relocate the backup destination to other folder.
now the situation in that i cant login any more to the 2005 server, when i login to servsqlexpress2005 (via manager or via odbc) i see always the 2k server. i tried to login to any server name like .sqlexpress2005 or whatever i always get to see the 2k catalogs only.
in proccess list i see both sqlserv.exe proccesses, also in services all is working fine, i only cant access to this server in any way.
PLEASE HELP!!! should i reinstall 2005 instance? i dont wanna do that i have so much configs on it include very massive reporting services
***the more that i try to connect my 2k5 server the problem looks wierd more and more. when i connected as localhostsqlexpress2005 i succeeded... but in 2-3 minutes connection didnt turn off, but it switched to the 2k server... it looks like a major bug!!! how can connection switch himself between 2 server without even notice??
I am using SQL Server Express to connect to the network using VPN on a local machine. I have done the following..
a.) Enabled the remote connections for the Express Instance and rebooted the machine.
b.) Connected to the machine with Express Edition locally and can also connect other SQL Server instances from it to verify connectivity.
c.) Yes, SQL Browser Service is running.
d.) Firewall is not turned on, so I do not have to configure any exceptions.
Now here is the big problem: When I browse for SQL Servers on the network the machine does not show up on the list, i.e "macinenameSQLExpress". I had uninstalled and reinstalled the Express edition and rebooted the machine several times with no luck on the SQL Express Instance showing up on the browser list. I even changed the default instance name to "machinenameMACHINE1" on one of the reinstalls. However, I can connect to other SQL Instances from it. But, I cannot connect to it from other machines since its not registered on the network. I have been working on this for the past few days by looking for a solution via this and other forumns. Is there some setting somewhere that I am missing that prevents this instance from not showing up on the browser list. This issue with SQL Express Edition is baffling as well as frustrating and any ideas that can resolve this issue is very much appreciated.
Im working in a proyect where i need to attach a mdf database to the client's SQL express instance. How can i accomplish during installation and without getting the user involved.
Can anyone tell me what are the necessary steps if I want to connect to a Remote SqlExpress Instance ? I am using Visual Studio 2005. When I tried to connect it says that the remote server does not allow remote connection. I have enabled all the protocols from Sql Server Configuration manager and disable the firewall. But it still not working. Pls Help me. Thank You.
I installed SQL Express but didn't install using mixed mode (which is required for the application I am using, DynamicsGP v10). I tried to uninstall and re-install using mixed mode but here is where the nightmare begins. I get a message that the instance name already exists (the default instance name) and I get kicked out of the install.
I am not technical. I went to the support forum but couldn't understand most of the answers to questions which seemed to be related to my problem.
Please, could someone help me with this. It sounds like a simple problem but I am stuck.
I am attempting to install SQL Express 2005 on a laptop that already has MS Sql Server installed.
I downloaded the SQLEXPR_TOOLKIT.EXE from Microsoft's website and let it go through its installation routine accepting all the default answers.
When I open SQL Server Management Studio Express, I can only connect to the SQL 2000 instance. I have issued the 'SELECT @@VERSION' command, and When I try to connect to the instance COMPUTERNAMESQLEXPRESS, the following error message is displayed: Cannot connect to YOUR-F8A010A9D0SQLEXPRESS. An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure my be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error locating Server/Instance Specified) (Microsoft SQL Server)
When I go to remove SQL Express 2005 using the add/remove programs, there is a check box that says "Remove SQL Server 2005 instance components" and in the box underneath where it lists all the instances it says: "No instances have been installed"
I'm currently building an MSI to install SQL Express and want to install as a new instance, not the default instance, and not into the SQLEXPRESS instance either.
I saw the package.xml for Express in my VS Studio install. How would I go about using this? Or would I have to modify the MSI via Orca or something? I hope not. Wouldn't have a clue where to start.
In short, regardless if there is already an SQL Express instance on the machine or not, I need to silently install a fresh new instance of the server engine only, no client tools except sqlcmd.exe
I have seen that MS would advise that everyone use the SQLEXPRESS instance but I don't agree with it. I don't want other application installs trampling over my server settings and I don't want to trample over others. For example, expose others to TCPIP and CLR when they don't need it, and conversely others swithing them off in a shared server instance when I do need them.
Is there a way to re-index a SQL Server Express User Instance? If I try to open the .mdf while the website is still running, I get a message stating that the file is in use. If I shut down the web service and open the .mdf, then restart the website, then the website cannot access the .mdf while I have it open in VStudio (reminds me a lot of Access). In the past I tried to open a user instance with SQL Server Management Studio, but then it goofed up my user-instance...so I am hesitant to try that again. Is there any way to re-index? Thanks!
Hi, As per my understanding, if the user instance property is set to true for an express database then it is not multiuser/shared. A copy of the database is made for each user so he works on his private data. On the other hand, if user instance property is set to false then the express database is multiuser/shared. Thus different users will connect to the same instance of the database and changes by one user will be seen by the other users. Now, if we use an express database with asp.net and our application is installed on IIS then it is mandatory for the express database to have the user instance property set to true. But we see that in this case when different users visit our website, the data they enter goes into the same common database, ie. all the users share the same common database, even though user instance is true for the express database. Please shed some light to explain the correct functionality of the user instance property as related to the express database. Regards, Sandy
I'm new to SQL Server and just installed VS 2005 and SQL Server 2005 Express. My question is, is there any naming rules for an instance? When I open Express Manager it is asking me to enter an Instance name. Thanks for any suggestions or help,
I want to Upgrade my express instance "Officeservers" to standard. I have installed Sql Server 2005 standard, but the MOSS 2007 installs default Officeservers to express. The reason to upgrade is to use the maintenance plans to backup the instance. I have a report server on a different instance (standard).
Do I upgrade with SKUUPGRADE=1 and this is all ? Do I need to run sp2 after this and does this affect my report server ?
Do the restrictions for SQL 2005 express apply to each instance or per server? For example, if there are two instances installed on a dual CPU machine, can each instance be configured to use 1 CPU and 1 GB of RAM?
(have reposted this here from Setup group, since no answers there)
Hi, I am having a lot of trouble connecting to a user instance I've created. User instances have been enabled, Named pipes are also enabled. Running on XP SP2 with SQL2K5 SP2. I also have a standard SQL2005 instance running on this development machine.
When using SqlClient in a .Net2.0 application, my connection string to create the user instance looks like: "Data Source=.SQLEXPRESS;integrated security=true;attachdbfilename=c: emp3500.mdf;user instance=true"
This connection succeeds and I see the new service being started etc. I also see the log file being created in my Application Data area. The log file all looks normal except for these lines at the very top of the report.
2008-04-15 16:29:13.57 Server Error: 17156, Severity: 16, State: 1. 2008-04-15 16:29:13.57 Server initeventlog: Could not initiate the EventLog Service for the key 'D69F8BFF-E490-47'. 2008-04-15 16:29:13.67 Server Error: 17054, Severity: 16, State: 1. 2008-04-15 16:29:13.67 Server The current event was not reported to the Windows Events log. Operating system error = 6(The handle is invalid.). You may need to clear the Windows Events log if it is full. 2008-04-15 16:29:13.67 Server Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86)
I can also run a query on the main express instance to check if a child instance is running: SELECT owning_principal_name, instance_pipe_name, heart_beat FROM sys.dm_os_child_instances
If i try to connect via sqlcmd with this command line: C:Program FilesMicrosoft Visual Studio 8VC>sqlcmd -S np:\.pipeD69F8BFF-E49 0-47 sqlquery -l 60
this will give: HResult 0x57, Level 16, State 1 SQL Network Interfaces: Connection string is not valid [87]. Sqlcmd: Error: Microsoft SQL Native Client : An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections.. Sqlcmd: Error: Microsoft SQL Native Client : Login timeout expired.
If i try to connect via SSMS using the pipe name above and everything else defaulted, i get the following error: An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 25 - Connection string is not valid) (.Net SqlClient Data Provider)
Both errors are pretty similar. I am running this locally, so I suspect the 'remote connection' error text is a red herring. The connection string is pretty minimal so I cant see why the connection string is invalid.
Heres another wierd thing. It used to consistently work. It now consistently fails. I have also tried creating a VM with SQLX. Now that works initially but once it fails, it seems to fail consistently. Reboots of the VM dont seem to fix it. That sort of leads me to believe that I've done something to my server (ie a setting somewhere).
Any help getting this connection issue sorted would be appreciated!
I recently installed SQL Server and Visual Studio. When I went into SQL Server, I could only connect to a SQL EXPRESS Database engine. I need to access the full Database. I tried disconnecting it, uninstalling/reinstalling. Now I cant connect to the SQL EXPRESS DB Object. There are no SQL Server services running.
[Background] Upgraded SQL Server Express to Advanced and I started getting a user instance error. I followed the advice on some posts (most notably: http://blogs.msdn.com/sqlexpress/). I deleted the User Template Data as the instructions say but now get the error below when trying to run my application. I've tried setting User Instance = False with no luck. Also noticed after rebooting that the Template Data file was recreated but the folder is empty. Have tried re-installing the update but it says there's nothing to update! Has anyone else had this problem? Any fixes? Any help will be greatly appreciated...
Many thanx, Milt
The details:
Failed to generate a user instance of SQL Server due to a failure in copying database files. 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 copying database files. The connection will be closed.
Source Error:
Line 88: /// <returns></returns> Line 89: public static ShoppingCart GetCart() { Line 90: IDataReader rdr = ShoppingCartProvider.Instance.CartGetCurrentCart(GetUserName()); Line 91: ShoppingCart cart = new ShoppingCart(); Line 92: cart.Load(rdr);
I have installed SQL Server Express and I can connect with it locally using "localcomputernameSQLEXPRESS". It is configured for remote connection and for some reason, when I browse for this instance on the Network Server, it does not appear in the list. I have unistalled/installed it several times and still I cannot see this instance on the SQL Network server list. Can anyone help troble shoot this frustrating issue...
how do I attach my user instance mdf and chagne scheme etc? for example my mdf is at c:sqldatamyapp.mdf
I tried attach and got
TITLE: Microsoft SQL Server Management Studio Express ------------------------------
Attach database failed for Server 'IEI-A64SQLEXPRESS'. (Microsoft.SqlServer.Express.Smo)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.2047.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Attach+database+Server&LinkId=20476
Hello, I'll try to make the description of this multi-problem scenario as short and sweet as possible.
First Problem The default named instance of "SQLEXPRESS" was somehow installed on my machine and nothing can get rid of it. However, it is somehow invisible to everything else on my system, so I can't use it. How do I get rid of the instance or repair it?
Second problem I installed another instance of the SQL Server 2005 Express and named it, "SQLEXPRESS02". I attached a database to it and successfully retrieved data from it using an application that used the following connection string:
Data Source=(local)sqlexpress02;AttachDbFilename=|DataDirectory|MyDatabase.mdf;Initial Catalog=MyDatabase;Integrated Security=True;User Instance=True
Next, I tried to use a different application to retrieve data from a copy of the same database located in a different directory and used the same connection string as that shown above. When I do this, I receive an error message similar to the following:
Database 'C:PathToMyOriginalProjectinDebugMyDatabase.mdf' already exists. Choose a different database name.
Cannot attach the file 'C:PathToMyNewProjectinDebugMyDatabase.mdf' as database 'MyDatabase'.
I then tried, out of curiosity, to change the Initial Catalog portion of the connection string to "MyDatabase2" and attempt the data retrieval again. The connection string looked like this:
Data Source=(local)sqlexpress02;AttachDbFilename=|DataDirectory|MyDatabase.mdf;Initial Catalog=MyDatabase2;Integrated Security=True;User Instance=True
Interestingly enough, it worked. However, when I switched back to the original connection string, I got the same error message as before.
What's going on here? I thought that one of the virtues of user instances was that they would attach at run-time, then disconnect when the application was through with them. If that's the case, then why am I getting errors stating that a database of the same name is already attached? Is there a way to detach these databases from a user instance? Can it be done by some value in the connection string?
If I create a database in SQL Express and then copy the MDF/LDF files and attach them to a machine running SQL Server 2005 Standard - will this new database have SQL Express limitations?
Are there good reasons not to do this and create the database in SQL Server Standard using scripts generated from the SQL Express instance instead?
Basically, I'm setting up a merge replication between Standard and SQL Express for a common database and I figure attaching a copy of the database created in SQL Express is the fastest way to get this started.