Viewing 15 posts - 48,076 through 48,090 (of 59,102 total)
Matt Miller (9/27/2008)
There's always TRY/CATCH, too.
Yeah, I know... but I just can't bring myself to programming by exception. I'd rather know the correct answer up front and take...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 28, 2008 at 6:38 pm
You bet, Neela.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 28, 2008 at 6:35 pm
I'm not sure who gave you the requirements on these file names, but the yyyymm format will serve you much better and for much longer.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 9:20 pm
salvysmith08 (9/24/2008)
...if you can show me how to dynamically add column GRP on every dynamic table then that would great.
Old gaming trick... when you can't move, change color... Temp Table...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 9:04 pm
sivavardhan (9/26/2008)
if exists
(select name from master..sysdatabases where name like '%abc%')
Begin
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 8:11 pm
vyas (9/24/2008)
IF EXISTS(select * FROM master..sysdatabases where [name] ='pubs')
begin
use pubs
...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:59 pm
Stuff it...:P seriously... the STUFF solution that Chris Morris posted will do the trick just fine.
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:49 pm
Heh... thanks for posting your solution. Sometimes the problem just boils down to "must look eye." 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:47 pm
Jack Corbett (9/25/2008)
Chris Harshman (9/25/2008)
I'm suprised that Jeff Moden hasn't jumped all over this. 😉
Based on some of Jeff's other posts, he is pretty busy with work right now,...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:42 pm
marius.draganescu (9/25/2008)
That is what I was suspecting, too... I guess I will have to do this in VB, process one line at a time.Thanks you very much for your opinion!
Marius
Heh......
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:18 pm
skottikalapoodi (9/26/2008)
MY DATA TYPE IS DECIMAL ONLY.ACTUALLY WHAT I WANT IS, I DON'T WANT IT TO BE ROUNDED
DECIMAL WHAT??? What is the actual datatype of the column...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:14 pm
Heh... "Loop" and "Lose" are both 4 letter words beginning with "L". 😛 Please see the following article for how to perform concatenation and some of the pitfalls to...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:10 pm
By the way... the methods shown in the articles are a bit faster than the XML methods and can also be used in SQL Server 2000. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:05 pm
It's super simple to pass a single dimensional array to SQL Server as a comma delimited string and then to split it into a temp table or table variable using...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 7:04 pm
Those sprocs are the ones that SQL Server runs behind the scenes for nearly every stored proc. The real problem is not those, but the query the query that...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 27, 2008 at 6:58 pm
Viewing 15 posts - 48,076 through 48,090 (of 59,102 total)