Viewing 15 posts - 14,686 through 14,700 (of 39,900 total)
Use convert:
SELECT CONVERT( Varchar(12), GetDate(),1)
December 20, 2011 at 9:55 am
Robert is correct. Just grant the db_owner role. That gives you all the privileges in the database.
December 20, 2011 at 9:53 am
tinalouise90 (12/20/2011)
hi i need shopexams.com study guides for 1z0-023 exam preparation can someone share with me these?.thanks in advance
If you would like to get help with the exams and...
December 20, 2011 at 9:50 am
Capt. Sigerson (12/20/2011)
December 20, 2011 at 9:26 am
Sorry, the DM view: http://msdn.microsoft.com/en-us/library/ms176013.aspx
Don't use sysprocesses. It's old
December 20, 2011 at 9:25 am
What are you trying to embed in the trigger? The query from sysprocesses?
Use the value from EventData to find the machine name. I'm not sure why you are querying less...
December 20, 2011 at 9:24 am
When someone reboots a server, it sends a "stop" message to all services. They aren't killed, they are shut down. It's possible that someone might kill the SQL Server service...
December 20, 2011 at 9:20 am
teckert (12/19/2011)
I see it listed as 1/7/2011.
Good catch. It's corrected to 2012
December 19, 2011 at 3:40 pm
PaulB-TheOneAndOnly (12/17/2011)
December 19, 2011 at 12:27 pm
Roy Ernest (12/19/2011)
December 19, 2011 at 11:51 am
I'd use David's technique for a quick count.
Is this something that runs often, or just an ad hoc type report? If the latter, then select count(*) from (subquery) makes sense.
December 19, 2011 at 9:58 am
Stefan Krzywicki Posted Today @ 10:55 AM
Those of you who have been talking about the first machines you used in the industry, what was it that got you to that...
December 19, 2011 at 9:34 am
GilaMonster (12/19/2011)
I don't think I should say anything about when I started, or there may be overripe pawpaw coming in my general direction.
You're just a kid, though since you can...
December 19, 2011 at 9:33 am
You can use a DDL trigger to capture the event. Here's a sample:
http://www.sqlteam.com/article/using-ddl-triggers-in-sql-server-2005-to-capture-schema-changes
The eventdata doesn't have the machine name, but it will have the login name
December 19, 2011 at 9:28 am
Viewing 15 posts - 14,686 through 14,700 (of 39,900 total)