Viewing 15 posts - 14,086 through 14,100 (of 18,923 total)
Your english is fine, but you're design is wrong, by a lot and I don't have time/want to redo it and then rebuild the proc and then the calling code....
August 22, 2005 at 2:07 pm
check out fn_listextendedproperty in BOLS.
They are kept in the syscomments table IIRC.
August 22, 2005 at 2:04 pm
Farrell, I've shown this trick so many times I'm surprised you didn't pick it up yet >>>
IF Object_id('ListTableColumns') > 0
DROP FUNCTION ListTableColumns
GO
CREATE FUNCTION dbo.ListTableColumns (@TableID as int)
RETURNS varchar(8000)
AS
BEGIN
Declare @Items as...
August 22, 2005 at 2:02 pm
"
Anyway, I have the creation scripts. But I'm not sure where to find the relations. The only way that the tables relate to each other is that they all...
August 22, 2005 at 1:50 pm
Let me put it this way, if this had been designed correctly in the first place you wouldn't even have had to come here for help and you'd've been done...
August 22, 2005 at 1:43 pm
No he needs to correct the design... this is just the beginning of his problems.
And yes farrell, this is one problem where no set solution exists
August 22, 2005 at 1:12 pm
Why not just correct the design on the server one time and then just do a simple agregate query?
August 22, 2005 at 12:59 pm
Send me the creation script from all the tables (including the relations) an dI'll build it.
August 22, 2005 at 12:53 pm
Show him the execution plan of query analyser... can't get much better explanation than that.
August 22, 2005 at 12:23 pm
It's 1024 :
CREATE TABLE test
( [1] int not null
)
DECLARE @I as int
DECLARE @Exec as varchar(8000)
PRINT '1'
set @I = 2
while @I < 3000
begin
SET @Exec = 'ALTER TABLE test ADD ['...
August 22, 2005 at 12:09 pm
What happens if you rerun the statement in the same context but from query analyser (to get the actual server error).
August 22, 2005 at 11:48 am
Do not cross-post, we monitor all boards.
Finish the thread here : http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=5&messageid=212663
August 22, 2005 at 11:48 am
Viewing 15 posts - 14,086 through 14,100 (of 18,923 total)