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 ArticleHow 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 ArticleSame 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 Articlefight 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 ArticleSQL 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 ArticleSnapshot 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 ArticleCall 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 ArticleGreater/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 ArticleHow 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 ArticleHourly 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 ArticleConcatenate 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 ArticleExtract 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 ArticleSearch 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 ArticleHigh 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 ArticleUsing 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 ArticleORDER 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