Viewing 15 posts - 976 through 990 (of 1,246 total)
RonKyle (11/19/2015)
November 19, 2015 at 8:05 am
Phil you sir, are a gentleman and a scholar!!! Thank you!
I had dismissed the idea of a unique index simply because those two columns alone aren't unique... For whatever reason,...
November 19, 2015 at 7:48 am
The reason you're seeing the implicit conversion (and the warning) is because you're treating it like a number in your query.
WHERE tb.SomeColumnName = 0123456789
or
JOIN dbo.TableB tb
...
November 5, 2015 at 4:01 pm
Something like this???
IF OBJECT_ID('tempdb..#temp') IS NOT NULL
DROP TABLE #temp;
CREATE TABLE #temp (
ColA INT,
ColB INT,
Colc INT,
Formula VARCHAR(100)
);
INSERT #temp (ColA,ColB,Colc,Formula) VALUES
(1,2,3,'(ColA + ColC) * ColB'),
(11,22,33,'ColA + ColB + ColC')
;
SELECT
t.ColA,
t.ColB,
t.Colc,
t.Formula,
REPLACE(REPLACE(REPLACE(t.Formula, 'ColA', CAST(t.Cola...
November 4, 2015 at 2:44 pm
Based on your vague description option B would be the preferred way to go.
November 2, 2015 at 8:30 am
Eric M Russell (10/30/2015)
In an OLTP database, you want to minimize recompiles, so you don't want to leave RECOMPILE hint in production.
I think that's an over generalized statement... "Catch All"...
October 31, 2015 at 6:46 pm
Luis Cazares (10/30/2015)
Ian Scarlett (10/30/2015)
I believe that most theorists would prefer blank spaces instead of null values.
Really? I understand the grief nulls can cause, but without them how...
October 30, 2015 at 8:40 am
The only way to prove it is to test it. Put two copies of you table in a test environment one with the current collation and the other on the...
October 26, 2015 at 10:28 am
Alan beat me to the punch... But this is a different approach, w/o using a TVF...
DECLARE @MyString varchar(256) = '$I10~TESTING1$XYZ$I10~TESTING2$~';
WITH n (n) AS (
SELECT 1 FROM (VALUES (1),(1),(1),(1),(1),(1),(1),(1),(1),(1)) n (n)
),...
October 21, 2015 at 10:10 pm
xsevensinzx (10/12/2015)
October 13, 2015 at 6:55 am
There are a few things...
#1) There's no need to use the NOLOCK hint here. It's a temp table which means you have exclusive access to it.
#2) Why are are you...
October 12, 2015 at 6:36 am
There are a couple ways of doing this. The simplest method is to use a recursive CTE.
Something like the following...
-- Create some test date...
IF OBJECT_ID('tempdb..#temp') IS NOT NULL
DROP TABLE...
October 10, 2015 at 10:44 am
Jason A. Long (10/9/2015) I don't think that's too bad considering that I'm stuck using a scalar udf.
On 2nd thought... I'm not stuck with a scalar udf... Just use the...
October 9, 2015 at 2:29 pm
Finally got to do some testing.
First and foremost... Getting the UDFs out of the function did allow the C&P column to index and I don't see the function showing up...
October 9, 2015 at 2:21 pm
mister.magoo (10/9/2015)
CREATE FUNCTION dbo.GetInvoiceIDFromBillID(@Input VARCHAR(20))
RETURNS VARCHAR(20)
WITH SCHEMABINDING
AS
BEGIN
-- Function to extract all characters from the first...
October 9, 2015 at 12:01 pm
Viewing 15 posts - 976 through 990 (of 1,246 total)