Viewing 15 posts - 8,416 through 8,430 (of 9,713 total)
As soon as I find some data and code I can post without having to sanitize it first, I'll put up an example.
March 10, 2009 at 4:21 am
RBarry,
Depends on the situation. You can't always fix the Group By. Sometimes it screws up your result set if you do.
Believe me, I've tried that. Sometimes fixing the Group By...
March 9, 2009 at 12:22 pm
Wait a minute. I just looked at your data again. You're not doing a pivot. Not even close. Pivot is where you change your columns into rows and rows into...
March 9, 2009 at 11:48 am
Matt's correct. You have to have a PIVOT to aggregate your rows onto the column. Otherwise, what's the use of the pivot?
Of course, you can put a dummy aggregation in...
March 9, 2009 at 11:43 am
Oy, I wish!
However, there's a minor workaround.
Register all your servers in the "Registered Servers" sidebar. Keep that pinned open so every morning, all you have to do is doubleclick...
March 9, 2009 at 11:40 am
Aha! Remembered what it was. This is a poor example because I can't give you my real data and I had a much more complex query. Suffice to say, though,...
March 9, 2009 at 11:32 am
Sounds to me like the test script is trying to alter some other account's login / permissions information. That might be why it needed SA access. Of course, the account...
March 9, 2009 at 11:14 am
PerfMon can also be used to check things like RAM usage, even for SQL Server. I can't remember which SQL Server counter it is, though, off the top of my...
March 9, 2009 at 11:10 am
Fernando,
You actually have a pretty good solution. Unless the table information needs to be further processed, that proc is a quick and dirty way to get the list. The proc...
March 9, 2009 at 11:08 am
You're asking us to diagnose a problem without telling us what your error is or your expected results from the comparison. If you truly believe a table JOIN is not...
March 9, 2009 at 11:00 am
A note on "sessions". In SSMS, a session is one continuously open query window or, in other SQL apps, one continuous connection. You can't do Identity Insert in two separate...
March 9, 2009 at 10:57 am
Did any of our comments help? Is your problem resolved?
March 9, 2009 at 10:52 am
Lynn,
I'm not talking values. I'm talking names. If the collation is not the same as the one he listed, then the name "trade_date" might not be the column name.
But again,...
March 9, 2009 at 10:43 am
Matt Miller (3/9/2009)
Why wouldn't it guarantee uniqueness? You end up with distinct combinations of each item in the GROUP BY list, which is essentially what the DISTINCT will do....
March 9, 2009 at 10:41 am
I put the Domain User in the Administrators Group and also in the 'sysadmin' Server DB Role.
ACK! Domain Admin BAD karma for security reasons. Make the user account a plain...
March 9, 2009 at 10:36 am
Viewing 15 posts - 8,416 through 8,430 (of 9,713 total)