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

error INSTALLSHAREDDIR

$
0
0

[Error Message] The specified directory, "C:\Program Files\Microsoft SQL Server\", for the INSTALLSHAREDDIR parameter is not valid because this directory is compressed or is in a compressed directory. Specify a directory that is not compressed. [Details] Microsoft.SqlServer.Configuration.SetupExtension.CompressedDirException: The specified directory, "C:\Program Files\Microsoft SQL Server\", for the INSTALLSHAREDDIR parameter is not valid because this directory is compressed or is in a compressed directory. Specify a directory that is not compressed.

how to solve it


Software fails to stay connected to SQL Database

$
0
0
My software connects to a SQL database and when the machine is turned off for a little while and then turned back on the connection to the database is lost then i have to reconnect the database to the software. If i restart the machine then the connection to the database is not lost, which i think has something to do with the memory being not completely dumped. The software was built using .net framework and i am curious if someone has an idea of why the software cannot keep the connect after being shutdown and if someone might have a solution for this issue.

SQL Server 2012 Native Client setup failed on Windows Server 2003 SP2

$
0
0

Hi,

My PHP script throws the following error when trying to connect from PHP to SQL Server.

My machine is having: Windows Server 2003 SP2

Error message:

===============================================================================

This extension requires the Microsoft SQL Server 2012 Native Client. Access the following URL to download the Microsoft SQL Server 2012 Native Client ODBC driver for x86

===============================================================================

I found the Microsoft SQL Server 2012 Native Client and downloaded it from the following location:

File: sqlncli.msi

Supported Operating System
Windows 7, Windows 8, Windows Server 2003 Service Pack 2, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Vista Service Pack 2

 

Issue:

Though I see "Windows Server 2003 Service Pack 2" Supporting Operating System, the installation of the sqlncli.msi fails with the error message "Installation of the product failed because it is not supported on this operating system".

 

Can you please point me to the correct version of SQL Server Native Client for Windows Server 2003 Service Pack 2.

 

Thanks,

Raghava

sql server 2008 service pack 1 on windows 10

$
0
0

Hi

 When I try to download sql server 2008 service pack1 on Windows 10.It is giving me the following error

TITLE: SQL Server Setup failure.
------------------------------
SQL Server Setup has encountered the following error:

A failure was detected for a previous installation, patch, or repair for instance 'SQLEXPRESS' during configuration for features [SQL_Replication_Core_Inst,SQL_Engine_Core_Inst,MPT_AGENT_CORE_CNI,]. In order to apply this patch package (KB968369), you must resolve any issues with the previous operation that failed. View the summary.txt log to determine why the previous operation failed.
A failure was detected for a previous installation, patch, or repair during configuration for features [CommonFiles,CommonFiles_Loc,]. In order to apply this patch package (KB968369), you must resolve any issues with the previous operation that failed. View the summary.txt log to determine why the previous operation failed.
Error code 0x84B20001.
------------------------------
BUTTONS:
OK
------------------------------

SQL Server 2014 Express with Advanced Services 64 Bit

$
0
0

i have installed SQL Server 2014 Express with Advanced Services 64 Bit on windows 10 home OS. i have following questions.

1. I want to use it with visual studio, which version is required.

2. Do i need any service pack for sql server to work properly.

3. what are the other software requirements ? is .net framework needed, coz installation didnt prompt any error. as it should as per some other blogs?

thanks 

Prachi


sql server 2012

$
0
0

If I download sql server 2012 do I need to download SSMS? If so could you please provide links?

But I am using windows 10. and SSMS not working properly.


Recovery from a failed installation

$
0
0

Hi,

I tried to install a new instance of SQL Express Server 2014 on our Windows 2012 R2 Server but it stopped, displaying a message about cpu64, sorry I cannot remember the full details, eventually I had to crash out of the installation.

The first error message I can see in the Event Viewer is:

FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).

Followed by:

FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.

The errorlog shows the following:

