Viewing 15 posts - 10,546 through 10,560 (of 13,461 total)
ok, it's making a little more sense; do all the staging tables have a common layout, or, as in your example, they might be missing some columns? is there ONE...
September 9, 2009 at 10:45 am
ironically it's really easy: the INSERT command combined with a SELECT with no WHERE statement will copy it all for you.
Insert Into NewTable (ColumnList...)
Select ColumnList...
From OldTable
--Order By OldPK --optional...
September 8, 2009 at 6:51 pm
well...yes it is possible, but without more info, you won't have any useful product.
100 tables? as many as 200 columns per table? an you just want to merge them all...
September 8, 2009 at 6:25 pm
that is one of the coolest things I've seen in a long time; Thanks Paul, I learned something,and have a shiny new toy to play with now.
I added this to...
September 8, 2009 at 5:42 pm
Paul i tried your example on SQL2005 Standard, SP3, but i get a syntax error in a 9.0 compatibility database, as well as master. is that a 2008 feature? it...
September 8, 2009 at 5:12 pm
Mat gave you the script to read the flags of the status column; that is exact where it is stored/accessible...it might not be exactly what you wanted, but that's where...
September 8, 2009 at 2:32 pm
not even familir with unix by any means, but if the commands you pasted can be copied/pasted to a Windows cmd window, which then does the connection to the remote...
September 8, 2009 at 11:05 am
the trigger itself looks ok, but it could still fail if any of the fields you are inserting are not null, but the data is null. That's where i...
September 6, 2009 at 2:31 pm
well, here's an example of a trigger...in this case, my trigger is keeping track of the last time a column was updated.
for trigger interview questions, I'm afraid I can't help...
September 5, 2009 at 6:35 am
ranganathanmca (9/5/2009)
i want do it on sql query analyzer only if it possible for this plz tell me what is the error and...
September 5, 2009 at 5:37 am
there's some script contributions here on SSC that call SMO; I've done this all via TSQL, where i stick a current "snapshot" of a database in a versioning table in...
September 4, 2009 at 12:54 pm
here's a similar example i did a while back; i was creating a database, and then adding roles, and then adding users, all as EXECUTE AS 'dbo'
you could picksome of...
September 4, 2009 at 11:31 am
I think this is exactly why they introduced the new EXECUTE AS command;
you don't REALLY want to give them extra rights, but they need to perform certain functions.
for #1, you...
September 4, 2009 at 11:29 am
Ahh David, yeah, i fell into that SQL trap where i assume all my PK's are also the clustered index...my bad.
September 4, 2009 at 10:25 am
Speed.
the PK determines the actual order of the data, so the any SQL's that use that "PK = somevalue" is very fast...because that PK index is used, and makes...
September 4, 2009 at 10:22 am
Viewing 15 posts - 10,546 through 10,560 (of 13,461 total)