Percentage symbol questions
Hello all,I have a SQL function that I'm trying to convert to Oracle and am having a tough time figuring out some of the SQL code to begin with. This is the function:[code language="sql"]<
View ArticleIs it possible to check if a SPROC is running?
Hello,I am working with an application developer and we have an application that calls a Store Procedure. Is there a way to query the database to determine if a specific Stored Procedure is running? If...
View ArticleGetting rid of duplicate records
Hi All,I have a table that stores schedule events. One event can be scheduled more than one time in one location, but could be in multiple sites.For example, Location A could have 20 sites.One event...
View ArticleProblem with a LAG query
OK, I'm trying to modify a query I've used to generate a simple graph showing the transactions/sec for the various databases on my servers, to one that will let me show multiple graph lines...
View ArticleUsing PatIndex In IsAlpha UDF
Hi Guys.I've written a simple IsAlpha UDF and it doesn't seem to work even when I pass it something simple like the word dog. I can't seem to figure out the issue and I'm hoping someo
View ArticleHow to pass date selection to SP
How to pass date selection to the below stored procedure?I have startdate and enddate parameters (the
View ArticleHow Important Is The Semi-Colon In Coding Stored Procedures?
Hi Guys,Just a quick question.... How important is it to use the semicolon as a statement terminator when coding a stored procedure? I understand that the semicolon is the statement terminator in...
View ArticleUsing SQL Server Debugger
Hi Guys,I need some instruction in using SQL Server's Debugger. I have been trying to use it to step through a Stored Procedure in order to figure out why I'm not getting the desired output and don't...
View Articlelawyer for the Goldman family said
[url=https://www.trainingzone.co.uk/community/blogs/chrloues/super-rugby-final-2017-live-stream-ellis-park]Super Rugby Final 2017 Live Stream[/url]
View ArticleAllow Zero Length Contraint
Hi Guys, I have a question about table constraints. Most of the fields in my primary table allow nulls. Mostly because the database was upsized from an Access database which already had data in it....
View Article.Live.,.Online.,.The.,..,..
[url=http://owlanguage.com/groups/gottv-game-of-thrones-season-7-episode-4-live-hbo-stream-the-spoils-of-war/]Game of Thrones Season 7 Live Stream Episode 4[/url]
View ArticleGet LastOrderDate from each Table
Hi,i want to write the max(Orderdate) from all Tables in DB into a #TempTable.How can i realise this in a easy way ? (All Tables in the DB have 1 Col. with Orderdate).CREATE TABLE #TempTbl(...
View ArticleQuery optimization help
Hi Experts,One of the query is taking long time to execute. Its taking more than 6 mins. Can anyone provide guidance on optimize this query and bring down the execution time. Ran the query in plan...
View ArticleHandling DBNull When Inserting or Updating Using Stored Query
Hi Guys,I have a question and I'm hoping someone can help me sort out a clean and effective way of handling my problem. Most of the fields in my primary table are not required and thus allow nulls....
View ArticleMS SQL Full Text Search - Ordering on joined “non indexed” column
I'm having an FTS with the following conditions.SELECT .....FROM Database.dbo.addressbook T LEFT OUTER JOIN Database.dbo.favorites F ON T.TargetMail = F.TargetMailWHERE 1 = 1 AND (@kw1 = '""' OR...
View ArticleDynamic date range
Hi there,I need to write a query that displays certain data between the first day of the last month and the last day of the last monthFor example, once we are in august first i want the range to...
View ArticleBit vs. Int in return code
Hello,Can a bit be used when validating for a return code? Or should int be used? Why or why not?
View ArticleUnion or CTE to turn cols into rows?
I am looking for the most efficient way to turn columns into rows where I do not believe I can use a pivot because there is not enough data. I currently am using a UNION but curious if CTE would be...
View ArticleConverting Hour and Minute to Decimal
Hello, I am having some issues converting time to decimal from one of my column which display it as 2014-07- 08:16:31.000 (datetimecreated) A solution to make this work would be greatly appreciated....
View ArticleUnion is not working
Hello guys,I have 3 tables APVS_Templates, APVS_Template_Sections and APVS_Bus_Sections, All tables has the TemplateID as referenceI am trying to create a query that get me the following...
View Article