2016-01-08 14:07:17.08 spid10s     Error: 17204, Severity: 16, State: 1.
2016-01-08 14:07:17.08 spid10s     FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).
2016-01-08 14:07:17.08 spid10s     Error: 5120, Severity: 16, State: 101.
2016-01-08 14:07:17.08 spid10s     Unable to open the physical file "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBData.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2016-01-08 14:07:17.08 spid15s     Server is listening on [ 'any' <ipv4> 56850].
2016-01-08 14:07:17.08 spid15s     Server local connection provider is ready to accept connection on [\\.\pipe\SQLLocal\HOTH ].
2016-01-08 14:07:17.08 spid10s     Error: 17207, Severity: 16, State: 1.
2016-01-08 14:07:17.08 spid10s     FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2016-01-08 14:07:17.08 spid15s     Server named pipe provider is ready to accept connection on [\\.\pipe\MSSQL$HOTH\sql\query ].
2016-01-08 14:07:17.09 spid10s     File activation failure. The physical file name "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\MSDBLog.ldf" may be incorrect.
2016-01-08 14:07:17.09 spid15s     Dedicated administrator connection support was not started because it is disabled on this edition of SQL Server. If you want to use a dedicated administrator connection, restart SQL Server using the trace flag 7806. This is an informational message only. No user action is required.
2016-01-08 14:07:17.09 spid15s     SQL Server is now ready for client connections. This is an informational message; no user action is required.
2016-01-08 14:07:17.09 Server      SQL Server is attempting to register a Service Principal Name (SPN) for the SQL Server service. Kerberos authentication will not be possible until a SPN is registered for the SQL Server service. This is an informational message. No user action is required.
2016-01-08 14:07:17.10 spid12s     The resource database build version is 12.00.2000. This is an informational message only. No user action is required.
2016-01-08 14:07:17.11 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/PN-SERVER.pnsl.local:HOTH ] for the SQL Server service. Windows return code: 0x21c7, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2016-01-08 14:07:17.11 Server      The SQL Server Network Interface library could not register the Service Principal Name (SPN) [ MSSQLSvc/PN-SERVER.pnsl.local:56850 ] for the SQL Server service. Windows return code: 0x21c7, state: 15. Failure to register a SPN might cause integrated authentication to use NTLM instead of Kerberos. This is an informational message. Further action is only required if Kerberos authentication is required by authentication policies and if the SPN has not been manually registered.
2016-01-08 14:07:17.18 spid12s     Starting up database 'model'.
2016-01-08 14:07:17.18 spid12s     Error: 17204, Severity: 16, State: 1.
2016-01-08 14:07:17.18 spid12s     FCB::Open failed: Could not open file E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\model.mdf for file number 1.  OS error: 3(The system cannot find the path specified.).
2016-01-08 14:07:17.19 spid12s     Error: 5120, Severity: 16, State: 101.
2016-01-08 14:07:17.19 spid12s     Unable to open the physical file "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\model.mdf". Operating system error 3: "3(The system cannot find the path specified.)".
2016-01-08 14:07:17.19 spid12s     Error: 17207, Severity: 16, State: 1.
2016-01-08 14:07:17.19 spid12s     FileMgr::StartLogFiles: Operating system error 2(The system cannot find the file specified.) occurred while creating or opening file 'E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\modellog.ldf'. Diagnose and correct the operating system error, and retry the operation.
2016-01-08 14:07:17.19 spid12s     File activation failure. The physical file name "E:\sql12_main_t.obj.x86Release\sql\mkmastr\databases\mkmastr.proj\modellog.ldf" may be incorrect.
2016-01-08 14:07:17.19 spid12s     Error: 945, Severity: 14, State: 2.
2016-01-08 14:07:17.19 spid12s     Database 'model' cannot be opened due to inaccessible files or insufficient memory or disk space.  See the SQL Server errorlog for details.
2016-01-08 14:07:17.19 spid12s     SQL Trace was stopped due to server shutdown. Trace ID = '1'. This is an informational message only; no user action is required.

Since then I have tried repairs but they tell me that the database is not in a condition in which it can be repaired.

The path to my SQL installation is:

E:\Program Files\Microsoft SQL Server\MSSQL12.HOTH

I have tried this:

http://serverfault.com/questions/447808/sql-server-express-service-is-not-starting

But it doesn't return any information:

1> SELECT name, physical_name, state_desc FROM sys.master_files ORDER BY databas
e_id;
2> go
name
                                                .physical_name


                                                                     .state_desc

--------------------------------------------------------------------------------
------------------------------------------------.-------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
---------------------------------------------------------------------.----------
--------------------------------------------------

(0 rows affected)

I already have an instance of SQL working on the server so do not want to do a complete uninstall of SQL.

Can anyone help?

Thanks

alamb200


Database restore query

$
0
0

I have a backup file from a Development environment that I am trying to restore in a Sandbox environment.

