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

Separate rows depend on Previous Row

I have table with data like the below :ID Name  Category_Sort1 Campaign1  Beverage2 Campaign2  Beverage3 Campaign3  FoodI need to select with separate depend on cateory_s

View Article


How can I do a FullText search in a field for values that are IDs in another...

All,I've got a table with a notes field that can contain anything. I've set up a full text index on the table/Field so I can filter out records that contain certain terms in order to extract certain...

View Article


Same query different Execution plan on two different server

Same database, same tables, same query but running on two different servers bringing two different execution plans. plan1_server1 gets executed in under 2 secs but plan2_server2 gets executed in 8...

View Article

fight to return to the Premier League

[url=https://mantis.stanford.edu/sites/default/files/wftvwimbledon-final-2017-live-stream-mens-singleonline-16-july-hd-coverage.pdf]Wimbledon Final 2017 Live Streaming[/url]

View Article

SQL Server Agent Job Proxies

I am new here and this is my first post.  If I post this in the wrong forum, please let me know.I have just created an SSIS package and was able to hook it up to a SQL Server Agent Job. In the...

View Article


Snapshot Running Automatically Without a Schedule?

Hi EveryoneI'm hoping someone will be able to point me in the right direction with this. We've recently started having an issue with some snapshots running on one of our SQL servers (2014), whereby...

View Article

Call Stored Procedure From Another Stored Procedure

Hi Guys, I'm having difficulty with calling a stored procedure from another stored procedure and can't figure out what I'm doing wrong.   As far as I can see my syntax is correct.  The editor says...

View Article

Greater/Lesser signs for ON Clause

Usually, most joins use the equal sign with the ON clause.  For example:[code language="sql"]SELECT * FROMTable1 T1INNER JOINTable2 T2ON T1.Field3 = T2.Field3AND T1.Fiel

View Article


Image may be NSFW.
Clik here to view.

Question on CASE statement

In

View Article


How to obtain first, but not empty value?

Hello,I have a table of travel booking details (over several millions of records). Some of the records may have passenger's name, but some - may not, e.g. if there is an extra charge for a greeting...

View Article

HTML ISSUE

SET @XML =  N'Hello;<br/><br/> On the  server, sample queries:<br/>'+<

View Article

Hourly Sum of Data

Hi,Newbie in SQL. I have 2 tables session & record. Session table stored job start & end time data in 2 session, normally start on 0700 to 1500 (first session), 1500 to 2300 (2nd session). The...

View Article

XML output to file using SQL Agent Job

Server: SQL 2014XML know

View Article


Concatenate rows into string

Hi,my Cross-Apply returns multiple Values. How can i bring these Values to 1 String (V1,V2,V3....)  into my MainSelect?SELECT distinct  a.[NAME] ,c.OBJEKTID   -- multiple Values-String FROM [Devices

View Article

Extract substring from text between second set of parenthesis in a string

I have a set of records containing strings similar to [Update CITY_ID to (xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx) and update SITE_DESC to (My New Description Text)].  The description text vari

View Article


Search for strings in entire Database

I found many scripts to list table names & field names of a database.Now, I am in looking for a way to search for strings in tables and fields in a database. I found a bunch of scripts to search...

View Article

High level performance report aimed at senior management

Hi all,I've been in the SQL space for a number of years now and recently been asked to act as a service assurance manager for our department's Database as a service. I have been told to provide a...

View Article


to eat my snacking became less frequent

to eat my snacking became less frequent

View Article

Using Named Transactions

Hi Guys,According to what I've read SQL Server allows you to give transactions a name.  Is it possible to execute a query to determine if a transaction of a specific name is being run?  My thought is...

View Article

ORDER BY with CASE in SELCT DISTINCT

Hello everyone,I'am new here and also a newbie  in Trans_SqlI searching  for create a query with 2 kinds of sorting.Afeter many many hours searching and trying, i decided to ask here for help.this is...

View Article
Browsing all 3145 articles
Browse latest View live