Viewing 15 posts - 151 through 165 (of 458 total)
Um... no, that's pretty terrible.
June 18, 2007 at 3:02 pm
I like Ninja's example, but you don't need to use vbs if you're not experienced with it.
You can use windows authentication and the -E switch on osql for integrated security....
June 18, 2007 at 2:48 pm
Yeah, I was kind of hoping that the original poster with my approach could modify it to get what he was looking for. The reason I use my approach...
June 14, 2007 at 10:52 am
You could first look at either the Current Activity window or using sp_who to check for existing connections into that particular database. Otherwise you can set up a trace...
June 14, 2007 at 10:43 am
Did you do a BACKUP LOG ... WITH NO_LOG/TRUNCATE_ONLY between those times? Or maybe change the recovery model? I believe those could monkey around with the LSN's but...
June 13, 2007 at 12:51 pm
If I recall comments are extended properties. You can modify them using sp_addextendedproperty, sp_dropextendedproperty, sp_updateextendedproperty and view them using fn_listextendedproperty(). Some tools streamline modifying these, but that's the...
June 13, 2007 at 12:48 pm
It looks like you have one or more log files that need to be applied in between the full backup and the transaction log backup that you have. If...
June 13, 2007 at 12:41 pm
Not 100% sure if this is what you're looking for, but use MAX() on the column you want to use as the differentiator. For instance if you want to...
June 13, 2007 at 12:39 pm
Well only members of sysadmin can start/stop traces so that might be the first place to look. Other than that you could set up a trace to capture DBCC...
June 13, 2007 at 12:06 pm
Quick and dirty? Change your second query to this...
SELECT getdate(),d.dbid as 'DB_ID', d.[name] as 'DB_Name'
, Count(distinct p.spid) as 'DB_Connections', ISNULL(sum(cpu), 0) as 'Total_CPU', ISNULL(sum(physical_io), 0) as 'Total_IO'
...
June 13, 2007 at 10:16 am
Unless you have logging enabled you probably can't.
I'd go into your server properties and under login auditing set it to audit both successful and failed logins.
June 13, 2007 at 10:06 am
Look for text of "sp_prepare" shortly before those sp_execute statements... what happens is (if I recall) sp_prepare readies the SQL and stores it temporarily with a numeric handle (that's...
June 12, 2007 at 4:35 pm
Personal preference... I always try to use procedures rather than letting the application query views. If down the line I need to do other actions and/or check more complex...
June 12, 2007 at 2:09 pm
I've run into this error before while using linked servers. Are you querying a linked server at all? You may want to check the settings for "Use Remote...
June 12, 2007 at 2:06 pm
Why not grant to the specific ASPNET user then? Or use impersonation in your application?
I mean, do what you want, but it's usually a pretty bad security practice to...
June 7, 2007 at 1:29 pm
Viewing 15 posts - 151 through 165 (of 458 total)