Quantcast
Channel: SQL Server Express forum
Viewing all 3319 articles
Browse latest View live

The MOF compiler could not connect with the WMI server

$
0
0

TITLE: Microsoft SQL Server 2014 Setup

------------------------------

The following error has occurred:

The MOF compiler could not connect with the WMI server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such as the failure of the WMI server to start.

For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft%20SQL%20Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=12.0.2000.8&EvtType=0xA60E3551%25400xD3BEBD98%25401211%25401

Please do not ask me to go in to another link. I have spent over a week on this error. I had enough of it. I have been to hundreds of pages and unable to find a single solution. There is no point going in to another link; it is waste of time. It is vicious circle with no clear solution.

It is beggars believe this error has been dragged for over 10 years and yet Microsoft not only has not a fixed it, but does not know how to fix it. How is that difficult to put in all possible causes of errors with their solutions on a single page so that users do not browse 100s of pages with no apparent solution?

I have read all questions on this forum and others and none of them have answered how to solve this error, except to try another link.

This is my guess of the error I am getting from I have read on millions of blogs, forums and articles.

I need to uninstall a file from PC before I re-install SQL server. To do this, I need to use uninstall software as removing from control panel does not remove this file. I am unable to find a software which can clean the installation as this tool has been removed by Micro soft. So, I have left with no option but to completely forget SQL altogether unless someone on Microsoft comes up a with a solution, but please not ask me to go in to link as all these pages do not have a solution, but only linking to another page and then to another page.

I would like to use SQL server 2014, but it appears to me that I need to have a PHD on files, servers and errors.


Kamal-1


How to split url in sql server

$
0
0

Here is the url

www.abc.com/a/b/c/d/e/f/g/h/i

I want result like this

www.abc.com/a/b/c/d/e/f/g/h/i
www.abc.com/a/b/c/d/e/f/g/h
www.abc.com/a/b/c/d/e/f/g
www.abc.com/a/b/c/d/e/f
www.abc.com/a/b/c/d/e
www.abc.com/a/b/c/d
www.abc.com/a/b/c
www.abc.com/a/b
www.abc.com/a
www.abc.com/

Musakkhir Sayyed.

No SQL Server Configuration Manager

$
0
0

i have an instance of SQL on a 32bit Windows 2003 server, there is no configuration manager loaded, can I make the following changes with a command line?

\\.\pipe\MSSQL$MICROSOFT##SSEE\sql\query

  1. Change the flag Hide Instance to No in SQL Server Configuration ManagerProtocols for MachineName\Microsoft##SSEE.
  2. Ensure that the SQL Server Browser service is running in SQL Server Configuration ManagerSQLServer 2005 Services.
  3. Ensure that Named Pipes is enabled in SQL Server Configuration ManagerProtocols for MachineName\Microsoft##SSEE.

 

SQL Server 2012 Express SP1 will not install on Windows Server 2012 Essentials R2

$
0
0

I have been attempting to install SQL Server 2012 with SP1 Express Edition for about a two weeks and have been unsuccessful.  My organization recently purchased a new Dell PowerEdge T320 Server (64 Bit) with Intel Xeon Proc.-E5-2420; 2.2Ghz, 32 Gb RAM, 1 Tb RAID 5 H/D, and Windows Server 2012 R2 Essentials (preinstalled).  The server will be configured as an on premises server.  We are running a small church management application that requires SQL Server 2012 SP1 Express.  Per the direction of our application vendor, we downloaded the SQL Server 2012 SP1 Express file (SQLEXPRADV_x64_ENU.exe) from the Microsoft SQL Server Website.  We ran the file "As Administrator" and the SQL Server 2012 Setup program began.  We selected New SQL Server Stand-Alone Installation, successfully installed the needed Product Updates, and accepted the MS SQL Server 2013 Express License terms.  When the Feature Selection Page appeared we checked only the"Data Base Eng Services".  TheInstance Configuration Page was displayed and we inserted a "Named Instance= Shelby",then pressed next.  On theServer Configuration Page the only change was setting the"sql server browser = automatic".  The Database Engine Configuration Page appeared and we inserted the following settings:1] Server Configuration Tab; a) mixed mode, b)inserted SQL Server Admin pswd, c) added current user as administrator: 2] Data Directories Tab; default/no changes: 3] User Instanced Tab; default/no changes: and 4] Filestream Tab; default/no changes.  Next the Reporting Services Configuration Page came up and the reporting services native mode was set to"install and configure".  The Error Reporting Page appeared and was left as the"default".  The SQL Server 2012 Setup program proceeded to Installation Progress Page and started to install. Just before the install program ended it displayed a message saying that there were errors and the Database Eng Services did not succeed. I uninstalled SQL Server 2012 SP1 Express three (3) times, ran Windows Update after every uninstall, attempted to install the Database Engine and got the same results.  Are there any patches or special procedures for correctly installing SQL Server 2012 SP1 Express on my hardware configuration or Windows Server 2012 Essentials R2?  Any insight would be greatly appreciated.

