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

The Most Common Query Blunders...

I've received a request from our VP of Enterprise Application Design (aka my boss) to do an hour-ish long presentation on SQL Server performance tuning. Rather than trying to distill a 500+ page book...

View Article


Scheduling with critical paths

I have a table in which there are rows with start and end dates. Each item has a dependent task where its start date is calculated from. Below is a attached a snip of some of the table rows. I need a...

View Article


How to identify the type of SQL to be prepared with SNAC ODBC

Hi all,I want to execute ad-hoc queries with SQL Server Native Client ODBC, using different ODBC calls and cursor options, according to the type of the SQL query.For example, when the SQL returns a...

View Article

Where Do Staging Tables Belong

I'm looking for guidelines and ideas on where staging tables should be placed. We have an application that needs about 10 staging tables for data to be stored from Excel and text files. From there...

View Article

Best solution for compounded update?

In example below I want to increase all salaries in *PayRoll* by the percentage found in *Increase*, starting from Increase Date in *Increase* and going forward.This logic works fine if you have a...

View Article


Record count in results

Hello AllAttached is a resultset I am getting. In this result set i have to return the count of the rows inbetween the name and the next time the Name comes up.Please if someone can point me in the...

View Article

Data-tier application version storage at sql server level

Is is possible to determine the version of Data-tier application that is deployed on sql server instance ?Where is the version number stored ?

View Article

SQL SERVER 2014 - View value changes depending on the date

In a Data Mart I have a table with information about Players (Dimension Player). And It have the following attributes: • Name (nvarchar(250))• Dt_Contract (date)• New_Player (int)• DT_Execution...

View Article


How to rewrite query to be set based

I was given this query to tune and believe there's a better way to do it using a set-based operation but for the life of me (:blush:) I'm embarrassed to say that I just can't figure it out. The query...

View Article


How to insert data from localdb to amazon redshift?

Hi, I have a populated table on my local machine, I have created the linked server and connection is working fine.I have also created the same table on redshift cluster and i want to insert all the...

View Article

Table Creation - Tool

Hi Guys,What tool should I use to create tables as part of a db design(from logical/conceptual model). I'm new to development/design.DB model has been created on Visio 2010. Please share your...

View Article

Run POwershell script in Store Proc

hi Friends,I was wondering if anyone of you have come across situation to run a powershell Script with parameter Store Proc. I'm able to run a powershell Script using below command but i need to run...

View Article

CLR concatenate function without duplicate values

Hi,I have a CLR that uses a concatenate function:https://www.mssqltips.com/sqlservertip/2022/concat-aggregates-sql-server-clr-function/(andy)The problem is I am getting duplicates - I know it's...

View Article


Login failed for user XXXXXXX. Reason: Could not find a login matching the...

I have a window security group with about 10 users, all of the other user in this group can access the database, however I have one where I get this message.Any ideas... I thought it might be a...

View Article

KickOff Asynchronous TSQL scripts

Hi All,I have a requirement to run 1 or more powershell scripts from via TSQL. Catch here is scripts should be run asynchronously in same Store proc.Here is the Description:[b]Store Proc Starts...

View Article


Extracting data based on the current date

Hi All,I have a requirement as below. One of my job runs every 9th calendar of every month. I have to extract the data as below.For example: I am running the job on 9th Jan 2015 - Based on the current...

View Article

Visual Studio stable version

Hi Could you please let me know the stable version of Visual Studio downloadable available for SQL Server 2014 ? thanks

View Article


Error in SSIS Script task for transfering table data between databases

Exception thrown by target of invocation. at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at...

View Article

slow Insert-Select

i've wuold like to use this query to collect activity into a table evevry 1-2 minutesthe problem is that if i run only select it tooks less than 1 second, but when i do insert into select, the same...

View Article

IF Statement with Insert

Hi AllSQL 2014...DDL:[code="sql"]CREATE TABLE [dbo].[Table1]( [Col1] [int] IDENTITY(1,1) NOT NULL, [Col2] [varchar](255) NULL, [Col3] [varchar](1024) NULL, [Col4] [varchar](1024) NULL, [Col5]...

View Article
Browsing all 3145 articles
Browse latest View live


Latest Images