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

Free SQL Database

$
0
0

I want to install SQL Server database which one is free provided by Microsoft for some small work. I want that particular link. I think it is express edition. But I have a confusion which one I have to select.

Can anybody provide me the direct link to download. I do not want to go step by step.

Thanks in advance.


SSRS Reporting

$
0
0

Below is the query i am trying in ssrs report 

Declare @TabTemp as Table
(
Armazem NVarchar(50),
DataReparacao datetime2(7),
GuiaReparacao Nvarchar(80),
EstadoReparacao Nvarchar(150),
DataCriacao datetime2(7),
EstadoContatoClente Nvarchar(100),
NomeCliente Nvarchar(450),
CustoEstimado Numeric(10,2),
UltimoContato datetime2(7),
ResultadoContato Nvarchar(100),
Telefone NVarchar(60),
Modelo NVarchar(200),
Entrega nVarchar(25)
)



Insert into @TabTemp

Select Distinct
HEADER_BRANCH_OFFICE as [Armazem], 
HEADER_REPAIR_DATE as [DataReparacao],
HEADER_ORDERNO as [GuiaReparacao],
(
Case HEADER_RESULT_STATUS 
When 'Diagnosis' Then 'Diagnostico'
When 'Irreparable' Then 'Sem reparacao'
When 'Not repaired' Then 'Nao Reparado'
When 'Repaired' Then 'Reparado'
When 'Solved' Then 'Resolvido'
Else 'Diagnostico'
End
) as [Estado da reparacao],
HEADER_ORDER_DATE as [DataCriacao],
(
Case  HEADER_CONTACT_STATUS
When 1 Then 'Não informado'
When 2 Then 'Em testes'
When 3 Then 'Informado'
Else 'Não informado'
End
) as [EstadoContatoClente],
(Cliente.FNAME +  ' ' + LNAME) as [NomeCliente],
Reparacoes.HEADER_COSTS_EST,
HEADER_CONTACT_DATE as [UltimoContato],
(
Case HEADER_CONTACT_RESULT 
When Null Then ''
When 1 Then 'Autorizado'
When 2 Then 'Rejeitado'
End
)as [Resultado do Contacto],
isnull(case when Cliente.MOBILEPHONE is null then Cliente.PHONE else Cliente.MOBILEPHONE end,0) as [Telefone],
(
Case HEADER_APPL_NO
When '33218' Then 'Kobold VK131'
When '60423' Then 'EB350'
When '60689' Then 'Bimby TM 31'
When '60692' Then 'Bimby+Livro TM31+ man. inst.'
When '61007' Then 'Bimby - livro TM31 - man. inst.'
When '61011' Then 'Corpo Bimby TM 31'
When '61074' Then 'Bimby - livro base TM31 - man. inst.'
When '61103' Then 'Bimby - livro b.TM31 - man. inst.'
When '61139' Then 'TM 31-2 + GA + KB pt 23283 demo'
When '61266' Then 'TM 5'
When 'PT012' Then 'Bimby TM 31 + Varoma TM31 (TN)'
When 'PT013' Then 'Bimby TM 31 + Varoma TM31'
When 'PT913' Then 'Bimby TM31 + Varoma TM31 Serviço'
When 'PT914' Then 'Bimby TM21 + Varoma TM21'
else  HEADER_APPL_NO
End
) as [Modelo]
,reparacoes.HEADER_DELIV_ID as [Entrega]
From pbr.v_RPO_REPAIR_ORDERS_COMPLETE as Reparacoes
Inner Join ike.ORH_ORDER_HEADER_SASO as Venda
On Venda.ORDERNO = Reparacoes.HEADER_ORDERNO
Left Join [ike].[v_ORD_PERSONS] as Cliente
On cliente.ID = Venda.SHIPTOID
Where HEADER_STATUSPROCESSINGCODE = 'SAVED'


