Viewing 15 posts - 9,856 through 9,870 (of 18,926 total)
I had missed this one too. Select @SomeVar from dbo.SomeTable is a valid sql statement that will scan the table. I just thaught that this was a feature I had...
May 16, 2007 at 1:21 pm
you can add linked servers (sp_addlinkedserver) and use this select method :
Select * linkedServerName.dbName.dbo.tblName t1 inner join l1.db2.dbo.t2 t2 on ...
May 15, 2007 at 11:01 pm
Select T1.ChildID Level1, T2.Childid AS Level2 FROM dbo.Table T1 LEFT OUTER JOIN dbo.Table T2 ON T1.ChildID = T2.ParentID where Parent = @id
Not tested but this should give you the idea. If you want...
May 15, 2007 at 3:15 pm
Doh!!!!!!!
Select @Something = SomeCol FROM dbo.MyTable
There's no where condition in this query, the server will HAVE TO SCAN to query the results. I think the programmer tried to invent a feature...
May 15, 2007 at 2:38 pm
That would seem to answer it to me.
No step in the plan and faster code. That would almost seem like a no brainer except for the fact that I've never...
May 15, 2007 at 2:37 pm
The error may also come from a trigger (assuming this may not be a select statement).
May 15, 2007 at 5:37 am
That's one way to do things... I preffer my way
.
May 14, 2007 at 11:45 am
You just add them to the where clause (if it's on the left table). If it's on the joined table then you have to make it part of the join...
May 14, 2007 at 11:42 am
Yup, that's what happens when you want to help but don't have the time to test the final solution.
Who said that if you don't have time to do it right...
May 14, 2007 at 4:16 am
My exemple will work, just remove the go.
BTW this is why the code samples you post should also work when posted
.
May 13, 2007 at 4:23 pm
Not too sure of what you want to do nor what is the problem, but give this version a try!
use focintegra
declare @conta as varchar(15)
set @conta = '62103'
select @conta
go
update cpoo set
/*Base...
May 13, 2007 at 4:10 pm
Please post some sample data from both tables and the required outout of the updated table. The table ddl is also quite usefull to us.
May 12, 2007 at 7:07 pm
I'd check in with the network guy, or the DBA that handles that server. There must be something sucking the life right off that server. My watch could update more...
May 12, 2007 at 2:52 pm
Anything forbidding you to drop the table's data and insert all the data from the 2nd server?
May 12, 2007 at 2:50 pm
Viewing 15 posts - 9,856 through 9,870 (of 18,926 total)