Viewing 15 posts - 1,036 through 1,050 (of 2,645 total)
Totally agreed about the usefulness of standards but I have to say that bad standards are as bad and sometimes worsen than no standards.
Agreed, but what's much worse is...
April 28, 2020 at 2:59 pm
Hi,
I have two tables, both the tables have 4 common columns,
First Column: LinkingID
Other four columns(Name,Department,City).
In few instances, we will get LinkingID row values, and few instances we don't have...
April 27, 2020 at 8:33 pm
The usual way to model this structure is like this:
IF OBJECT_ID('Path','U') IS NOT NULL DROP TABLE Path
IF OBJECT_ID('Node','U') IS NOT NULL DROP TABLE Node
GO
CREATE TABLE Node
(
...
April 22, 2020 at 11:43 pm
Thanks for your response Phil. This would work, but I was attempting for it to be more dynamic. Needed to be able to feed a parameter becasue there are...
April 21, 2020 at 7:43 pm
To be honest: I don't think it is with Bind's realm to optimize the view - but it is an advice (s)he can forward to the manager.
In the question...
April 20, 2020 at 8:10 pm
A very good idea from Erland Sommarskog, you might be able to increase the performance even more if the view needs optimising.
The first thing to try is to paste...
April 20, 2020 at 7:45 pm
I can even work with a query instead of view.
Again,I just want to confirm if working with a table runs fast than a view?
I would start by trying to...
April 20, 2020 at 7:09 pm
Sorry to say this.
Actually I am new to working on SQL and creating SSIS Packages. So, can you please explain that to me in a simplified way.
If the table...
April 20, 2020 at 3:47 pm
This is the fast way John Mitchell mentioned:
SELECT SUM(P.[rows]) AS [RowCount]
FROM sys.tables AS T
INNER JOIN sys.partitions AS P
...
April 20, 2020 at 2:52 pm
You could build the query using dynamic SQL, that way you wouldn't be referring to columns that don't exist in your query.
Also, (this isn't going to fix your problem) instead...
April 17, 2020 at 2:20 pm
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
Viewing 15 posts - 1,036 through 1,050 (of 2,645 total)