Viewing 15 posts - 6,676 through 6,690 (of 7,631 total)
grevesz (6/10/2008)
In the mean time, could you please direct me to some reading material...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 11, 2008 at 7:27 am
Jack is right, of course. So I wanted to take a minute to highlight the difference between these two suggestions.
My two suggestions (called Snapshots or Row Versioning) allow users...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 11, 2008 at 7:26 am
kaykay005 (6/10/2008)
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 10, 2008 at 4:51 pm
Use either:
ALTER DATABASE {yourDB} SET READ_COMMITTED_SNAPSHOT ON;
Or,
ALTER DATABASE {yourDB} SET ALLOW_SNAPSHOT_ISOLATION ON;
And then have the Deleting proc start its transaction like this:
SET TRANSACTION ISOLATION LEVEL SNAPSHOT;
BEGIN TRAN
The first...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 10, 2008 at 4:32 pm
Yes, please do.
I had considered that as an option, but was concerned that I would be taking on even more problems.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 10, 2008 at 4:17 pm
bump.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 10, 2008 at 12:48 pm
Steve Jones - Editor (6/10/2008)
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 10, 2008 at 11:37 am
If you prefer your own editor, that's great. Many do still use custom editors. But the Wizards are another story, ultimately, they are just limiting.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 5:42 pm
Michael.Lowden (6/9/2008)
Oh I totally agree. But really isn't it the only way to create a view without typing the supporting TSQL for like "CREATE VIEW" etc?
Yes, you have to...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 4:58 pm
Ah, yes. You are using the View wizard as GSquared surmised.
Here's how to fix that: Never use the View wizard. Use query windows instead.
The View wizard is...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 3:37 pm
Simon Doubt (6/9/2008)
You're the man!Thanks so much - I really appreciate it.
-Simon
Funny, my kids call me "The Man" also, but I don't think it's a compliment when they say it.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 3:09 pm
Not sure what you mean. SQL-server never reformats my procedures and views.
Can you give a step-by-step example?
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 3:06 pm
Like this:
INSERT RemoteTable (CompanyID, CategoryID)
SELECT CompanyID, CategoryID
FROM LocalTable AS LT
WHERE NOT EXISTS (SELECT * FROM RemoteTable RT
WHERE Rt.CompanyID = LT.CompanyID
And RT.CategoryID...
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 2:54 pm
Well, I'm glad one of us helped. 🙂
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 2:21 pm
Nice article, Gus.
[font="Times New Roman"]-- RBarryYoung[/font], [font="Times New Roman"] (302)375-0451[/font] blog: MovingSQL.com, Twitter: @RBarryYoung[font="Arial Black"]
Proactive Performance Solutions, Inc. [/font][font="Verdana"] "Performance is our middle name."[/font]
June 9, 2008 at 2:19 pm
Viewing 15 posts - 6,676 through 6,690 (of 7,631 total)