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

SQL SERVER


Problem connecting to SQL express 2017 using OLE DB (ADO) database: is empty in Crystal Reports vs 9

$
0
0

I can run a script in the MSSMS and no problem with permission but may have something that ...

I have tried every OLE DB provider "SQL" on the selection list prior to the connection dialog box. 

The OLE DB (ADO) connection information database drop down box is blank or empty.

The least I should get is the servers master, etc tables.  I have use 2005 express for some time (know how to connect to CR with what should work). I moved to Windows 10 and SQL express 2017. 

Any help would be greatly appreciated. 

SQL 2012 Server setup disappears/fails when installing Setup Support files

$
0
0

Dear All,

I am facing unusual issue in SQL server installation.i am trying to install SQL server 2012  on windows server 2012 R2.Set up wizard get disappeared when installing Setup Support files.

I have followed Below link but it does not help.

Click Here

Please help as it is very urgent 

Thanks

Can I create Sql Server Reports without Installing Sql Server on my local computer

$
0
0

I have access to servers with Sql Server installed on them, however we do not have spare licenses for the developers.

In addition, I have visual studio 2013 installed on my computer.  I have installed the Sql Server Data Tools as well.


VFP Programmer

sql server express fails to start with FileMgr and FCB errors in event viewer

$
0
0

This is a Server 2012 R2 box with Exchange 2016 running on it.  Just a few hours ago we had a big hiccup in mail flow and the only errors I see are below.  Mail is going fine now but these errors still come up when I try to start the sql server express service.  I do have an E drive on this box but was never used for SQL.  The installation media was on the D drive when we set everything up.  I assume I need to change these file paths to the C drive where I found a modellog.ldf and model.mdf file.  How can I change the file paths?  I have a test environment with the exact same setup that doesn't have this issue.  Can I view the file path being used via powershell in my test environment?

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.

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.).

SQL Express and Linux - Too much preemptive waits

$
0
0

We are having problems with a new SQL Express 2017 running on CentOS 7.

We have another 2 Windows machines running the same SQL Express without problems.

The windows machines are joined to the same workgroup (not AD) and the Linux PC is also joined to this workgroup with the help of Samba. The problem with the Linux PC is a high number of waits in the categoryPREEMPTIVE. To be more precise, in the PREEMPTIVE_OS_AUTHENTICATIONOPS wait type. Only this wait type is the 90% of wait time in our Linux server.

Reading some help in internet I found that this wait type problem is related with Active Directory authentication. But we are not using AD to authenticate. We have only a workgroup with logins to connect to our SQL Server.

Can this be a bug from SQL Server or I'm doing something wrong? It is possible to disable this wait type in a Linux machine? Any idea or suggestion is welcome.

P.S. - I have asked this in another forum and copied the text to post it here. Sorry for the laziness.

Msg 156, Level 15, State 1, Line 2 Incorrect syntax near the keyword 'User'

$
0
0
User CaesarWeb
SELECT 
                      t.LoginName  as 'Hood Name',             
                      c.FirstName, 
                      c.Surname,  
                      c.LoginName,              
                      g.Name       as 'CM Role',        
                      rt.Inactive  as 'Pending Flag', 
                      ug.Name as 'Baldo role'          
                               
                FROM CTSCaesarUser c 
                                
                INNER JOIN relCaesarUserTerritory rt on rt.CaesarUserID=c.CaesarUserID              
                INNER JOIN Territory t on t.TerritoryID = rt.TerritoryID    
                INNER JOIN relCaesarUserCaesarUserGroup rg on rg.CaesarUserID=c.CaesarUserID           
                INNER JOIN CaesarUserGroup g on g.CaesarUserGroupID=rg.CaesarUserGroupID 
                left join CaesarUserGroup ug on ug.CaesarUserGroupID = c.CaesarUserGroupID                  
                               
                WHERE 
                      t.LoginName!='XMLInterface' and      
                      c.LoginName='xxxxx' 

Issue with Inserting data.

$
0
0

I am using Visual Studio 2013. I developed an application and have deployed it. If a user creates a new record. I Insert a new record using visual studio code. The user enters a serial number that they want to create a new record for. If they enter 123456 my Insert query inserts it just fine. If they enter 3K1234 it errors out stating there is "Incorrect Syntax near 'K1234'. So I looked at the field in my Sql Express table. Its data type is nvarchar(50). I opened SSMS and created an insert statement and was able to insert the value 3K1234. I then went back to my application in Visual Studio. I debugged the application and captured my query if I am Inserting 123456 it builds the following query. Note: I am also initializing some other values.

