Viewing 15 posts - 41,341 through 41,355 (of 49,571 total)
It's not sufficient. Consider this malicious parameter that has neither ;, nor --, nor any hex string at all.
declare @query varchar(max)
declare @parameter varchar(200)
set @parameter = '''' + CHAR(13) + CHAR(10)...
January 29, 2009 at 6:13 am
Grant Fritchey (1/29/2009)
...fithy rich consultant...
I wish!
January 29, 2009 at 6:05 am
I was thinking the super, ultimate, extremely awesome version. Why settle for second-best?
January 29, 2009 at 5:49 am
Christopher Stobbs (1/29/2009)
any advice on why the Deferred naming option is a NO NO 🙂
Did I say it was? It's an interesting trick.
I said dynamic SQL's the only way...
January 29, 2009 at 4:36 am
andy.dicken (1/29/2009)
I guess the correct command to use is a simple DBCC SHRINKFILE ('filename', ) command?
No. Truncate removes inactive log records but doesn't change the size of the file. Shrink...
January 29, 2009 at 4:26 am
Looks like a stale read or a lost write, usually caused by a mis-behaving disk cache. Check your hardware, see if there are any errors in any logs
I don't like...
January 29, 2009 at 4:19 am
baumgaertner (1/29/2009)
Here the code:
if (select nDbSubVersion from tblVersion) = 2
begin
alter table tblCustAttrDefValue add strHelpValue varchar(200) null
end
go
if (select nDbSubVersion from tblVersion) = 2
begin
...
January 29, 2009 at 4:15 am
baumgaertner (1/29/2009)
Can you describe it?
The way you had it in your last post. Two ifs with a GO in between.
January 29, 2009 at 2:21 am
baumgaertner (1/29/2009)
What do you mean by dynamic SQL?I hope not "EXEC".
Yes. (or sp_executesql, same thing)
It's that, or break the batch using GO. Your choice.
January 29, 2009 at 2:11 am
Thought I remembered this: http://www.sqlservercentral.com/Forums/FindPost613599.aspx
Matt's advice (the last post of that thread) is good. Use dynamic SQL.
January 29, 2009 at 2:06 am
baumgaertner (1/29/2009)
Is there any chance to suppress this syntax error?
No.
Do you have a workaround?
Why do you have an if block that will never be executed in the first place? If...
January 29, 2009 at 1:49 am
You're confusing compile-time errors and run-time errors.
At compile time, the entire batch is checked for valid syntax and valid objects. If there's anything wrong, a syntax error is generated. This...
January 29, 2009 at 12:44 am
amit (1/29/2009)
I dnt know if the following existing.. just curious.. is there any dbcc checkdb with no_data_loss....
Yes. It's the REPAIR_REBUILD option. It only fixes things is all of the corruption...
January 29, 2009 at 12:35 am
Matt Cherwin (1/28/2009)
January 29, 2009 at 12:05 am
Steve Jones - Editor (1/28/2009)
I leave for lunch, 98 pages of answerscome back, 102.
You need to take shorter lunch breaks. 😀
January 28, 2009 at 11:54 pm
Viewing 15 posts - 41,341 through 41,355 (of 49,571 total)