Viewing 15 posts - 4,831 through 4,845 (of 6,035 total)
Luis Cazares (7/25/2013)
How about this?
SELECT TOP 1 *
FROM MyTable
ORDER BY DateOfBirth DESC
We also can't assume that DateOfBirth isn't nullable.
SELECT TOP 1 *
FROM MyTable
WHERE DateOfBirth is not null
ORDER BY DateOfBirth DESC
July 25, 2013 at 4:45 pm
Explain what it means to "get the person"; do you want to return the entire person row, just the person's ID, etc. ?
July 25, 2013 at 4:05 pm
Dird (7/25/2013)
Although currently I'm just looping through 11 servers and doing...
July 25, 2013 at 3:57 pm
Dird (7/25/2013)
Oh I have this: http://www.mssqltips.com/sqlservertip/1037/system-information-in-sql-server-2000-vs-sql-server-2005My question was more whether anyone has done "CREATE VIEW sys.databases ...;" already or not~
Since your code needs to run against 2000 - 2008, perhaps...
July 25, 2013 at 3:46 pm
I personally havn't had a need to do it, but since you have the inspiration, here is a link to get you started.
Mapping SQL Server 2000 System Tables to SQL...
July 25, 2013 at 3:20 pm
Lowell (7/25/2013)
that should be easy to do , since everyone is logging...
July 25, 2013 at 2:19 pm
Luis Cazares (7/25/2013)
Eric M Russell (7/25/2013)
In SSMS, you can right click an object and select 'View Dependencies'.
As far as I know, those dependencies are only within the database. If there...
July 25, 2013 at 2:11 pm
This situation smells like Entity Framework. I'll bet it's developers telling management they need sysadmin membership in production or else the application won't work.
July 25, 2013 at 2:06 pm
Sean Lange (7/25/2013)
July 25, 2013 at 2:00 pm
OracleBoy (7/24/2013)
I want to know the size attribute to pools , memory , cache ...
It's not possible to know if user can create for...
July 25, 2013 at 1:46 pm
In SSMS, you can right click an object and select 'View Dependencies'.
July 25, 2013 at 1:35 pm
Zeal-DBA (7/25/2013)
thanks for such a good explaination, actually there are already multiple running applications and it is not possible to remove logins from sysadmin role or cant modify any...
July 25, 2013 at 1:28 pm
The simple truth of the matter is that if the users are members of SYSADMIN role, then they own your database. Your organzation doesn't have one or two DBA's, it...
July 25, 2013 at 1:09 pm
mohan.bndr (7/24/2013)
July 25, 2013 at 12:44 pm
Are you sure you personally are a consultant?
If you're paid a salary by your employer, then you're no more a consultant than the receptionist is, even if your...
July 23, 2013 at 2:40 pm
Viewing 15 posts - 4,831 through 4,845 (of 6,035 total)