Questions tagged as 'sql-server'

1
answer

SQL Azure database refusing connection

I'm having trouble connecting the SQL Azure database through a web application published at this address: link This is the connection string: <add name="Entities" connectionString="metadata=res://*/Context.ControleHorasContext.csdl|...
asked by 14.01.2017 / 12:30
1
answer

How to return output varchar of a procedure in C #?

Error appearing:    An exception of type 'System.Data.SqlClient.SqlException' occurred in System.Data.dll but was not handled in user code       Additional information: Error converting data type varchar to int. public stati...
asked by 20.01.2017 / 21:06
1
answer

Install Full-text on SQL Server

I want to use the full-text index in my SQL Server 2014. I've created a catalog with the command: CREATE FULLTEXT CATALOG [noticiasFullText] WITH ACCENT_SENSITIVITY = OFF And when I was creating the full-text index in my table with the c...
asked by 09.03.2017 / 15:12
1
answer

SET ENABLE_BROKER taking too long to execute

I ran the command ALTER DATABASE [Banco] SET ENABLE_BROKER; but it has been running for more than 20 minutes and counting. Would you have a faster way to do it?     
asked by 10.03.2017 / 13:19
1
answer

Change request timeout SQL Server 2008 [closed]

I am sending a request within a procedure by SQL Server using WinHTTP.WinHTTPRequest.5.1, the problem is that the request is taking too long and this is giving a timeout error. I would like to increase the SQL Server timeout time. I'm doing t...
asked by 25.01.2017 / 11:56
1
answer

PDO PHP Microsoft SQL SERVER [duplicate]

<?php abstract class database { /* Método construtor do banco de dados */ private function __construct() { } /* Evita que a classe seja clonada */ private function __clone() { } /* Método que destroi...
asked by 03.02.2017 / 22:50
1
answer

Query with like returns nothing when it has more than one word in PHP

I'm trying to make a query using like in PHP and when I use one more than one word. Only works if I only put one word. In SQL Server the query works without errors . <?php function listaMatHistOS($conn, $equipamento){ $HistM...
asked by 29.11.2016 / 17:02
1
answer

Fill class with bank result

Good afternoon everyone. I have a giant need to get things done. I have an object DataTable with the result with column "ID_CLIENTE" . I have an object Cliente with the property ID_CLIENTE . Is there any way to...
asked by 22.12.2016 / 22:01
1
answer

How to compare a date of type datetime?

I have a date in a patient table in the Sql Server database in the following format: datetime (01/01/2016 12:50:00.000) I want to check if the patient's appointment time has arrived. For example: The time of the appointment is at 13:00...
asked by 30.10.2016 / 16:42
2
answers

Conversion of SQL Server types

I have the following SELECT in SQL Server: SELECT th.CidadeCod, th.ContratoCod, CONVERT(DECIMAL(5,2), ( SUM(th.PlacasLidas)/SUM(th.Trafego) ) * 100) AS [IndiceOCR] FROM controle.TrafegoFaixaHora th INNER JOIN ssis.Co...
asked by 21.10.2016 / 13:34