The ,bak file is quite large, 28GB but it copied over to the D: of my Sandbox server without any issues. Both Dev and Sandbox are using SQL Server 2008 R2 SP3.

So when I use the wizard in SQL Studio to set up the restore. In Options, I chose to restore 4 of the database files to my D: drive and the remaining 2 database files to my E: drive.

Also chose 'Overwrite the existing database (WITH REPLACE)'

So I commenced the restore process but it doesn't seem to be progressing. It is still at the Executing (0%) stage and has been running for 30 minutes now. 

So I tried running this query:

select start_time, status, blocking_session_id, wait_type, wait_time, last_wait_type, wait_resource, percent_complete, estimated_completion_time,total_elapsed_time, reads, writes, cpu_timefrom sys.dm_exec_requestswhere command ='RESTORE DATABASE'

does this mean my restore is "stuck"? I can see the file locations have been populated with the file names. Maybe because the backup is so large it will take some time for it to complete?


Installation problem

$
0
0

Hello,

I downloaded Microsoft SQL server 2014 express to test it and the first time i install it it pass ok with no errors. I remove it (uninstall it on the regular way) and try to install it again on the same machine (windows 7 home premium SP1) and here the problem started. In the installation process it start showing errors witch i will explain.I try to fix the problem checked all the forums in the net with the same errors and none of this helped me. As i understand from all troubleshooting is that there is some component (or a part of it) didn't uninstall correctly. I hope you can help me with that.


Errors:

1. SQL Server browser service component failed with windows installer return code 2

2. sql server browser configuration for feature 'sql_browser_redist_sqlbrowser_cpu32' was cancelled

3. perflib 2.0 counter removal failed with exit code 2

Server Error

$
0
0

Hello Guys

I have a windows server 2012 Datacenter Edition and recently I have been getting a lot of errors on my box, please see errors below:

This is for the event log

Microsoft-Windows-Service Control Manager states: The SQL Server Agent (SQLEXPRESS) service terminated unexpectedly.  It has done this 6 time(s).

Report Server Windows Service (MSSQLSERVER) states: The application domain WindowsService_15 failed to initialize. Error: Microsoft.ReportingServices.Diagnostics.Utilities.ServerConfigurationErrorException: The report server has encountered a configuration error.
   at Microsoft.ReportingServices.Diagnostics.RSConfiguration.get_ConnectionString()
   at Microsoft.ReportingServices.Library.ConnectionConfig..ctor()
   at Microsoft.ReportingServices.Library.ConnectionManager..ctor()
   at Microsoft.ReportingServices.Library.ServiceController.ServiceStartThread(Object firstStart).

Microsoft-Windows-Perflib states: The Open Procedure for service "BITS" in DLL "C:\Windows\System32\bitsperf.dll" failed. Performance data for this service will not be available. The first four bytes (DWORD) of the Data section contains the error code.

This is for the service log

Start Service - Failed - One or more service cannot be started

Notification Area states: Service SQLAgent$SQLEXPRESS cannot be started.

Can any assistance be given to resolve this problem. thanks much

How to install SQL Server Express without internet.

$
0
0

Hi,

I downloaded SQL Server Express 2014 "SQLEXPRADV_x64_ENU" and tried to install on my computer and failed. Error was "Microsoft .NET Framework 3.5 service pack 1 is required". So I downloaded Service Pack 1 and tried to install but need internet.  Could you please help me how to install offline. Thanks a lot.

Regards,

Qin

SQL Sever - bulk insert

$
0
0
Hi, I have 1000s of rows to insert in SQL table, how can I quickly insert this in the table ?

MBH

SQL Server Express 2008 32bit version fails to install on a Windows 7 Professional 64bit

$
0
0

Hello there,

I am trying to install SQL Server Express 2008 32bit version fails to install on a Windows 7 Professional 64bit and I am getting the following error:

"SQL Server Setup failed to modify security permissions on registry key SYSTEM\CurrentControlSet\Services\Eventlog\Application\DatabaseMailfor (my windows user name).  To proceed, verify the account and domain running SQL Server Setup exist, that the account running SQL Server Setup has administrator privileges, and that the registry key exits on the destination drive". I am administrator on the account and I tried to modify that key in the registry as an Administrator but I was not allowed.

Does anybody know how to get fix this problem ?

Thank you for your response,

Mike Andrecan

How to download sample databases with SSMS?

$
0
0

