Viewing 15 posts - 15,736 through 15,750 (of 18,923 total)
I'm not gonna ask why... but this will be a performance killer :
create table Test(MetaInfo image)
insert into dbo.Test (MetaInfo) values('True')
Select cast(cast(MetaInfo as varbinary(50)) as varchar(50)) as MetaInfo from dbo.Test
--True
DROP...
July 5, 2005 at 6:29 am
NP, it seems bigger than it really is. The package has only 1 step that runs in less than a sec on my pc (very few columns allow nulls...
July 5, 2005 at 6:25 am
This syntaxe is just forbidden : UPDATE Contacts AS C
You must use the as in the from clause. And yes my query will run much faster
July 5, 2005 at 6:23 am
Please do not cross-post.
Finish the thread here : http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=196912
July 5, 2005 at 6:19 am
UPDATE C
Set C.fkClientLocationID = P.fkClientLocationID
FROM dbo.Contacts C inner join dbo.Project P on P.fkContactID=C.pkContactID
July 4, 2005 at 9:48 pm
Can't test the query from here, but it should be pretty close :
UPDATE C
Set C.fkClientLocationID = P.fkClientLocationID
FROM dbo.Contacts inner join dbo.Project P on P.fkContactID=C.pkContactID
Why exactly do you want to...
July 4, 2005 at 8:28 pm
Not for me because I always prefix my functions name with fnFunctionName
.
It could be a problem. Maybe a check that joins...
July 4, 2005 at 5:27 pm
The numbers table is used as a sequence table. It should not be merged with your actual data.
July 4, 2005 at 5:23 pm
I don't think so because I think that the definition is rewritten to include the column name between brackets so DBO.ColumnName(AlsoAColumnName) would become DBO.ColumnName([AlsoAColumnName]) and the script would pick only...
July 4, 2005 at 3:17 pm
Please post the actual table definition (create script). I'm not doing this 2 more times.
July 4, 2005 at 3:10 pm
This is a multi part package
First execute this in QA :
IF Object_id('ListTableColumns_NotNulls') > 0
DROP FUNCTION ListTableColumns_NotNulls
GO
IF Object_id('TablesColumnsNulls') > 0
DROP TABLE TablesColumnsNulls
GO
IF Object_id('TablesColumnsNulls_Insert') > 0
DROP PROCEDURE TablesColumnsNulls_Insert
GO
CREATE FUNCTION dbo.ListTableColumns_NotNulls (@TableID...
July 4, 2005 at 3:03 pm
Viewing 15 posts - 15,736 through 15,750 (of 18,923 total)