Cannot recreate deleted database

$
0
0

I've run into the following situation multiple times:

- prototype a data access layer module using Entity Framework/Code First and LocalDB

- the model changes often and I don't want to polute the module with many migrations; I want to have a clean model generated when I'm sure the model works the way we need; this is why I often delete the generated .MDF file

- After doing this for a few times (maybe 5), I can no longer create a database; the error message says 

"System.Data.SqlClient.SqlException occurred
  _HResult=-2146232060
  _message=An attempt to attach an auto-named database for file {full path to MDF file here} failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
  HResult=-2146232060
  IsTransient=false
  Message=An attempt to attach an auto-named database for file {full path to mdf here} failed. A database with the same name exists, or specified file cannot be opened, or it is located on UNC share.
  Source=.Net SqlClient Data Provider
  ErrorCode=-2146232060
  _doNotReconnect=false
  Class=14
  LineNumber=65536
  Number=15350
  Procedure=""
  Server=(LocalDb)\MSSQLLocalDB
  State=1

I've cleaned up the MSSqlLocalDb multiple times, rebooted the system a few times, deleted and recreated the MSSqlLocalDb instance, but the error remains the same.

What can I do to be able to recreate the databases at will?

SQL Server Management Studio File Open dialog is very slow to change directories

$
0
0

I am running Microsoft SQL Server Management Studio    10.0.2531.0 on Windows 7 Professional.

I have an intermittent problem with the File Open dialog. Sometimes it works reasonably well, but often it takes a very long time (a few minutes) to change directory. While it is doing whatever it is doing, the dialog and all of SSMS becomes unresponsive - I can't even cancel the dialog. It sometimes changes the cursor to an hourglass and sometimes not.

I do not have this problem with any other application.

I can open File Open one time and have this delay for every single directory change or if I open the Look In dropdown then, after closing it I can open it again and it will work with normal delays.

It is slow more often than it is normal.

It makes accessing files very impractical.

Errors on script while parsing

$
0
0

I create a sql database from sql 2008 and now am using sql 2014 and azure database .I generate script and try to parse it from azure database . but it shows error .i change the compatibility to 120 and generate script then be its shoing somany errors

these are the errors