Select 
Armazem,
DataReparacao,
GuiaReparacao,
EstadoReparacao,
DataCriacao,
EstadoContatoClente,
UltimoContato,
ResultadoContato,
NomeCliente,
CustoEstimado,
Telefone,
Modelo,
Entrega,
o.no,
cus.FULLNAME,
  isnull([STREET],'')+' '+isnull([HOUSENO],'')+' '+isnull([FLOOR],'')+' '+isnull([APARTNO],'')  as Morada,
      isnull([STREET2],'') AS Morada2,
 left(d.deliverydate,10) AS DataRececao,
 [POSTALCODE],
      [CITY] as Localidade,
 isnull(cus.companyname,'') as CompanyName,
  o.STATUSPROCESSINGID,
 o.AMOUNTPAID,
  isnull(per.EMAIL,isnull(cus.email,'')) as email, 
 (case WHEN LEFT(ISNULL(MOBILENO ,ISNULL(PHONENO_PRIV,isnull(per.MOBILEPHONE,isnull(per.PHONE,'')))),1) = '9' 
         THEN ISNULL(MOBILENO,ISNULL(PHONENO_PRIV,isnull(per.MOBILEPHONE,isnull(per.PHONE,'')))) 
         ELSE '' 
    end)AS Telemovel,

(case WHEN LEFT(ISNULL(MOBILENO ,ISNULL(PHONENO_PRIV ,isnull(per.MOBILEPHONE,isnull(per.PHONE,'')))),1) <> '9' 
        THEN ISNULL(MOBILENO,ISNULL(PHONENO_PRIV,isnull(per.MOBILEPHONE,isnull(per.PHONE,'')))) 
        ELSE '' 
   end)AS Telefone

From @TabTemp
inner join [pbd].t_SS_ORD_ORDERS O ON o.no = GuiaReparacao
left JOIN [pbd].t_SS_ORD_REPAIRS R ON O.ID=R.ORDERID
left JOIN [pbd].t_SS_ORD_DELIVERY d ON r.pickupid=d.id
left join [ikd].[CUS_CUSTOMER_MASTERDATA] cus on cus.CUST_SASOID = o.CUSTOMERID
LEFT JOIN [ikd].[ADR_ADDRESS] adr ON adr.ID = cus.ADDRESSID 
left join [pbd].[t_SS_ORD_PERSONS] per on per.id = o.SOLDTOID
--Where (Armazem = @prmDelegacao or @prmDelegacao = '*Todos')
--and (EstadoReparacao = @prmEstado or @prmEstado = '*Todos')
--and (((EstadoContatoClente = @prmEstadoContacto) or(@prmEstadoContacto='*Todos') ))
order by Armazem, EstadoReparacao

But its throwing an below error

an item with the same key has already been added







SQL Server 2016 Express - Installation issue.

$
0
0
Apologies if I'm posting to the wrong forum. I tried the 'SQL Server Setup & Upgrade' forum link on Mike Wachal's Welcome page, but the link doesn't work for me. I'm completely new to the forum and to SQL. I need to gain a practical understanding of SQL database development and personally find that I learn best through practical application, hence the attempt to install SQL on my Surface Pro. I have a Surface Pro 4, i5 processor, with 8GB RAM, 256 GB Memory. The Surface Pro is new, so has no apps other than MS365 installed. I was advised (by an MS accredited SQL tutor) recently to download SQL Server 2016 Express (Advanced). When I tried to download and install I selected the 'Custom' option (no idea if this is right or wrong - but was advised to do this). Everything appeared to download OK. When it began installation, I got an 'Oops' message stating there was an 'error decompressing sql server media'. I've no idea why and no idea if I'm trying to install the wrong option. Any advice anyone can give to a total newbie, would be very much appreciated.

SQL Server Express 2016 - Installation Fails many times

$
0
0

Hi All..

I had originally started a thread regarding SQL Server not able to open port 1433 and it morphed into trying to reinstall SQL Server Express 2016 after uninstalling it.  That thread despite me posting to it over the past several days is not getting any responses, probably due to the time I did not respond to it while out of the country for 3 weeks and was unable to get to the dicusssion.

Anyways, I really need help with this so could someone please check the thread at https://social.msdn.microsoft.com/Forums/sqlserver/en-US/50f7ed6d-592e-425b-9c51-887bae8bd694/sql-express-2016windows10-install-port-1433-not-openlistening-how-to-fix-this?forum=sqlexpress 

for the complete story and documentation on what is going wrong.

As mentioned sorry to do it this way but I am really in need of help.

Thanks very much in advance.

Garry


Burger2go

Allocating Max memory used in SQL server express

$
0
0

Hello everyone,

just a quick question please,

I am going to change the settings of SQL server express to allocate the maximum server memry used for SqlExpress.exe service

so If I change that does that will remove/clean some data or logs from the main DB's? 

or it's save to do that?

I am looking just to keep 1GB free for 1 application.

