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

VARBINARY(N) produces error 16911 with sp_cursor cid, 40, 1

Using SQL Native Client ODBC 11 with SQL Server 2014, trying to fetch VARBINARY(4) datawith SQLGetData() after binding with SQLBindCol (... SQL_DATA_AT_EXEC), the serverreturns error 16911 "fetch: The...

View Article


Trouble with SUM

Hi there,I have this query:SELECT filteredfs_franchise.fs_franchisenumber, dbo.Filteredfs_carvelgmr.fs_year AS Year, SUM(COALESCE(FS_Amount, '0.00')) AS MTDFROM filteredfs_carvelgmr INNER JOIN...

View Article


Optimizing a table created at runtime

Hi,I am optimizing the script below and have a question. As you will see they are creating the table (zcap_workspace) below.I added the primary key in an effort to speed things up. I am assuming that...

View Article

SSIS move file task is erroring out.

All,I've got a package that downloads Excel files from an FTP site then loads them to a table in SQL Server at at the end archives the files to another folder.I've written packages like this hundreds...

View Article

Web site Product Pics : fileserver OR FileStream

Hi we have about 1.000.000 pics related to our products in our web site. Now these Pics are maintained in a file server. we have some problems to control transactions that change product properties and...

View Article


Database Project - cross database references

I have done a get of the most recent version of a database project from TFS (I'll call it Project A). This project has cross database references in some stored procedures and views. I have no trouble...

View Article

How to make a list of "OR" for query of unique IDs

Hi,I am probably considered a beginner at SQL compared to most of you!Here is code that I have that works:set @PAT_Filter=N'AND PATIENT.PAT_ExternalId like (''%123456'')'I now have a long list of...

View Article

Adding SSDT BI Templates in Visual Studio

I have a new laptop with Visual Studio 2015 Enterprise and SQL Server 2016 CTP 3.1 installed on it. I want to develop SSIS & SSRS projects using this setup, but I am having a hard time getting the...

View Article


How to append data in SSIS file task

I have a scenario where i need to append results of 2 queries in one output file which have different columnsfor example first query willl have header record and have 5 columnssecond query will have 30...

View Article


Bulk Insert not working

Hello!Please excuse the "newbie" question, but I have an issue I haven't been able to work out. Trying to do a bulk insert of a .csv into a SQL 2014 table, and the last 2 columns are blank. No matter...

View Article

Multi select with cte

I am trying to select data from this table[code="sql"]CREATE TABLE [dbo].[tb_value]( [NameID] [tinyint] NOT NULL, [Times] [datetime] NOT NULL, [Value] [real] NOT NULL, CONSTRAINT [PK_tb_value] PRIMARY...

View Article

time series from particular day in month 1 to particular day in month 2

Hi, I need a help with getting dates from day to day in month. Example:I have daily sales fact. Customer wants to compute monthly sales from 2nd in month to 1st in next month and set is as month from...

View Article

What is difference between these 2 SP

Hi I have this 2 SP . There is some difference between them. I need a better Analyse about them. For example : One of them cant be profile in (PRC:Complete) more over about their exec plan. and ... ....

View Article


Multiple parameter function !

I want to have Multiple parameter function like concat :MY_FUN( string1, string2, ... string_n ) whats syntax look like?

View Article

Why is trivial plan creating statistics

Hi all As far as I understand a trivial plan is a plan that there is no need or a way to optimize it. The most known example for a trivial plan is running a simple select statement that has no group by...

View Article


SMO Server Connection Manager - Visual Studio Integration Project Error -...

Hello, I'm trying to copy logins from our production server to a development server. I wanted to use the "Transfer Logins Task". Both the production and dev servers are running SQL 2014. I downloaded...

View Article

Please Suggest Partition boundaries

Hi,I have a large table of over 400Million rows with a daily addition of 10Million rows.Data will be added through packages and there will be no other manipulations on table.Could you suggest me the...

View Article


Calling oracle function from sql does not return result

Hi,I am new to sql server and old to Oracle.I have the following Oracle function:[code="other"]create or replace function ak_del_febs (p varchar2) return number isbegin return 20;end;[/code]Here is my...

View Article

Doubt in isolation level

Hi there,[code="sql"] IF OBJECT_ID('Emp') is not null begin DROP TABLE Emp end create table Emp(ID int,Name Varchar(50),Salary Int) insert into Emp(ID,Name,Salary) values( 1,'David',1000) insert into...

View Article

Best way to merge two large client databases

I have two client databases (same schema, different data) that I need to merge into a single database. These are large databases with millions of records, over 500 tables with lots of Foreign keys.My...

View Article
Browsing all 3145 articles
Browse latest View live