"INSERT INTO tMtrSo_tblWidgets (ESN, [Record Date], [Test Issues], [Work In Process], [Commercial Discussion], [Do Not Add Data], [Do Not Add Low Time], [Exempt], [EngDI], [Contract TAT], [Delay Days]) Values (12345,'4/24/2019 10:58:36 AM', 0, 0, 0, 0, 0, 0, 0, 0, 0);"

The above works fine.

If I enter 

"INSERT INTO tMtrSo_tblWidgets (ESN, [Record Date], [Test Issues], [Work In Process], [Commercial Discussion], [Do Not Add Data], [Do Not Add Low Time], [Exempt], [EngDI], [Contract TAT], [Delay Days]) Values (3K1234,'4/24/2019 10:58:36 AM', 0, 0, 0, 0, 0, 0, 0, 0, 0);"

It gives me the error mentioned above. I am praying someone has an answer for my problem. Its driving me crazy. Thanks in advance for any help.


Shared features not upgraded after upgrading to SQL Server 2017 Express from SQL Server 2014 Express

$
0
0

I have upgraded two instances to SQL Server 2017 Express from SQL Server 2014 Express.

I am stucked in this situation:

Microsoft SQL Server 2017 Setup Discovery Report

ProductInstanceInstance IDFeatureLanguageEditionVersionClusteredConfigured
Microsoft SQL Server 2017INSTANCE2MSSQL14.INSTANCE2Database Engine Services1033Express Edition14.0.1000.169NoYes
Microsoft SQL Server 2017MSSQLSERVERMSSQL14.MSSQLSERVERDatabase Engine Services1033Express Edition14.0.1000.169NoYes
Microsoft SQL Server 2017MSSQLSERVERMSSQL14.MSSQLSERVERSQL Server Replication1033Express Edition14.0.1000.169NoYes
Microsoft SQL Server 2014SSMS1033Express Edition12.3.6024.0NoYes
Microsoft SQL Server 2014Adv_SSMS1033Express Edition12.3.6024.0NoYes
Microsoft SQL Server 2014Client Tools Connectivity1033Express Edition12.3.6024.0NoYes
Microsoft SQL Server 2014Client Tools Backwards Compatibility1033Express Edition12.3.6024.0NoYes
Microsoft SQL Server 2014Client Tools SDK1033Express Edition12.3.6024.0NoYes

Any suggestions on how to upgrade all three Client Tools ?

Best small database for a tablet

$
0
0

I've got a small app running on a Win10 tablet and right now I'm using SDF database and EF objects.  I saw where the SDF max size was 4G and wondered if this is storing sales data if I didn't need more capacity.  Saw in a 5yr old article that there was also SQL Express and LocalDB.  Is there a favorite small db that is a go to db to replace the SDF now.  I even have to use Database.NET app to be able to read the SDFs. 

TIA

Harry

sql express ADMT tool error

$
0
0

Guys,

Am getting the following error

TITLE: Microsoft SQL Server Management Studio
------------------------------

