Questions tagged as 'sql-server-2012'

2
answers

SQL Cascading search

Good morning! I have a question, I need to perform a cascade search with a string in the following 5 scenarios:    Scenario1: string = 'value1 value2 value3 value4 value5'   Scenario2: string = 'value1 value2 value3 value4' Scenario3:   ...
asked by 10.08.2017 / 17:38
1
answer

Error starting SQL Server Management Studio 2012

I have a problem with SQL SERVER 2012, the inconvenience is that when I open it, it sends me an error that tells me that it stopped working as if some process was working, the strange thing is that it was working and from nothing it started to t...
asked by 18.07.2017 / 00:43
0
answers

How to execute a procedure in a View? SQL Server 2012

In my Procedure a dynamic query is executed (use PIVOT ) where the last columns are dynamic, so when I want to create the view I have tried to use Openquery and OPENROWSET but always shows the same message.    You...
asked by 12.07.2017 / 01:14
1
answer

How to indicate with value 0 that there are no records in SQL?

I have the following query in SQL where I am getting the Incidents of the employees in a report, this by the Date From and Date Until, in that period I must show the total number of Incidents (Fouls, permits, holidays) what it has, with what I h...
asked by 03.07.2017 / 17:24
1
answer

connect to a DB sql server selected at run time [closed]

I have a web app, which needs to connect to a bd sql server. This is achieved through the typical definition determined in conecctionstring in app.config. I need to be able to have a list of connectionstrmgs (definitions) in order to be able to...
asked by 10.12.2017 / 15:40
2
answers

using DISTINCT how can I check several records in a table? [closed]

I have the following query SELECT IdOcupacion, Codigo, Descripcion FROM Ocupaciones On which in the field of Descripcion I see several double registers and I would like to know how to consult only one of the registers but bring me th...
asked by 30.11.2017 / 15:50