Viewing 15 posts - 5,491 through 5,505 (of 9,707 total)
GilaMonster (7/25/2011)
SQLRNNR (7/25/2011)
GilaMonster (7/25/2011)
mtillman-921105 (7/25/2011)
July 25, 2011 at 12:12 pm
rbond 51820 (7/25/2011)
July 25, 2011 at 12:04 pm
Actually, it's not that post, Ninja. There was another one that I responded to in the first few posts and the guy didn't want to listen to me, Gus, and...
July 25, 2011 at 12:02 pm
Dynamic SQL is when you populate a variable with a SQL query or another stored procedure. Read up on sp_executesql when you get a chance, so you understand what can...
July 25, 2011 at 11:53 am
Welsh Corgi (7/25/2011)
Yes, also grab some pencils. 🙂
😛
@=)
July 25, 2011 at 11:39 am
I have to agree with Gus & Ninja. Yes, you can do it, but there are so many things that can go wrong with that method (like accidentally deleting the...
July 25, 2011 at 11:20 am
Why are you converting your dates to strings?
I have always had problems with BETWEEN dropping records on me, so I never use it. I always go this route:
SH_ACCT.open_dt >= dateadd(mm,datediff(mm,0,dateadd(mm,-2,getdate())),0)...
July 25, 2011 at 11:14 am
Yes, because SANS are set up in different ways and also have different hardware. Some SANS have 1 disk controller, others have multiples. Also, it depends on how the LUNS...
July 25, 2011 at 11:10 am
I think your scenario highlights a very real problem with Full-Text.
The searches are based on words, and variations of words, that SQL "knows." Because you are using proper names,...
July 25, 2011 at 11:05 am
You could always use the RIGHT and LEFT functions.
Declare @MyVar char(6);
Set @MyVar = 'abcdef';
Select @MyVar = LEFT(RIGHT(@MyVar,5),4);
Select @MyVar;
UPDATE import_table
SET cost_code=@MyVar;
July 25, 2011 at 10:59 am
I agree with everything everyone said so far. I would just like to add that it may be easier for you to draw things out before you start physically designing...
July 25, 2011 at 10:54 am
DBA in Unit 7 (7/25/2011)
July 25, 2011 at 10:42 am
If the domains don't trust each other, I don't think any amount of SQL perms verification will help. Check with your domain admin to make sure that A) the domains...
July 25, 2011 at 10:40 am
You have to turn the whole statement into a dynamic SQL statement. You can't just assign variables to the various bits of it. Do you know how to do dynamic...
July 25, 2011 at 10:38 am
Have you compared execution plans between the regular SELECT and the SELECT...INTO queries?
July 25, 2011 at 10:34 am
Viewing 15 posts - 5,491 through 5,505 (of 9,707 total)