Viewing 15 posts - 1,051 through 1,065 (of 2,648 total)
SELECT LEFT(x.Comment,20) + IIF(LEN(x.Comment>20,'...','')
FROM myTable x
April 16, 2020 at 11:32 pm
Could be some string terminating characters in the account number, see if this returns anything from your source table
select ASCII(SUBSTRING(AccountNo,6,1)), AccountNo
from mySourceTable
where ASCII(SUBSTRING(AccountNo,6,1)) is not null
April 15, 2020 at 2:24 am
What if I wanted to display the SSN's with the Table Names ?
CREATE TABLE #temp(SSN varchar(20),TableName sysname);
INSERT INTO #temp(SSN,TableName)
SELECT @SSN, 'dbo.MyTable1'
WHERE EXISTS(SELECT *
...
April 14, 2020 at 12:19 am
CREATE PROCEDURE FindSSN(@SSN varchar(20)) AS
BEGIN
CREATE TABLE #temp(TableName sysname);
INSERT INTO #temp(TableName)
SELECT 'dbo.MyTable1'
...
April 13, 2020 at 6:45 pm
I've not yet moved from SQL 2012 to 2019 but in previous database upgrades the SSIS packages have to be rewritten or at least recompiled in Visual Studio.
I'm interested to...
April 13, 2020 at 2:41 pm
" it returns a null value which ado.net doesnt like"
Really!, there is a database driver that doesn't handle nulls?!
April 13, 2020 at 2:05 pm
You should check the which index, on the table that has this column, is being used (from the execution plan), then add the column you have added to the INCLUDE...
April 10, 2020 at 12:49 pm
The first thing you should do it look at differences in the execution plans.
Did you just add the column to the rows that are being selected and not add it...
April 10, 2020 at 10:53 am
Ralph Kimball has a method of not having any nulls in dimension tables. Instead, on the dimension table there are rows with negative keys:...
April 9, 2020 at 2:33 pm
Ralph Kimball has a method of not having any nulls in dimension tables. Instead, on the dimension table there are rows with negative keys: -1 for...
April 9, 2020 at 2:10 pm
Ralph Kimball has a method of not having any nulls in dimension tables. Instead, on the dimension table there are rows with negative keys: -1 for unknown, -2...
April 9, 2020 at 11:14 am
Ralph Kimball has a method of not having any nulls in dimension tables. Instead, on the dimension table there are rows with negative keys: -1 for unknown, -2 for not...
April 8, 2020 at 8:32 pm
I guess I need someone to give me execute permission on that function?
Yes, that's what you need to ask for.
April 6, 2020 at 4:17 pm
Tava,
Can you supply some more details of the processing involved?
April 6, 2020 at 10:19 am
Viewing 15 posts - 1,051 through 1,065 (of 2,648 total)