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

Arrays In SQL Server

Hi Guys,I have a question about arrays in SQL Server.  I know there is no array data type in Server.  I need a way to pass multiple keys into a SP.  The method I'm considering is to declare an input...

View Article


Select Statement Help

Hello All, I am needing help with creating a SQL query. I'm sure I am just over thinking it.  Below is a table I have with data. I am wanting to group the data below by ID and pull the date from the...

View Article


perf question

Hi All, I am little confused between baselining and benchmarking performance in SQL Server. Is both terms mean the same or they can be interchangably used? Little confused. Can someone please little...

View Article

script for compression automation on daily basis

I have partitioned my tables on a business date basis(365 partitions in a year). I want to do page compression on a daily basis of yesterday(D-1) data of all tables in a database. Any help on how to...

View Article

Help with query...

Hi,I've 2 entities, opportunities and properties, with certain fields and that can have features.I'd like to get:1. All properties for an opportunity2. All opportunities for a property (probably just...

View Article


Datetime manipulation

HiI need to extract date part from a datetime value and time part from another datetime and combine the two into a new datetime value. How do I do that in T-SQL please?ThanksRegards

View Article

Help with Matrix Sort on Pivot column agains row group subtotal

Can anyone PLS help me.I am having issues sorting on a specific column in a Matrix. The column is based on a pivot value (90 Days) and needs to sort my group subtotals descending.in the group...

View Article

Remove duplicate geographical distance

[code language="sql"]If Object_Id('tempdb..#TravelDistance') Is Not Null    Drop Table #TravelDistanceCreate table #TravelDistance(    StartPt&n

View Article


Help with Select or Nested Select

Can anyone help with a query based on several tables and different criteria based on a status. Background - Tables are joined to get contact info and balance of account. Within that we have a status of...

View Article


SQL query to find logins where LOGINPROPERTY(name, 'PasswordLastSetTime') is...

Hi I have a query which shows logins details including among other things last password set time as follows:Select @@servername as SQLInstance, name as Login, LOGINPROPERTY(name, 'PasswordLastSetTime')...

View Article

Object Explorer Script Generator

We just made the jump from SQL Server 2008 to 2014, and as a result I am now using SSMS 2014.  I tried SSMS 17 but did not care for the interface style.  I have noticed some really annoying differences...

View Article

pivot

dear experts,Kindly help solving my problem..I want to make the result rows become columnnameI have syntax like thisselect * from ctlfw_app.dbo.ptbc_schema infothe results:Databasename    Sc

View Article

SQL help for appointments

Hello Experts,Need an efficient query to pull data for below scenario. Greatly appreciate your help.------------------------------Scenario -After a customer completes an AppointmentType AP1, an...

View Article


Which is GOOD/BETTER out of two ways of writing a query ??

Problem statement : I have 2 tables "DEPT" which contains department details and "EMP" which contains employee details. I am joining based on deptno and getting department name and department location...

View Article

Blocking but not sure why

I have a lead blocker with a "sleeping' SPID and wait type of "NULL", so its appears it is not doing a commit.The spid is using table "EC_Commands". The waiting spi

View Article


Compare data sets and find matches.

I need to compare two sets of data. The first data set is a single column from the database. The second data set is not in the database so I assume it will need to be referenced in a cache file.  The...

View Article

SSIS not copying all rows in data flow task

I'm trying to create a basic SSIS package to copy almost all the columns of a table from production down to QA, for one of the developers to run some reports against.  While the package does what I...

View Article


Clustered Index Update Slow Update On Large Table

Hi I am having problem updating a large table with millions of rows please advice to reduce the update time.Table

View Article

How To Format Unusual Nested Select With Nested Where Statements

I inherited this code.  I'm trying to format it to SQL standard indention, but it is hard to determine where to indent with multiple WHERE.  Please help me format and indent this SQL code to SQL...

View Article

CMDEXEC No Printers Installed

I am running a command to print a crystal report.  Using a package proxy and have the printer installed for all users.  Can't figure out why I keep getting an error that no printers are installed....

View Article
Browsing all 3145 articles
Browse latest View live