Viewing 14 posts - 16 through 29 (of 29 total)
Changes, use DDL triggers.
Executions, either write your own logging Sprocs and include them or constantly trace for SP:Starting
June 4, 2008 at 10:40 am
My guess is there was a lock on the table.
Check sp_who2 next time this happens if you can catch it in the act. And see if something has the table...
June 4, 2008 at 10:37 am
How bout a constraint that if Count(*) >=50 then deny
Or insert trigger rather. Not sure if you can do that with a constraint.
You can do it with a check constraint....
June 4, 2008 at 10:33 am
Just do a search and replace for each single quote (') and make it 2 single quotes (''). 2 single quotes escapes one
June 4, 2008 at 8:15 am
Also, I know that Wheaties has no apostrophe....
June 3, 2008 at 4:58 am
I think what you're trying to do is insert a SQL string into a varchar text field.
You have to replace all the single quotes with '' to escape them [that's...
June 3, 2008 at 4:57 am
If I'm guessing right, you're trying to optimize for stored procedure recompiles.
If that is the case these aren't DDL (ie they don't CUD database objects).
Generally I've seen all DDL at...
June 3, 2008 at 4:50 am
Doesn't AdventureWorks come with a front end?
June 3, 2008 at 4:45 am
You can avoid sql injection by avoiding the use of dynamic SQL.
Don't have lines in your code like
set strCmd = "Insert into myMainTable(MostImportantInfo) ('" + Request.QueryString("hackmenow") + ")"
conn.Execute()
Replace these with...
June 3, 2008 at 4:40 am
Your accusation of a sweeping generalization is accurate, however in my experience there are more unskilled [read sloppy, inexperienced] generalists than specialists.
June 3, 2008 at 4:34 am
I haven't seen this as much of a problem. Yes I'm a specialist in portfolio analysis and financial data warehousing and reporting.
What does this really mean?
I'm a database developer, a...
June 2, 2008 at 8:41 am
Being familiar with both the nested set model [specifically Celko's push stack] and the CTE model, they each have their advantages and are relatively easy to set up. I recommend...
May 16, 2008 at 12:13 pm
I call this one "Bear Sterns"
DEFAULT TRANSACTION
CROSS PUBLIC DECLARE DUMP GROUP
USE TRIGGER DUMMY
May 9, 2008 at 1:08 pm
Viewing 14 posts - 16 through 29 (of 29 total)