any reply or help would be highly appreciated 

B regards

SQL Server 2012 Management Studio Error

$
0
0

Hi all. I have installed SQL server 2012 express on windows 8. When i open management studio and i write ".\SQLEXPRESS" in server name i get this error:

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: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server) (Microsoft SQL Server, Error: 53)

i use windows authentication :/

Restore Databsaes

$
0
0

Hi,

Can I restore databases (I have backup files) taken from SQL Server 2016 Standard to SQl Server 2016 express edition?

Best Regards,

Hadi

Installation SQLServer 2016 Express

$
0
0

Hi,

I am trying to install SQL Server 2016 express on Windows Server Standard 2012R2. getting error on installation KB2919355.

I've tried to install this path separately but failed and not able to find the right version for Windows Server..all available for windows 8

Best Regards,

Hadi


SQL Server 2016 Express LocalDB Bootstrapper Package Download Fails

$
0
0
I was not able to find a SQL Server 2016 Express LocalDB prerequisite bootstrapper package for my setup program so I created my own. It worked great for awhile, but then the download would occasionally fail for some reason. Now it always fails. The download address I'm using in my package is https://download.microsoft.com/download/E/1/2/E12B3655-D817-49BA-B934-CEB9DAC0BAF3/SqlLocalDB.msi. If this URL is entered directly into the browser address, the download will fail just as it does with the bootstrapper package - even though it used to work fine. Does any have a new LocalDB 2016 download URL?

pmBrewer


SQL Server 2016 Express SP1 Fails to Install

$
0
0

I downloaded the SQLServer2016-SSEI-Expr.exe file and I've attempted several times to install.  It bombs out with a "Object Reference Not Set To An Instance of An Object" exception.

Here's a link to the log files in my DropBox:

https://www.dropbox.com/sh/go33p94q8u2kag6/AADM1dxvFBU9KHdj8vmsmHOla?dl=0T

Please let me know how to get past install.

Thanks,

-Anthony

deleted and restored a database to my server in sql express and now I get a server error when accessing database from visual studio

$
0
0

deleted and restored a database to my server in sql express and now I get the error below when I try to access my database from my visual studio project.  I could access the database just fine before I deleted the old and restored the new one.

Server Error in '/' Application.

Compilation Error

Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

Compiler Error Message: BC30157: Leading '.' or '!' can only appear inside a 'With' statement.

Source Error:
Line 674:    Protected Sub SqlDataSource3_Selecting(sender As Object, e As SqlDataSourceSelectingEventArgs) Handles SqlDataSource3.Selecting
Line 675:Line 676:        .+Line 677:
Line 678:

SQL Server 2016 DMV/DMO Poster maps

$
0
0

hi folks, got it 2012 and 2014.

Can you share any link for that?

Thanks in advance

Error Installing SQL Server 2014

$
0
0

When i try to install SQL Server 2014 in my desktop, it gives an error as,

The following error has occurred:

An error occurred during the installation of assembly 'Microsoft.VC80.CRT,version="8.0.50727.42",type="win32",processorArchitecture="x86",publicKeyToken="1fc8b3b9a1e18e3b"'. Please refer to Help and Support for more information. 

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=0xDF039760%25401201%25401

How can i fix this? Please Help.

User correctly created, but not visible

$
0
0

Good morning.

I often have a strange issue with Sql Server 2008 R2, running on Windows Server 2008 R2 Standard 64bits. The server is equipped with an Intel Xeon X5650 Dual core cpu, 12Gb of Ram, Ati Es1000 graphic card.

The database is related to our cartographic production (Italian Hydrographic Institute) with a software made by Jeppesen/C-Map named dKart.

After connecting to the server (as a local administrator) from my workstation I create the user starting from an existing one in this way:

right click, Script login as, Create to, New query editor window, I change the name of the user as needed and click Execute.

I do the same action several times, one for each instance under Database/Nome database/Security/Logins and for root Security/Logins.

After doing this I close Sql Server Management Studio and open it again in order to control if the user has been really created.

At this time I open the dKart tool to assign the user the right permissions, but it's quite sure that I can't see the new account, so every time I have to open Sql Server again and search if the user is still there.

Most of the times the account is gone in one or more database instances so I have to create it again and again in each instance, until it is correctly saved and dKart can see it.

How can I get rid of such a behaviour?

Thank you in advance.

