Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Browsing all 3145 articles
Browse latest View live

SQL and EXcel

i am trying to convert xlsx to xls using DTS script task,but because the server hasn't got excel installed its throwing an error..Would it be ok to load MS compatibility pack on the server, or is there...

View Article


Continue on error

Hi I'm running a stored procedure that executes other stored procedure based on what's needed. My issue is that sometimes some of the stored procedures fail come back with an error and stop the whole...

View Article


Really odd problem executing a dynamic SQL statement that inserts data.

Ok I am merging one database to another. Each table has a dynamic statement.All but one table is working. The statement below (and you don't really need the statement I don't think) will throw an...

View Article

SQL comma separated values and a loop

Hi I have 2 tables. A jobs Table and a Drops Table. In the Jobs table we have a collection post code and delivery post code, in the drops table we have the post codes of any additional drops.I am...

View Article

Groups and Islands problem

Hi There,[img]http://www.sqlservercentral.com/Forums/Attachment19679.aspx[/img]I got output but it seems very costly, so looking for some optimal solution.[code="sql"]create table #ME (memid int ,...

View Article


Add a database to AG in a stored proc

Each month we have 2 new monthly db's added to an instance. We have some stored procs run that do some work on them and then name them based on the date using variables. We just moved to a 2014 2 node...

View Article

IS_ROLEMEMBER in 2008

We want to check if a AD group is a member of a SQL Server 2012, 2014 or 2008 database group. The IS_ROLEMEMBER works perfect but it seems to only be valid from 2012 forward. Although the confusing...

View Article

Output on conditional date logic

Hi All,I am working on a query where i had to find the output based on the conditional date logic. Below is the description of the problem.What i want is that order should be greater then or equal to...

View Article


Long running Insert stored proc

Hi all,I was wondering if someone could help me figure out why this Insert statement is taking 9 minutes to run. It never took that long before and now, all of the sudden, it is taking longer and...

View Article


Restoring DB from SQL server 2005 to SQL Server 2014

hello there,I have noticed that when i tried to restore a sql server 2005 database to sql server 2014 some of the char fields insert a lot of spaces at the end and at the front of the column. I use a...

View Article

Query runs MUCH slower when using sp_prepexec

Hi,The following query runs in <1s when running straight:[code="sql"]SELECT zpsinvoice1_.ClientId AS col_0_0_, zpsinvoice1_.InvoiceGroupId AS col_1_0_, zpsinvoice1_.Id AS col_2_0_,...

View Article

SSIS Execution Annonymous Login Error

I created a package in visual studio data tools , SQL connection works fine. and Package ran fine.Then I loaded that package on to the server in Integration services catalog., when I execute the...

View Article

Replace multiple row with sequence value

Hi Folks,I am new to SQL and i have table which has column FULLNAME (Last name, firstname) & USER EMAIL (firstname.lastname@corp.com) and i m looking to replace the value of Fullname like user0001...

View Article


Converting date and/or time from character string.

Hi all, I have a basic problem (I hope) whereas I'm trying to insert 4m rows from one table to another, but I'm struggling with dates.The table the data is coming from are all nvarchar fields, and the...

View Article

Split a number in close equal number in sql

Hello All,I am facing problem while spliting a number in closest equality. say i want to divide 11 into 4 groups then output shd be 3,3,3,2. same way 10 for for group would be 3,3,2,2. I tried it with...

View Article


GROUP BY in SQL Server 2014

Hello all,The same query with a group by clause I try to run on SQL Server 2005 and on SQl Server 2014 but it seems that every time i run the same thing on SQL server 2014 gives me a different output...

View Article

How to get value based on position of special character string in a column

I have a table like this [quote]Col1 Col2Adam 1Barbara, Catherina 1Barbara, Catherina 2Adam, Catherina 1Adam, Catherina 2Barbara, Adam, Daniela 1Barbara, Adam, Daniela 2Barbara, Adam, Daniela...

View Article


Report Builder - Creating an Invoice Report

Hi,I am creating an invoice report from scratch in report builder, all the report data is correct and working fine. The issue I am having is adding the correct customer address to the header, in the...

View Article

Long running insert

Hi!Having problem with an insert that take very long time to complete, there is a warning about Type Conversion in expression and I think it could be the problem?Here is the Execution...

View Article

Splitt values from one column in two rows

Dear NGI have following issue:2 Tables (Zusatzfeld, Vorschuss)dbo.ZusatzfeldBold_ID (PK)WertDatum (the one with the values)MetaZusatzfeld (the one with Searchvalue)UserEintrag (connection to...

View Article
Browsing all 3145 articles
Browse latest View live