Create failed for Login 'AD\admtuser'.  (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.0.2531.0+((Katmai_PCU_Main).090329-1045+)&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Create+Login&LinkId=20476

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

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

User does not have permission to perform this action. (Microsoft SQL Server, Error: 15247)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.2531&EvtSrc=MSSQLServer&EvtID=15247&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

I installed ADMT v3.2, sql-express 2008 SP1  and the management suite 2008 at a 2019 Standard server.
I am trying to create a use to get rid of the following error:

Misc. Cannot open database ADMT – The login failed.

I also tried this solution:

To resolve this issue, make sure that you select the Map To Credential check box on the General tab of the Login Properties - sa dialog box before you change the "sa" login properties and then click OK to close the dialog box but when doing that, i get the error as stated in the beginning of this post.

Anyone who can help me with this?

thanks

Using Sql Server Express (Free Edition) and Visual Studio (Free Edition) for Commercial Purposes

$
0
0

Hello,

I currently use the free version of SQL Server Management Studio 2017 and the free version of Visual Studio 2017.  I would like to use them both in a web application that will am I developing that will be used for commercial purposes, presumably for a large number of customers if the company does well.  SQL Server would be used to store information from companies and run analysis for them.  Visual Studio would be used to create and manage the application.  I would be using c# to programmatically do things in Excel for clients.  Is it permitted to use these free versions for commercial purposes like this?

Thanks!

SQL Server 2014 Express Updates

$
0
0

Anyone got a good MS link to download SP or updates for Express please?

Many thanks

SQL server connectivity problem

$
0
0

Hi,

I am using SQL server 2017 express edition on windows 10.

I have to use following combination:

1. On one machine database files are present inside a folder with full access to all users using it

2. On another machine my own application (.exe) is residing

3. On third machine, SQL express is present.

I need to to attach the files from point 1 to the SQL express mentioned in point 3 using my application mentioned in point 2.

This combination works well on with SQL express 2008 R2, but with express 2017, I am not able to attach the database.

Full control, administrative privileges are in place even a user is added as an admin in the sql management studio server role

Is there any additional thing needs to be done?

SQL EXPRESS INSTILATION IN VMWARE VSPHERE

$
0
0

Hi Everyone,

I am planning to install SQL Express 2017 in my Vsphere. i need to to the limations and licence agrements regarding installation.As per current limations we can install in dedicated server but i want to check weather we can install in vmware Vsphere. Request you help in this query.

Thanks in Advance.

Regards,

Ranjith.


Log Shipping Error

$
0
0

Dear Team,

I have try to configured log shipping but getting error message, please help.

TITLE: Microsoft SQL Server Management Studio
------------------------------

SQL Server Management Studio restore database 'Trainee'

------------------------------
ADDITIONAL INFORMATION:

An exception occurred while executing a Transact-SQL statement or batch. (SqlManagerUI)

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

Cannot open backup device '\\abc-db-01\LOGSHIPDEVDB\Trainee.bak'. Operating system error 5(Access is denied.).
RESTORE FILELIST is terminating abnormally. (Microsoft SQL Server, Error: 3201)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=10.00.6000&EvtSrc=MSSQLServer&EvtID=3201&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

With Regards 


Object reference not set to an instance of an object

$
0
0

Hello, Expert,

Today when try open data base. system gave error message: Object reference not set to an instance of an object. (Microsoft.VisualStudio.Platform.windowManagement).

I try repairing SQL server. not fixed. SQL Express 2012 and manage studio is 2012 version

Error details as below:

++++

   at Microsoft.VisualStudio.Platform.WindowManagement.DocumentObjectSite.QueryService(Guid& guidService, Guid& riid, IntPtr& ppvObject)
   at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Guid guid, Type serviceType)
   at Microsoft.VisualStudio.Shell.ServiceProvider.GetService(Type serviceType)
   at Microsoft.VisualStudio.Shell.WindowPane.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.SqlStudio.Explorer.ObjectExplorerToolWindow.GetService(Type serviceType)
   at Microsoft.VisualStudio.Shell.WindowPane.System.IServiceProvider.GetService(Type serviceType)
   at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ObjectExplorerControl.System.IServiceProvider.GetService(Type serviceType)
   at System.ComponentModel.Design.ServiceContainer.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NodeContext.GetService(Type serviceType)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.<GetColumnsFromNavigationService>d__11.MoveNext()
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.AddFields(List`1 list, IEnumerable`1 fields, IDictionary`2 allValidFields, AddFieldsFlags flags)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.GetParentFields(INodeInformation source, Dictionary`2& allValidColumns)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItemWithQuery(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, String urnQuery, Boolean registerBuilder, Boolean registerBuiltItems)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.BuildDynamicItem(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItemBuilder.Build(IList`1 nodes, INodeInformation source, INavigableItem sourceItem, IFilterProvider filter)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.RequestChildren(IGetChildrenRequest request)
   at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)

++++++

can give  advice to solve this problem? 

brgds

Liu Wei

SSMS installation error: Failed 0x80070643

$
0
0
SSMS installation error: Failed 0x80070643

Best way to search query for a certain string

$
0
0

I was wondering what the fastest way to query for a string in SQL Server Express is...the current code I am using is....

Dim SearchText As String = txtSHA512Hash.Text


            Dim str As String = "Server=localHost\SQLEXPRESS;Database=VirusTester;Integrated Security=SSPI;"

            Dim con As New SqlConnection(str)


            Dim cmd As New SqlCommand("SELECT * FROM VirusTester WHERE Hashes = '" & SearchText.ToString() & "'", con)

I am using a TextBox to do the search, but is there a faster way to search through a database with millions of records to find a string?

Log In issues

$
0
0

I'm trying to connect to SQL SERVER MANGEMENT STUDIO for SQL EXPRESS DB through remote log in. I'm using what ever user id/ password on doc-- How ever I'm not able to connect and getting attached message

and from SERVICES I'm not able to start SQL SERVER services either getting below error message:

Please advice

Viewing all 3319 articles
Browse latest View live


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