Error on installing SQL server 2012 express and SSMS 16

$
0
0
I cannot install neither SQL server 2012 express nor Management Studio 16 on my computer.

It says: Microsoft Sql Server 2012 Native Client: There is a problem with this Windows Installer package. A DLL required for this installation to complete could not be run.

I have tried every solution I found, but non of them worked.

I have the log files but I cannot post the link yet (as I am new I cannot do that here), sfc scan only found the winhlp.exe file corrupted, nothing else, no DLLs.

Maybe useful from the error log: BootstrapperEngineDataModel.OnError: Burn engine encountered error. PackageId: sqlncli_x64, ErrorType: WindowsInstaller, ErrorCode: 1723, Data: 1723,SNAC_SetClientSSNLDefaults_64,SNAC_SetClientSSNLDefaults,C:\WINDOWS\Installer\MSIC280.tmp, ErrorMessage: There is a problem with this Windows Installer package. A DLL required for this installation to complete could not be run. Contact your support personnel or package vendor. , UIHint: 0
[133C:0610][2017-02-03T14:23:51]i000: MainViewModel.AddFailedCondition: Error: Microsoft SQL Server 2012 Native Client : There is a problem with this Windows Installer package. A DLL required for this installation to complete could not be run. Contact your support personnel or package vendor.
[133C:0610][2017-02-03T14:23:51]e000: MainViewModel.OnPackageError: setup failed for packageId: sqlncli_x64, package: Microsoft SQL Server 2012 Native Client , errorCode: 1723, errorMessage: There is a problem with this Windows Installer package. A DLL required for this installation to complete could not be run.

Already asked the question on TechNet, but they said I should ask here.

Please help!

Sql Server 2016 “The Parameter Is Incorrect” Foreign Key on Database Diagram

$
0
0

When i open the database diagram with a table containing a foreign key relationship with another table in the diagram, I receiver a "The Parameter Is Incorrect" error, and it gets stuck trying to load the diagram, while repeatedly generating the error over and over.

I know I've done this before, and I know it's supposed to work... If anyone can alleviate me of my problem, it would be greatly appreciated!

FYI:

Windows 7 Pro

SQL Server 2016

Server hosted on Microsoft Azure

Thanks!

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.

Sql server 2012 is showing task option but not the back up option in tasks.

$
0
0

I just downloaded this version of sql server .Previously i used sql serber 2017 but it did not show even tasks options. and this version is not showing back up option in tasks . what should i do to make it appear??

always encrypted= Enabled client certificate

$
0
0

Hi all,

A little bit confused about how to use always encrypted=True to the client PC

We have a desktop application that used SQL Express 2017. The sql express is hosted in another server somewhere else outside of local lan - in another country. 

I have follow all the necessary steps to configure always encrypted to one of my columns in the table.

Now when i try to retrieve data with the option always enrypted=Enabled  from the server (not remotely but locally from the server PC) i can successfully  see the results decrypted. If i set it to Disabled then are encrypted when retrieved 

PROBLEM

Now when i release a setup file (.exe) and install the application to the client PC and try run the sample then it fails, obviously because the certificate created by SQL is not installed on that client machine.

The only way to get this to work is to export the certificate from the server and import it to the client PC manual way.

I have some questions now.

  1. is this the only way? the manual way?
  2. Each customer using our software has his own database under same instance, same schema all databases.(each customer connects to his own database) That means i need to enter to the client pc one by one and import the certificate manually?  
  3. We are using Setup and Deployment (Visual Studio Installer)  (is there any way to install the certificate automatically?)
  4. Does the certificate expires? ( do i need to keep update every time that expire to update it?) either manually or automatically ?

stelios ----------


Setting up login during silent install

$
0
0
Hello, I work for a university and we are trying to script a silent install for SQL Server Express 2014, for use with IHS Kingdom software. We have the application installing silently successfully, using the ConfigurationFile.ini generated by the installer, edited to add the IAcceptSQLServerLicenseTerms="True", commented out the UIMODE="AutoAdvance", set QUIET="True", and we are installing using PowerShell. However, we need to also setup a login SMTKINGDOM that the IHS Kingdom software uses to access SQL Server.

My question is, is there a way to do this within the ConfigurationFile.ini, so that we can have it set up during install time, without having to manually go through the process of adding it with SQL Server Management Studio? Thanks in advance.
Viewing all 3319 articles
Browse latest View live


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