April 14, 2016 at 4:23 pm
Luis Cazares (4/14/2016)
Ed Wagner (4/14/2016)
SQLRNNR (4/14/2016)
Luis Cazares (4/14/2016)
Is this guy for real?How is it possible that he can't work out a basic DML statement and still have a job?
Hopefully Hugo has him sorted.
Yes he did. Then the OP moved on to his loop to split strings. I referred him to Jeff's article and I'm curious on where it'll go.
IMO, people that can't understand INSERT INTO...SELECT shouldn't be coding
splittersin T-SQL.
+100
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
April 14, 2016 at 4:24 pm
jeff.mason (4/14/2016)
Phil Parkin (4/14/2016)
Steve Jones - SSC Editor (4/14/2016)
Well, apparently I don't write good questions to teach these people things.Maybe some of you should write some questions to help people learn how to write DML?
:-P:-D:w00t::hehe:
Seriously, looking for articles and questions, if you are so inclined.
Something like: What is the problem with the following query?
select * from
(delete
(update (insert into
where
select 1/0 where 4 = 5)
)
)
That made my head hurt.
if that could work, I wonder what the tree would look like.
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
April 14, 2016 at 4:41 pm
Sean Lange (4/14/2016)
Grant Fritchey (4/14/2016)
Sean Lange (4/14/2016)
Oh that's right. It should be
;select
BURN IT WITH FIRE!!!!
Of course you do realize that all the same people that still start a cte with a semicolon will start doing this with select statements once it it required to terminate every statement. I am somewhat surprised I have not yet seen this recommendation by the pundits that insist on statement beginninators. 😀
I actually call this practice out during my "Anatomy of Select" presentation.
I hope someday I will get to present my Bare Naked and Anatomy sessions back to back.
That's "Bare Naked Skinny on SQL Server" and "Anatomy of Select".
Jason...AKA CirqueDeSQLeil
_______________________________________________
I have given a name to my pain...MCM SQL Server, MVP
SQL RNNR
Posting Performance Based Questions - Gail Shaw[/url]
Learn Extended Events
April 15, 2016 at 3:54 am
SQLRNNR (4/14/2016)
Sean Lange (4/14/2016)
Grant Fritchey (4/14/2016)
Sean Lange (4/14/2016)
Oh that's right. It should be
;select
BURN IT WITH FIRE!!!!
Of course you do realize that all the same people that still start a cte with a semicolon will start doing this with select statements once it it required to terminate every statement. I am somewhat surprised I have not yet seen this recommendation by the pundits that insist on statement beginninators. 😀
I actually call this practice out during my "Anatomy of Select" presentation.
I hope someday I will get to present my Bare Naked and Anatomy sessions back to back.
That's "Bare Naked Skinny on SQL Server" and "Anatomy of Select".
I would be very happy if I could see the "Anatomy of Select" presentation ?! 😛
April 15, 2016 at 4:11 am
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspx
I don't have backup.
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
April 15, 2016 at 4:46 am
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
I read "by creating empty DB and taking it offline and deleting and replacing dummy .mdf and .ldf files with my DB".... and just started to shake my head.
April 15, 2016 at 4:49 am
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
How does one get incorrect page IDs in the headers?
Seriously. I'm trying to figure out how that one is possible.
April 15, 2016 at 4:50 am
BLOB_EATER (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
I read "by creating empty DB and taking it offline and deleting and replacing dummy .mdf and .ldf files with my DB".... and just started to shake my head.
I'm trying to figure out where he got that bit of advice so I can avoid that site.
April 15, 2016 at 5:06 am
Brandie Tarvin (4/15/2016)
BLOB_EATER (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
I read "by creating empty DB and taking it offline and deleting and replacing dummy .mdf and .ldf files with my DB".... and just started to shake my head.
I'm trying to figure out where he got that bit of advice so I can avoid that site.
Paul Randal, perhaps? eg:
http://www.sqlskills.com/blogs/paul/disaster-recovery-101-hack-attach-a-damaged-database/[/url]
http://www.sqlskills.com/blogs/paul/creating-detaching-re-attaching-and-fixing-a-suspect-database/[/url]
Thomas Rushton
blog: https://thelonedba.wordpress.com
April 15, 2016 at 5:36 am
Brandie Tarvin (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
How does one get incorrect page IDs in the headers?
Seriously. I'm trying to figure out how that one is possible.
I think you're looking for DBCC WRITEPAGE. Please first connect to dev and be careful.
April 15, 2016 at 6:19 am
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
In 2016, with all of the available training, documentation, and general awareness and people STILL aren't taking backups?
April 15, 2016 at 6:30 am
Brandie Tarvin (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
How does one get incorrect page IDs in the headers?
Seriously. I'm trying to figure out how that one is possible.
Pages zeroed out by the IO subsystem. Literally portion of the file overwritten by zeros by misbehaving IO subsystem
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
April 15, 2016 at 6:35 am
jeff.mason (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
In 2016, with all of the available training, documentation, and general awareness and people STILL aren't taking backups?
Or, nuking the offsite backups along with the onsite servers. For get the whole "resume generating event" meme. This is a "lawyer hiring event" hmmm... that doesn't quite work well. Still, the idea is valid.
"The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood"
- Theodore Roosevelt
Author of:
SQL Server Execution Plans
SQL Server Query Performance Tuning
April 15, 2016 at 6:36 am
Brandie Tarvin (4/15/2016)
BLOB_EATER (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
I read "by creating empty DB and taking it offline and deleting and replacing dummy .mdf and .ldf files with my DB".... and just started to shake my head.
I'm trying to figure out where he got that bit of advice so I can avoid that site.
Paul Randal's blog, pluralsight courses, articles and PASS presentations.
It's the last ditch solution for attaching a damaged DB or one where the log file was lost.
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
April 15, 2016 at 6:36 am
GilaMonster (4/15/2016)
Brandie Tarvin (4/15/2016)
GilaMonster (4/15/2016)
*sigh* http://www.sqlservercentral.com/Forums/Topic1778081-433-1.aspxI don't have backup.
How does one get incorrect page IDs in the headers?
Seriously. I'm trying to figure out how that one is possible.
Pages zeroed out by the IO subsystem. Literally portion of the file overwritten by zeros by misbehaving IO subsystem
If the OP copied the files from the original location to the new location instead of cutting and pasting the files he/she can re-attach the original files and take a backup. But he/she said the files were cut and pasted...
Viewing 15 posts - 53,536 through 53,550 (of 66,712 total)
You must be logged in to reply to this topic. Login to reply