PowerShell

Technical Article

RE: UDF as Computed Column

  • Reply

Can you tell me why the first example isnt deterministic? I can see that the parent relationship can change over time but what rule is exactly violed that are mentioned in BOL? : Whether a user-defined function is deterministic or nondeterministic depends on how the function is coded. User-defined functions are deterministic if: The function […]

You rated this post out of 5. Change rating

2003-06-18

Technical Article

RE: Conditional WHERE

  • Reply

Not to one up Jay here (sorry joke about another thread). But here is another alternative. SELECT COALESCE(LTRIM(COALESCE(Salutation,'') + ' ' + FName + ' ' + LName), BusinessName) AS ClientName, A.* FROM Clients C INNER JOIN InvoiceHeader I ON I.ClientID=C.ClientID INNER JOIN Addresses A ON A.ClientID=C.ClientID AND (CASE WHEN A.AddrTypeID=@BillingAddressID THEN 1 ELSE A.PrimaryAddr […]

2003-06-17

2 reads

Technical Article

RE: Conditional WHERE

  • Reply

Here's an alternative: IF EXISTS ( SELECT * FROM Clients C INNER JOIN InvoiceHeader I ON I.ClientID=C.ClientID INNER JOIN Addresses A ON A.ClientID=C.ClientID WHERE I.InvoiceNr=@InvoiceNr AND A.PrimaryAddr=1 ) BEGIN SELECT COALESCE(LTRIM(COALESCE(Salutation,'') + ' ' + FName + ' ' + LName), BusinessName) AS ClientName, A.* FROM Clients C INNER JOIN InvoiceHeader I ON I.ClientID=C.ClientID INNER […]

2003-06-17

1 reads

Technical Article

RE: Turning transaction log off and on

  • Reply

You could try setting the recovery model to simple prior to running the nested transactions, and then resetting the option after the transaction has completed. When the simple recovery model is used, transactions are truncated from the log. SQL Server keeps a track of current transactions, and then removes them from the log on checkpoint. […]

You rated this post out of 5. Change rating

2003-06-14

Technical Article

RE: Comparing two tables

  • Reply

Hi Frank, This script is what I use to compare the data in two different tables...worked out fine for me... http://qa.sqlservercentral.com/scripts/contributions/458.asp

2003-06-11

1 reads

Blogs

Real-World SQL Mastery: Your Hands-On, Mess-Free Sandbox

By

Are you ready to take your SQL skills from theoretical to tactical? If you've...

Set a Runtime Variable in an Azure DevOps Pipeline

By

Note: I DO NOT recommend this. Any changes to a pipeline should be in...

A New Word: Symptomania

By

symptomania – n. the fantasy that there’s some elaborate diagnosis out there that neatly...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers