Viewing 15 posts - 19,981 through 19,995 (of 49,552 total)
No, you don't want the standard template, that's only got Audit Login and Audit Logout. I said trace the Audit Login Failure event.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 8:07 am
aurato (3/1/2012)
GilaMonster (3/1/2012)
aurato (3/1/2012)
GilaMonster (3/1/2012)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 8:06 am
aurato (3/1/2012)
GilaMonster (3/1/2012)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 8:02 am
Only if you can't count the users (eg internet facing)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:59 am
Personally the only time I use them is when I have an object named with an 'illegal' name or when I'm writing generic (and dynamic) SQL and don't know what...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:58 am
Chance the #StatusHistory temp table not the permanent table. You'll need to drop all indexes and constraints on that column first, change the data type and then recreate the indexes...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:46 am
Use profiler and trace for the Audit Login Failed event, get the hostname and the application name and you should be able to see what machine and what application is...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:44 am
The first finds rows where the column is not NULL
The second finds rows where the column does not equal an empty string.
CREATE TABLE Blah (
SomeString char(2)
)
Insert into Blah (null)
Insert into...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:42 am
I suspect there are two main reasons this is a table scan.
1) The data types of the two join columns don't match. They should be both char/varchar or both nchar/nvarchar
2)...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:39 am
Eugene Elutin (3/1/2012)
aurato (3/1/2012)
Great Plains Query:-----------------------------
SELECT * FROM SOP30300
WHERE SOPNUMBE IN
(
SELECT SOPNUMBE FROM #StatusHistory
)
...
Have you ever heard of JOIN's in SQL?
SELECT s.*
FROM SOP30300 s
JOIN #StatusHistory h ON h.SOPNUMBE...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:33 am
Please read through this: http://www.sqlservercentral.com/articles/Transaction+Log/72488/
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:29 am
siva 20997 (3/1/2012)
(Say using PHP/Appache...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:29 am
It's so that illegal identifiers won't break queries.
CREATE LOGIN [!2hjasdsss.lksks stupid] WITH PASSWORD ...
will work fine
CREATE LOGIN !2hjasdsss.lksks stupid WITH PASSWORD ...
Msg 102, Level 15, State...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:24 am
Eugene Elutin (3/1/2012)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 7:19 am
Well, note that with that trigger you're doing more than twice times the work of an update without it and affecting twice the rows, so without the trigger will be...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
March 1, 2012 at 4:44 am
Viewing 15 posts - 19,981 through 19,995 (of 49,552 total)