Msg 102, Level 15, State 1, Line 3
Incorrect syntax near 'CONTAINMENT'.
Msg 102, Level 15, State 1, Line 9
Incorrect syntax near 'COMPATIBILITY_LEVEL'.
Msg 40511, Level 15, State 1, Line 11
Built-in function 'FULLTEXTSERVICEPROPERTY' is not supported in this version of SQL Server.
Msg 102, Level 15, State 1, Line 16
Incorrect syntax near 'ANSI_NULL_DEFAULT'.
Msg 102, Level 15, State 1, Line 18
Incorrect syntax near 'ANSI_NULLS'.
Msg 102, Level 15, State 1, Line 20
Incorrect syntax near 'ANSI_PADDING'.
Msg 102, Level 15, State 1, Line 22
Incorrect syntax near 'ANSI_WARNINGS'.
Msg 102, Level 15, State 1, Line 24
Incorrect syntax near 'ARITHABORT'.
Msg 102, Level 15, State 1, Line 26
Incorrect syntax near 'AUTO_CLOSE'.
Msg 102, Level 15, State 1, Line 28
Incorrect syntax near 'AUTO_SHRINK'.
Msg 102, Level 15, State 1, Line 30
Incorrect syntax near 'AUTO_UPDATE_STATISTICS'.
Msg 102, Level 15, State 1, Line 32
Incorrect syntax near 'CURSOR_CLOSE_ON_COMMIT'.
Msg 102, Level 15, State 1, Line 34
Incorrect syntax near 'CURSOR_DEFAULT'.
Msg 102, Level 15, State 1, Line 36
Incorrect syntax near 'CONCAT_NULL_YIELDS_NULL'.
Msg 102, Level 15, State 1, Line 38
Incorrect syntax near 'NUMERIC_ROUNDABORT'.
Msg 102, Level 15, State 1, Line 40
Incorrect syntax near 'QUOTED_IDENTIFIER'.
Msg 102, Level 15, State 1, Line 44
Incorrect syntax near 'DISABLE_BROKER'.
Msg 102, Level 15, State 1, Line 46
Incorrect syntax near 'AUTO_UPDATE_STATISTICS_ASYNC'.
Msg 102, Level 15, State 1, Line 48
Incorrect syntax near 'DATE_CORRELATION_OPTIMIZATION'.
Msg 102, Level 15, State 1, Line 50
Incorrect syntax near 'TRUSTWORTHY'.
Msg 102, Level 15, State 1, Line 52
Incorrect syntax near 'ALLOW_SNAPSHOT_ISOLATION'.
Msg 102, Level 15, State 1, Line 54
Incorrect syntax near 'PARAMETERIZATION'.
Msg 102, Level 15, State 1, Line 56
Incorrect syntax near 'READ_COMMITTED_SNAPSHOT'.
Msg 102, Level 15, State 1, Line 58
Incorrect syntax near 'HONOR_BROKER_PRIORITY'.
Msg 102, Level 15, State 1, Line 60
Incorrect syntax near 'RECOVERY'.
Msg 102, Level 15, State 1, Line 62
Incorrect syntax near 'MULTI_USER'.
Msg 102, Level 15, State 1, Line 64
Incorrect syntax near 'PAGE_VERIFY'.
Msg 102, Level 15, State 1, Line 66
Incorrect syntax near 'DB_CHAINING'.
Msg 102, Level 15, State 1, Line 68
Incorrect syntax near 'FILESTREAM'.
Msg 102, Level 15, State 1, Line 70
Incorrect syntax near 'TARGET_RECOVERY_TIME'.
Msg 102, Level 15, State 1, Line 72
Incorrect syntax near 'DELAYED_DURABILITY'.
Msg 102, Level 15, State 1, Line 102
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 138
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 167
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 187
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 198
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 215
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 241
Incorrect syntax near 'TEXTIMAGE_'.
Msg 102, Level 15, State 1, Line 260
Incorrect syntax near 'TEXTIMAGE_'.

 my scripts is 

CREATE DATABASE [doctorX27]
 CONTAINMENT = NONE
 ON  PRIMARY 
( NAME = N'doctorX27', FILENAME = N'D:\DOCTORJOB\new doctor24x7\new doctor24x7\Database\doctorX27.mdf' , SIZE = 3072KB , MAXSIZE = UNLIMITED, FILEGROWTH = 1024KB )
 LOG ON 
( NAME = N'doctorX27_log', FILENAME = N'D:\DOCTORJOB\new doctor24x7\new doctor24x7\Database\doctorX27_log.ldf' , SIZE = 3456KB , MAXSIZE = 2048GB , FILEGROWTH = 10%)
GO
ALTER DATABASE [doctorX27] SET COMPATIBILITY_LEVEL = 120
GO
IF (1 = FULLTEXTSERVICEPROPERTY('IsFullTextInstalled'))
begin
EXEC [doctorX27].[dbo].[sp_fulltext_database] @action = 'enable'
end
GO
ALTER DATABASE [doctorX27] SET ANSI_NULL_DEFAULT OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_NULLS OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_PADDING OFF 
GO
ALTER DATABASE [doctorX27] SET ANSI_WARNINGS OFF 
GO
ALTER DATABASE [doctorX27] SET ARITHABORT OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_CLOSE OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_SHRINK OFF 
GO
ALTER DATABASE [doctorX27] SET AUTO_UPDATE_STATISTICS ON 
GO
ALTER DATABASE [doctorX27] SET CURSOR_CLOSE_ON_COMMIT OFF 
GO
ALTER DATABASE [doctorX27] SET CURSOR_DEFAULT  GLOBAL 
GO
ALTER DATABASE [doctorX27] SET CONCAT_NULL_YIELDS_NULL OFF 
GO
ALTER DATABASE [doctorX27] SET NUMERIC_ROUNDABORT OFF 
GO
ALTER DATABASE [doctorX27] SET QUOTED_IDENTIFIER OFF 
GO
ALTER DATABASE [doctorX27] SET RECURSIVE_TRIGGERS OFF 
GO
ALTER DATABASE [doctorX27] SET  DISABLE_BROKER 
GO
ALTER DATABASE [doctorX27] SET AUTO_UPDATE_STATISTICS_ASYNC OFF 
GO
ALTER DATABASE [doctorX27] SET DATE_CORRELATION_OPTIMIZATION OFF 
GO
ALTER DATABASE [doctorX27] SET TRUSTWORTHY OFF 
GO
ALTER DATABASE [doctorX27] SET ALLOW_SNAPSHOT_ISOLATION OFF 
GO
ALTER DATABASE [doctorX27] SET PARAMETERIZATION SIMPLE 
GO
ALTER DATABASE [doctorX27] SET READ_COMMITTED_SNAPSHOT OFF 
GO
ALTER DATABASE [doctorX27] SET HONOR_BROKER_PRIORITY OFF 
GO
ALTER DATABASE [doctorX27] SET RECOVERY SIMPLE 
GO
ALTER DATABASE [doctorX27] SET  MULTI_USER 
GO
ALTER DATABASE [doctorX27] SET PAGE_VERIFY CHECKSUM  
GO
ALTER DATABASE [doctorX27] SET DB_CHAINING OFF 
GO
ALTER DATABASE [doctorX27] SET FILESTREAM( NON_TRANSACTED_ACCESS = OFF ) 
GO
ALTER DATABASE [doctorX27] SET TARGET_RECOVERY_TIME = 0 SECONDS 
GO
ALTER DATABASE [doctorX27] SET DELAYED_DURABILITY = DISABLED 

