SQL Intersection

Technical Article

Login failed for user \.

  • Topic

I am trying to execute the following SQL Statement from MyServer...---------------------------------------------------------------------------DECLARE @NameSET @Name = SUSER_SNAME()--The @Name = 'Domain1\MyUserID'EXEC sp_AddLinkedServer 'YourServer', 'SQL Server'EXEC sp_addlinkedsrvlogin @rmtservername = 'YourServer', @userself = 'TRUE'SELECT * FROM YourServer.YourDB.DBO.YourTableEXEC sp_droplinkedsrvlogin @rmtservername = 'YourServer', locallogin = @Name---------------------------------------------------------------------------I am added as a user on YourServer and YourDatabaseOn the Select Statement an Error OccursServer: Msg 18456, Level […]

You rated this post out of 5. Change rating

2004-01-29

4 reads

Technical Article

RE: Running packages held in structured storage files

  • Reply

I have done both.  They seem to work quite nicely either way.In a structured storage file, there are multiple versions of a package in a single storage file.  And there may be multiple logical packages in a single storage file.  I learned this recently at a job I finished recently.  I am considering using this […]

You rated this post out of 5. Change rating

2004-01-28

1 reads

Technical Article

RE: Problem with "Ingore duplicates" index option

  • Reply

"I could insert a batch of records into with the hope that SQLSvr would insert records that didn't already exist in Table1 and ingore (not insert) any that already did exist in Table1."I don't think it is good to enable 'Ignore duplicates' in unique key. In your case, you can achieve it by try INSERT INTO […]

You rated this post out of 5. Change rating

2004-01-28

1 reads

Technical Article

RE: Replace NULL value with 0 in query

  • Reply

Might be worth considering placing a DEFAULT value of 0 on your column, otherwise you'll face the problem you know have.Another approach might be to use COALESCE() like thisSET NOCOUNT ON CREATE TABLE AveragingMultipleColumns (year0 DECIMAL(8,5), year1 DECIMAL(8,5), year2 DECIMAL(8,5))INSERT INTO AveragingMultipleColumns (year0, year1,year2) VALUES(1,2,3) INSERT INTO AveragingMultipleColumns (year0, year1,year2) VALUES(1,2,NULL) INSERT INTO AveragingMultipleColumns (year0, […]

You rated this post out of 5. Change rating

2004-01-22

1 reads

Blogs

The Future of the Social Web Is in Good Hands

By

The Social Web Foundation is aiming to grow the fediverse and make the social...

Monday Monitor Tip: Compliance Checking for Old Versions

By

A customer recently wanted to know if any of their instances were too old...

Making Legend Order Match Segment Order in a Power BI Stacked Column Chart

By

A reader of one of my previous posts pointed out that the legend order...

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