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

Health

the trend turned into more of fellows seeking out lady escorts,[url=http://www.healthsupreviews.com/blackcore-edge-max-review/]Blackcore Edge Max[/url] but now there is a opposite trend too. more and...

View Article


How to avoid multiple if else in sql server

Hi,I want to simplify the below code . Is it possible to write the below code using case statements or any alternate method.DECLARE @A AS INT;DECLARE @B AS INT;DECLARE @Parameter1 AS INT;DECLARE...

View Article


Is COLLATE able to sort for line break characters?

Hi,I was working with some address data and came across a few Zip Code entries that were proceeded with a carriage return and line feed. I attempted to remedy this using collation, but I was unable to...

View Article

Totals question

Hi I have a dataset i used from a sql query i built. It has 3 columns.. See below for Sample in comma seperated values.Basically I need to add a column to the dataset called "TransactionTotal" and add...

View Article

Calculate Maximum three values from table in SQL

Hi all,I have a requirement where I have to calculate maximum three values from a table.Table1ID Column1 B122 B133 B144 B155 B166 F127 F138 F149 F1510 F16So I want take max(column) and max(column)-3...

View Article


I am really struck by the way that you express

i am really struck by the way that you express [url=http://guidemesupplements.com/garcinia-lean-xtreme/]Garcinia Lean Xtreme[/url] yourself, along with the message is quality. anyways, i would also...

View Article

Select with NOLOCK is trying to get a shared lock

I have a select-query using the WITH(NOLOCK) hint to ignore locks. The problem is that when the query is executed it get timed out because it's waiting for a shared page lock on the table in the...

View Article

Simple query question

Hi simple question:So:The combination of {Parcels}.[Dest_Port] and {Parcels}.[Dest_Vessel] can have more then one {BL}.[BLNumber]I want to catch distinct {Parcels}.[Dest_Port], {Parcels}.[Dest_Vessel])...

View Article


Searching with Fulltext Indexes

I have an application in which a user can typ in a word or words and SQL Server finds the right rows.I've used FREETEXT because I want it to be possible that the user can type multiple words to search...

View Article


Pivot for date

Instead of hard coding all the dates in pivot any samples/ideas for generating it dynamically for each month or the date rangeselect * from ( SELECT shift_type ,shift_date1, empid1 FROM #temp1 ) as...

View Article

Assigning max value + 1 to a column

HiI need something like this pseudo code; [code="sql"]UPDATE OrdersSET InvoiceNo = MAX(InvoiceNo)FROM Orders INNER JOIN SetupAccountTypes ON Orders.AccountTypeID = SetupAccountTypes.IDWHERE...

View Article

Using joins in single query question

Hello everyone, I'm new to this forum. I used to learn SQL at school but it's quite hazy now since I havent used it in a long time since I started working.Anyways, for work, I'm making a database of...

View Article

Video File Duration

I have some files stored in Folder and the paths of this files stored in sql server:File path : E:\videofiles\123.mp4how to get the video duration using tsql, because i need to update the table with...

View Article


Clustered index on materialized views

deleted

View Article

Make delete statement with 30 equalities more efficient

I am working on a statement that deletes records from one table where 30 fields match in value with at least one record in another table. My initial statement was:delete <tablename> afrom...

View Article


Compare 3 tables and calculate working days

http://forums.asp.net/p/2095821/6053759.aspx?p=True&t=635996316531744463

View Article

Temp DB filling on simple update statement?

Hi,I have a pretty simple update statement:[code="sql"]UPDATE eligibility SET primary_plan = 0 FROM temp_eligibility e WHERE eligibility.eligibility_id = e.eligibility_id[/code]This statement is...

View Article


"Duplicate" records - How to coalesce?

I'm not sure how/if I can solve this issue. Any help would be much appreciated!I ran into an old solution that was poorly designed and now I have to fix it. There are 2 rows in the table for each...

View Article

Query not executing dynamic way

1. Dynamic querydeclare @dbname varchar(50),@objname varchar(20),@sql varchar(100)set @dbname='XYZ'Set @objname='TMP'Set @sql=N'(Select * from '+@dbname+'.sys.objects where name = '+@objname+')'EXEC...

View Article

Full Text Search

Hi All,We recently enabled Full text search in SQL server 2014.We have an address table with AddressName column. Full text enabled on AddressName.AddressName sample data : 1234 N Main St Chicago IL...

View Article
Browsing all 3145 articles
Browse latest View live