Viewing 15 posts - 49,621 through 49,635 (of 59,099 total)
GilaMonster (6/27/2008)
Jeff Moden (6/26/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2008 at 12:16 am
Ummm... yeah... just don't try to run the same proc twice at the same time unless you detect if the table is present before you make it...
... and be pretty...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 27, 2008 at 12:10 am
Never mind... I got it... took a little trickery...
drop table #Fun
GO
select *
into #fun
from openquery([myserver],'SET FMTONLY OFF exec master.dbo.xp_DirTree [C:\],1,1')
select * from #fun
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 11:15 pm
Bugger... this works just fine (I changed my servername in the code)....
drop table #Fun
GO
select *
into #fun
from openquery([myserver],'exec master.dbo.sp_who')
select * from #fun
... and so does this...
exec master.dbo.xp_DirTree [C:\],1,1
... but this...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 11:03 pm
Dang it... nicely done, Matt... I totally forgot that OpenQuery could have an EXEC in it. :blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 10:22 pm
gerald.duncan (6/25/2008)
and create a separate SQL table from each file
[font="Arial Black"]WHY???[/font] :blink: Especially when they all have the same file format...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 10:14 pm
Heh... best way to prevent recompiles in 2k5... is to... use 2k :hehe:
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 10:09 pm
This kind of "trick" is to make forming GUI code (inherently dynamic) easier. It's a trick to try to make the GUI table driven so someone doesn't have to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 10:05 pm
susan.bartrum (6/26/2008)
Thank you.Now looked at the code, so that will keep me out of trouble for a little while!
If you want to stay out of trouble even longer, don't declare...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:43 pm
I think I see a dual triangular join between Deleted and Inserted and that might give you a funky rowcount... but I don't see anything in that code that would...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:40 pm
Heh... that's what happens when you store dates or times as formatted data. These should be stored just as a DateTime data type and formatted for display only. ...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:33 pm
janine.rawnsley (6/26/2008)
Doesn't look right?? And I can't honestly say I understand his code.. I feel a bit dense ;/
Nah... Don't feel dense... Like I said above, Barry simply forgot to...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:25 pm
suhas.kanade (6/26/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:15 pm
Karthik,
Try to select from the temp table the code just made...
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:09 pm
What did you find out when you Googled or Yahoo'd the word?
--Jeff Moden
Change is inevitable... Change for the better is not.
June 26, 2008 at 9:06 pm
Viewing 15 posts - 49,621 through 49,635 (of 59,099 total)