PRIMARY KEY CLUSTERED 
(
[AID] ASC
) WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) 
)  TEXTIMAGE_

How can I check SQL Server logs for evidence of the database crashing?

$
0
0

I setup an instance of SQL Server 2014, installed on a Windows 7 VM, and I’ve been testing, with a 3rd party application, on this database for a few months. It seems like every 3-4 weeks SQL Server goes down and the 3<sup>rd</sup> party tool doesn’t work. I can check logs in the 3rd party tool, and it just says:

Error connecting to SQL database London using URL:

Then the IP address is listed.  That’s all I can see. From the 3<sup>rd</sup> party app, I can’t tell what’s going on.

 

Now, my question is how can I check logs on SQL Server to try to determine what’s happening here? I guess something on the VM is killing SQL Server, or for some reason or another, SQL Server is going down. Something bizarre is going on here, but I can’t figure out what.

 

Any ideas, anyone?


Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.




Can we Install SQL Server Express with Advanced Services x 64 bit for our testing purpose without procuring any license? Also can we use it for commercial use if we are neglect risk sof using it on Production?

$
0
0
Can we Install SQL Server Express with Advanced Services x 64 bit for our testing purpose without procuring any license? Also can we use it for commercial/Production use if we are agree to take risk of using it on Production?

DB Restore does not work on MSSMS 2014 under WIndows8.1

$
0
0

When attempting to restore a DB which was backed up on a different machine (same names but SQL EXPRESS 2012) under MS 2014 running on WIndows 8.1 into a SQL Express DB, the following happens:

1. Open Restore task

2. Select Device to get 'Select backup devices"

3. Invoke "Add" and expect to see a browser. Instead, a backup file location is indicated and no browsing is permitted in the "Locate Backup File" Even when the path and file names are just typed in, the Restore will not work.

Any help is appreciated.

SQL Server Windows NT - 64 Bit RAM Consumption

$
0
0

Hi,

I'm using SQL Server Express 2012. I have database with 200 Mb actually.

So, I want to know If is it normalif the process (app) 'SQL Server Windows NT - 64 Bit' use 400 MB from Ram (at all) and CPU up to 46% some times ?

If my Server receive DDOS Attak on the TCP port of database ? How can I detect ? How can I solve it.

Thanks


SQL Server Setup failure (Error code 0x858C001B)

$
0
0

Hola..

Vengo con un problema que me esta causando desesperacion, ya he buscado en los hilos y no puedo solucionar este problema.

Resulta que descargue la version de SQL Server Express 2012 64 bits y al quere instalarlo me muestra el error:

SQL Server Setup has encountered the following error:

The SQL Server license agreement cannot be located for the selected edition, EXPRESS. This could be a result of corrupted media or the edition being unsupported by the media.

Error code 0x858C001B

Ya he buscado y no encuentro respuesta. 

SQL Server Setup failure (Error code 0x858C001B)

SQL Server 2012 Management Studio: How to install AdventureWorks2012_Data.mdf file to the Databases of my SQLEXPRESS?

$
0
0

Hi All,

I just downloaded AdventureWorks2012_Data.mdf file from http://msftdbprodsamples.codeplex.com/releases/view/55330 to my C:/ Downloads folder.  I don't know how to install this AdventureWorks2012_Data.mdf file to the Databases (in Object Explorer) of the \SQLEXPRESS of my SQL Server 2012 Management Studio.  Please kindly help, advise and respond.

Thanks in advance,

Scott Chang

SQL Server Express 2014 Compatible with Visual Studio 2008

