Questions tagged as 'sql-server'

1
answer

Variable Out, Error

Hi, I want to create a variable OUT that I will use later, but the following error appears when creating the block: DECLARE @COD_PERI INT, @COD_ESTA_LOG INT OUT BEGIN SET @COD_ESTA_LOG = 5 END    Mens. 102, Level 15, State 1,...
asked by 29.03.2017 / 16:34
1
answer

convert a process stored in sqlServer to Postgresql

Good evening I have here processes stored in sqlserver and I would like to implement them in postgres , I just need you to please explain what is the output element in postgres and the varable as there are many and it would not be c...
asked by 11.12.2016 / 03:13
2
answers

Connect Java with SQL Server 2017 in Eclipse Oxygen

I am using Eclipse Oxygen to develop a Java program and I want to use SQL Server 2017 to save the information. I read in other places how to do it, but, it does not work for me. Steps I've done so far: I downloaded the Microsoft JDBC Dri...
asked by 05.11.2017 / 03:31
1
answer

Incorrect syntax CASE TSQL in SQL server 2014

My problem is this: I have to make a script in TSQL that if the numbers are less than 50, you must make the root of the sum of its squares, if it is equal to 50, add its squares, and if it is greater than 50, divide the first one between...
asked by 11.01.2017 / 22:30
1
answer

WARNINGS appear when INSERTING in a table with PHP

Good morning, when inserting a form with PHP if you insert the records in the database but it sends me the following WARNINGS:    Warning: Variable parameter 1 not passed by reference (prefaced with   an &). Variable parameters passed to...
asked by 16.05.2016 / 17:57
2
answers

Multiply by the largest in sql

I have the following consultation SELECT f.SE_Factura, SE_Consecutivo_Embarque, f.SE_Orden_De_Compra, f.SE_Orden_De_Venta, f.SE_Fecha_OV, f.SE_Cliente_Despachar_A, (f.SE_Peso*e.SE_Cantidad_Embarcada)*400 as Peso,...
asked by 31.05.2017 / 14:49
2
answers

Import data from CSV to database from MVC5 using a form

I am doing a project and at this moment I need to import data from a CSV file "Excel" Delimited by commas (,) certain information, I need that by means of a form they can upload the excel and that this excel is automatically imported in the tabl...
asked by 25.05.2017 / 17:56
1
answer

Send stored procedure result of the controller to the view

I need to send the result of my stored procedure from the controller to the view. This is on my controller: using (SqlConnection con = new SqlConnection("data source=DESKTOP-99IPRRD;initial catalog=RecursosHumanos;integrated security=True;M...
asked by 30.10.2018 / 00:29
1
answer

How to use like in grouped columns

I'm trying to find the rows that start with Au but the sql server is reporting an error when using the Description with the like it says: Ambiguous column name 'Description'. Select A.NotesID, Coalesce( A.Description, B.Description ) as Descri...
asked by 29.10.2018 / 20:58
2
answers

Update SQL Server through Visual Studio ASP.NET web forms

I'm trying to do update in a DB, but I'm not making the changes to that command. When I do it in the direct query of SQL server it works, but when I do it from my application it does not do the update . This is the query in SQL Serv...
asked by 07.11.2018 / 05:30