I have down;loaded SSMS 2008R2 but I need the sample databases with it and i dont know how to add it.

When I open SSMS i have to connect to a server but i just want to use the adventure database to practice and get good at sql .

Please can someone help ASAP?

Many Thanks

Unable to attach database using Management Studio

$
0
0

 

Hi,  I have installed SQL Express 2008 on a Windows XP SP2 box. SQL Server 2005 is also on this box (installed as part of another program).

 

When I try to attach a database using Management Studio I get the following error:

 

===================================

Cannot show requested dialog.

===================================


Parameter name: nColIndex
Actual value was -1. (Microsoft.SqlServer.GridControl)

------------------------------
Program Location:

   at Microsoft.SqlServer.Management.UI.Grid.GridControl.SetColumnWidthInternal(Int32 nColIndex, GridColumnWidthType widthType, Int32 nWidth)
   at Microsoft.SqlServer.Management.UI.Grid.GridControl.SetColumnWidthInternalForPublic(Int32 nColIndex, GridColumnWidthType widthType, Int32 nWidth)
   at Microsoft.SqlServer.Management.UI.Grid.GridControl.SetColumnWidth(Int32 nColIndex, GridColumnWidthType widthType, Int32 nWidth)
   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SetGridColumnWidth(SqlManagerUIDlgGrid grid, Double[] columnWidthRatio, Int32 columnIndex)
   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.SetDatabasesGridColumnWidths()
   at Microsoft.SqlServer.Management.SqlManagerUI.AttachDatabase.OnScale()
   at Microsoft.SqlServer.Management.SqlMgmt.SqlManagementUserControl.ScaleToFont()
   at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.DynamicallyEmbedUserControl(ViewInfo vi, TreeNode node)
   at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.SetView(Int32 index, TreeNode node)
   at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.SelectCurrentNode()
   at Microsoft.SqlServer.Management.SqlMgmt.ViewSwitcherControlsManager.InitializeUI(ViewSwitcherTreeView treeView, ISqlControlCollection viewsHolder, Panel rightPane)
   at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm.InitializeForm(XmlDocument doc, IServiceProvider provider, ISqlControlCollection control)
   at Microsoft.SqlServer.Management.SqlMgmt.LaunchForm..ctor(XmlDocument doc, IServiceProvider provider)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ToolMenuItemHelper.OnCreateAndShowForm(IServiceProvider sp, XmlDocument doc)
   at Microsoft.SqlServer.Management.SqlMgmt.RunningFormsTable.RunningFormsTableImpl.ThreadStarter.StartThread()

 

Can anyone offer some advice, please?

 

Chris.


SQL Versions

$
0
0
I installed SQL Server 2014 Express.  I was wondering if I am able to safely uninstall previous versions of SQL if there are no working (live) databases being used by these versions? 

Location of Database where SharePoint Transaction Logs

$
0
0
I am fairly new to the connection between SharePoint and SQL.  Where in the database (default location) I need to connect SQL Server Management Studio (SSMS) in order to reduce the size of the transaction logs?

System Developer

$
0
0
I've downloaded and successfully installed SQL Server 2014 Express on Windows 10 Home Edition. However, i got the following message when I attempted to run my php application: Warning: mssql_connect() [function.mssql-connect]: Unable to connect to server: TABLET-QBP814EU\SQLEXPRESS in C:\wamp\www\index2.php on line 212 cannot connect. This php application smoothly runs using SQL Server 2008 R2 on Windows 7 Professional. Is my connection problem caused by wrong ntwdblib.dll in Windows 10? If so, what ntwdblib.dll version to use for sql server 2014 on windows 10 Home Edition and where can i find it? If not, kindly advise me how to solve my connection problem. Thank you. - Virgilio Conti (Philippines)

SQLEXPRADV_x64_ENU.exe error message 'Extraction Failed' in Windows 10

$
0
0

Hello 

I downloaded SQLEXPRADV_x64_ENU.exe and while double click the file it starts extracting files, creates a folder of extracted file but doesn't complete the process. It displays an error Extraction Failed. I am using 64 bit OS. 

I tried to extract files using cmd. Still same error is being displayed.

GUI for SQL SERVER

$
0
0

Hi all 

I am new to SQL SERVER.

My question is about the GUI for the end user .

Does the SQL SERVER offer a GUI or the GUI is done by another program like ACCESS or DELPHI for example ?

Thanks 

Elico

Viewing all 3319 articles
Browse latest View live


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