$
0
0

I'm currently using Visual Studio 2008 and accessing databases on a server running Windows Server 2008 and SQL Server Express 2008 R2.

I have a Windows Server 20012 (not R2) with SQL Server Express 2014 on it.  Should I be able to access a database created on this server with SQL Server Express 2014 from within my Visual Studio 2008? 

The SQL Server (SQLEXPRESS) service failed to start due to the following error: The service did not respond to the start or control request in a timely fashion.

$
0
0

Hi ,

As per title i got error from last 3 days.

I am not able to start sql express service .

Could anyone help me ?

I  have tried  all  tricks which is available on net .

Thanks in advance

Regards,

Laxmikant Kalkote

Capgemini India


Cant debug asp.net project

$
0
0

Server Error in '/' Application.

A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

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.Exception: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)Source Error:

Line 41:             catch (Exception e)

Line 42:             {

Line 43:                 throw new Exception(e.Message.ToString());

Line 44:             }

Line 45:             finally

Source File:D:\helpdesk\HelpDesk\HelpDesk\Severity.cs Line: 43 Stack Trace:

[Exception: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]

   HelpDesk.Severity.GetSeverities() in D:\helpdesk\HelpDesk\HelpDesk\Severity.cs:43

   HelpDesk._Default.LoadCombos() in D:\helpdesk\HelpDesk\HelpDesk\Default.aspx.cs:27

   HelpDesk._Default.Page_Load(Object sender, EventArgs e) in D:\helpdesk\HelpDesk\HelpDesk\Default.aspx.cs:21

   System.Web.Util.CalliHelper.EventArgFunctionCaller(IntPtr fp, Object o, Object t, EventArgs e) +14

   System.Web.Util.CalliEventHandlerDelegateProxy.Callback(Object sender, EventArgs e) +35

   System.Web.UI.Control.OnLoad(EventArgs e) +99

   System.Web.UI.Control.LoadRecursive() +50

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +627

Client access from W7 to Server 2008 with SQL Express 2008 R2 not possible anymore (since installing yesterdays patches)

$
0
0

Hi everyone!

We are suddenly having Problems to access our SQL Express Server from our Clients (SBS 2008 with W7 clients).
Till yesterday evening everything was working fine. At night we installed the latest MS patches für our Server 2008 (SBS2008).

Since then we are not able to connect to the SQL Express Server over the Network. Locally (on the Server) it runs fine.

Switching the Windows Firewall off on the Server also lets the clients connect ...

The Windows Firewall still has all the ports open needed for SQL Server, we havn't changed anything.
All the incoming rules that worked for years are still there (untouched).

We just deinstalled all the latest patches, but problem still is here ... not sure if this was just a coincidence ...

Any ideas what could be the Problem?

Thanks in advance for your help

Best regards

Thomas



Connection String for SQLEXPRESS 2014

$
0
0

The following connection string gives me an error message "Cannot open the database requested by the login".

Provider=SQLOLEDB;Data Source=HJS1XY1\SQLEXPRESS;Initial Catalog=C:\MyFolder\MyDatabase.mdf;Integrated Security=SSPI;
The engine is SQL Express 2014.  What could be wrong?


Rob E.


Can a full file path be used to open a sql database connection?

$
0
0

I have a requirement to open an unattached sql server database file with a given path. Can this be done?

This would be similar to opening a Jet database using the path as the Data Source.  For example, the path might be "C:\MyFolder\MyDatabase.mdf".  I need to put the path in the connection string and open the database.  It would look something like the following.

Provider=SQLOLEDB;Data Source=C:\MyFlolder\MyDatabase.mdf;Itegrated Security=SSPI;


Rob E.



Which SQL Server version to use with Visual Studio 2010 Premium

$
0
0

I have a Windows 8.1 development system with Visual Studio 2010 Premium installed.

I'm aware that this version of VS installed SQL Server 2008 and I want to upgrade the SQL install.

Previously, it had been suggested that I install SQL Server 2012 Express and I was thinking of installing SQLEXPR_x86, as this would support both 32-bit and 64-bit O/S.

However, I would like to know if the Microsoft SQL Server 2014 Express would work with my copy of Visual Studio 2010 Premium.

If so, I could download the Express with Advanced Services (SQLEXPRADV) and utilize the LocalDB (SqlLocalDB); because I need to bundle a SQL database with my distributed C# applications.

Please tell me if the 2014 SQL Server Express would integrate with my 2010 Visual Studio, or if I should still download the 2012 version of SQL Server Express.  Thank you.

Viewing all 3319 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>