‏הצגת רשומות עם תוויות SQL SERVER 2008 R2. הצג את כל הרשומות
‏הצגת רשומות עם תוויות SQL SERVER 2008 R2. הצג את כל הרשומות

יום שני, 29 בספטמבר 2014

SQL Server 2008 R2 Service Pack 3 has released

Microsoft SQL Server Product team is pleased to announce the release of SQL Server 2008 R2 Service Pack 3 (SP3).
As part of our continued commitment to software excellence for our customers, this upgrade is free and doesn’t require an additional service contract. Both, the Service Pack and Feature Pack updates are available for download on the Microsoft Download
Center.
SQL Server 2008 R2 SP3 contains fixes to issues that have been reported internally, through our customer feedback platforms, and Hotfix solutions provided since SQL Server
2008 R2 Service Pack 2 up to and including Cumulative Update 13.  It is primarily a roll up of Cumulative Updates as it is the last Service Pack for SQL Server 2008 R2. It also includes the MS14-044 update.
We will not release Cumulative Updates for SQL Server 2008 R2 SP3.
 

יום ראשון, 3 בפברואר 2013

SQL Server disaster-recovery

שלום רב,

תוכנית DRP (ראשי תיבות של Disaster Recovery plan) הינה תוכנית "התאוששות מאסון" שצריכה להימצא בכל ארגון.

"אסון" לא חייב להיות משהו דרסטי כמו נפילת שרת database אלה גם יכול להיות להיות משהו שכיח יותר כמו מחיקת טבלה או רשומה בטבלה קריטית בטעות - תוכנית DRP צריכה לכלול התמודדות גם עם מקרים כאלה.

כידוע ישנם מספר פתרונות טכנולוגיים מובנים בחבילת SQL Server להעלאת השרידות השרת והמידע כגון: windowes cluster להעלאת שרידות מערכת ההפעלה והשרת עצמו, AlwaysOn גרסת SQL Server 2012 ועוד... וכמובן גיבויים קרים וחמים ברמת ה- SQL Server להעלאת זמינות המידע ומניעת איבוד המידע בזמן "אסון".

כמובן לשיטות הללו ישנם עוד פתרונות כגון: גיבויים ברמת מערך האחסון, הורדה לקלטות ועוד שיטות רבות ומגוונות.
הבעיה בכל השיטות והפתרונות הללו שלפעמים בזמן "אסון" אנחנו מנהלי בסיסי הנתונים לא יודעים על מה להסתמך וממה לגבות, האם לשחזר מהגיבוי הסטנדרטי? האם מקלטות וכו'... - וזה בעצם מטרת תוכנית ה- DRP - לעשות סדר במקרה של אסון ולחסוך בזמן ההשבתה.

בתוכנית אני מצפה שיהיה בין השאר טבלה עם פרטי הסיטואציה והפתרון.
לדוגמא: במקרה של מחיקת טבלה יש לשחזר גיבוי SQL Server עם גלגול גיבויים חמים בשם אחר ושחזור הטבלה שנמחקה או שימוש בכלי צד שלישי שיודעים לשחזר טבלה בודדת וכו'...

לאחרונה פורסם באתר http://www.sqlmag.com פוסטר מצויין בנושא: SQL Server Disaster Recovery Step by Step אשר יכול לעשות לנו סדר בזמן "אסון".
לשימושכם : http://www.sqlmag.com/whitepaper/sql-server/sql-server-disaster-recovery-step-step-145134

טיפ לסיום, למזלנו "אסונות" לא מתרחשים כל הזמן, ולכן אני ממליץ לכם על מנת לשמור על "כשירות מבצעית" מידי פעם לעשות ניסויי שחזור על מנת לבדוק שכל מערכות הגיבוי עובדות ותקינות.

שיהיה בהצלחה,

http://blogs.microsoft.co.il/blogs/itaib/archive/2013/02/03/sql-server-disaster-recovery.aspx

יום שלישי, 18 בספטמבר 2012

SQL Server Data Tools - September 2012 update is now available for download!

The SSDT team is pleased to announce that SQL Server Data Tools - September 2012 update is now available for download!

This release is the latest step in our team's continued commitment to delivering regular, frequent releases of SSDT to the web.

What’s New?

Visual Studio 2012
In keeping with our goal of supporting the most recent version of Visual Studio, this release of SSDT supports the Visual Studio 2012 shell.  SSDT - September 2012 contains several bug fixes to the SSDT version that shipped in Visual Studio 2012 and this release can be applied  as an update on top of Visual Studio 2012 Professional, Premium, and Ultimate Editions.  If one of these SKUs is not present on the box, running the SSDT installer for Visual Studio 2012 will lay down a standalone version of SSDT for the Visual Studio 2012 Integrated Shell.
Keep in mind that the underlying engine and functionality for SSDT - September 2012 is the same for both Visual Studio 2010 and Visual Studio 2012, so you don't need to upgrade to Visual Studio 2012 to use the latest version of SSDT.  If you wish to have both shells of SSDT in your environment, they can exist side by side and SSDT projects will successfully round-trip between both shells.
 
LocalDB Configuration Improvements
We received feedback that SSDT's policy of creating a new localdb instance for each SSDT solution was too verbose, so we created a single localdb instance called Projects to host all the project debug databases.  We've also enhanced SQL Server Object Explorer by surfacing the default localdb instance and enabling the deletion of localdb instances.
 
Support for ANSI_NULLS and QUOTED_IDENIFIER Properties
In previous releases, SSDT didn't support database objects with non-standard ANSI_NULLS or QUOTED_IDENTIFIER properties.  SSDT - September 2012 has enabled this scenario by adding support for ANSI_NULLS and QUOTED_IDENTIFIER properties on project and script files.
 
Updated Data-Tier Application Framework
SSDT - September 2012 includes the latest redist of SQL Server Data-Tier Application Framework (DACFx), which contains several feature enhancements and bug fixes.  Most notably, the updated DACFx version enables packaging and deploying data using SqlPackage.exe. You can learn more about the new DACFx release here.
 
Updated SSDT Power Tools
The September 2012 update is compatible with updated Power Tools that include new features and support for both Visual Studio 2012 and Visual Studio 2010 shells.
 
Bug fixes to customer-reported issues
This release includes many bug fixes for issues reported by customers using SSDT RTW or Visual Studio 2012 RTM.  Here are some of the most impactful bugs that this release addresses:
· Unable to override Publish Profile properties when using the msbuild command line
· Slow performance on "Add New Item" from SSDT project
· Absence of debugger functionality due to errors in assembly registration
· Publish fails with no message when "extended verification" is disabled
· SSDT overwrites Visual Studio shortcut on Windows8
· Steps to edit and save a Publish Profile editor aren't intuitive 

יום ראשון, 11 בדצמבר 2011

MORE VRP - Variance

שלום רב,

לאחרונה הוזמנתי לבית מייקרוסופט להרצות בנוגע ליכולות החדשות ב- SQL Server 2012.
בהפסקה ניגש אליי DBA ושאל אותי בנוגע לבעיה שמאוד מוכרת לנו מנהלי בסיסי הנתונים : במהלך העבודה השוטפת אנו מנהלי בסיסי הנתונים ניתקלים במקרים בהם אנו צריכים לשנות משהו בבסיס הנתונים (בהגדרות של השרת, SQL Server העלאות גרסה, עדכונים, שדרוגים וכו'...) ולא תמיד אנו יודעים האם שיפרנו את הביצועים או לא...
כמו-כן, יש מקרים ש"פתאום" יש לנו גריעה בביצועים וכמובן שכל הצוות ישר עונה שהוא לא שינה כלום... ואנו לא יודעים מה השתנה מאז אתמול שהכל היה תקין...
הדגשתי ל- DBA חשוב שגם ידע שזה שהמשתמשים שלו לא מתלוננים לאחר הפעילות - זה לא אומר שהם מרוצים! בהחלט יכול להיות שהם פשוט התאיישו מביצועי בסיס הנתונים...
אז עניתי ל-DBA שכמובן שאפשר לאסוף מדדים ע"י ה- prefmon ושאר ה- DMV ... אך מה נעשה כאשר נרצה לעשות הסבה מאורקל ל- SQL Server ? או מה נעשה כאשר לא הספקנו לאסוף את המדדים לפני השינוי? או שלא אספנו את המדד הנכון?

בעיה..? אז זהו שלא!

כידוע יש את ה- MORE VRP (שגילוי נאות מדובר בפתרון מבית וראסיטי , אך מה לעשות שמדובר בכלי טוב שיכול לחסוך לנו מנהלי בסיסי הנתונים הרבה זמן וכסף...).
ב- MORE VRP מלבד היתו פתרון לניהול משאבי בסיסי הנתונים בזמן אמת (http://www.morevrp.com/) אשר הוא שווה כמה פוסטים בפני עצמו... יש בו גם את המנגנון המעולה : Variance.
בעזרת ממשק הגרפי והידידותי של מודול ה- Variance אפשר להשוות בין מסדי נתונים שונים בתקופות זמן שונות!
ה- Variance מגיע עם מגוון של כלים אנליטיים כל זאת כדי להצביע לנו על הדמיון והשוני בין הסביבות ולזהות את הסיבות לפערים ואת השפעתם על הביצועים.
המודול מאפשר ניתוח השוואתי מתוחכם של הנתונים שנאספו במאגר על פי מגוון של פרמטרים שונים.

לסיכום,
תמו להם הימים בהם היינו מבצעים שינוי בבסיס הנתונים והיינו מחכים לטלפונים של המשתמשים על מנת לקבל מהם פידבק...
מהיום ניתן להשוות את הביצועים בין תאריכים וסביבות באופן מדוייק ומהיר!
לפרטים נוספים אודות המודול: http://www.morevrp.com/products/modules/18-product-modules/analytics-modules/33-variance



בהצלחה.

http://blogs.microsoft.co.il/blogs/itaib/archive/2011/12/11/more-vrp-variance.aspx

יום רביעי, 23 בנובמבר 2011

עולמו של ה- DBA...

שלום רב,



בשבוע הבא אנחנו מתחילים את המחזור הבא של מסלול ערב בתחום SQL Server 2008 R2 במכללת נס.


בגלל שיש הרבה מתעניינים ובכלל אנשים שכבר בתחום שעדיין לא יודעים מה תפקידו של מנהל בסיס הנתונים, ברצוני לספר לך מעט על התפקיד.


כל ארגון כיום מתפקד באמצעות תוכנת מחשב עבור פעולות היומיום שלו.
יישומים אלה מבוססים בדרך כלל על חומרת מחשב (שרתים, מתגים, פיירוולים, אחסון וכדומה) כמו גם תוכנות אחרות (מערכת הפעלה, מסדי נתונים...).הלב של כל סביבת המחשוב, אשר מחזיק את כל נתוני הארגון, הוא מסד הנתונים!


לחומרת המחשב והתוכנה דרושים הרבה תשומת לב בשלב ההתקנה וגם לאחר מכן - במהלך ניהול ותחזוקה השוטפת.
תוכנות וחומרה ניתן להחליף בקלות במקרה של בעיה טכנית.
עם זאת, הנתונים בתוך מסד הנתונים אינם ניתנים להחלפה. לכן, ארגונים רבים משקיעים הרבה זמן, מאמץ ומשאבים כדי להגן על הנתונים שלהם.

DBA - מנהל מסד הנתונים, הינו האדם האחראי על התחזוקה והניהול היום יומי של מסד הנתונים בארגון.
כמו כן, תפקיד ה- DBA הינו גם הגדרת צרכים חדשים לבסיס הנתונים, תוך כדי שיפור הפונקציונליות של המערכת ושמירה על היציבות ואמינות.

מי צריך DBA?

כל ארגון בעל מסד נתונים צריך DBA.
ישנם ארגונים אשר בהם צוות DBA גדול, וישנם ארגונים המשתמשים במשאבים חיצוניים, כגון חברות ייעוץ על בסיס זמן קבוע.
עניין זה משתנה מארגון לארגון ותלוי במספר רב של גורמים:
•חשיבות בסיס הנתונים בארגון (זמינות, יציבות אמינות וכו')
•פיתוח או תחזוקה שוטפת בבסיס הנתונים.
•דרישה למומחיות טכנולוגית וניסיון רב מיועצים
•ביצוע פרוייקטים חד פעמיים
•ועוד

סוגי ה- DBA:

ישנם סוגים רבים של מומחיות בתחום מסדי נתונים.
במהלך עבודתו של ה-DBA בארגון, הוא נחשף לסוגי טכנולוגיות שונים ומגוונים. על-מנת לשמור על רמת מומחיות גבוהה נוצרו שני סוגי התמחויות ראשיים בתחום ניהול בסיסי הנתונים :
•DBA תשתיתי
•DBA אפליקטיבי
כמובן שלכל סוג התמחות יש התמחות משנה...

כישורי ה- DBA:

בגלל שתפקיד ה- DBA בארגון הינו מרכזי דרושה ממנו רמה מסוימת של מומחיות בתחום זה.
ההסמכות הרשמיות בתחום נרכשות על ידי קורסים מעמיקים בבתי ספר להיי-טק.

כמו-כן, ישנם כמה רמות של מומחיות DBA , אשר נמדדים בדרך כלל על ידי הקריטריונים הבאים:
•חינוך פורמלי - קורסים DBA
•שנות ניסיון
•ידע וניסיון בפתרונות זמינות ל- DB ופתרונות DRP
•ידע וניסיון בתחום האפלקיטיבי פיתוחי
•ידע על תחומי תשתית אחרים במחשב (חומרה, מערכות הפעלה)ניסיון בסביבות עבודה רבות (Real-time יישומים, OLTP, מחסן נתונים ...)

הכשרת ה- DBA בשוטף:

•קורסים טכנולוגיים
•ימי עיון
•קבוצות דיון
•יועצים חיצוניים
•בלוגים מקצועיים
•פורומים מקצועיים (מומלצים: פורום בסיסי נתונים של מייקרוסופט, ותפוז)

בפוסטים הבאים אני אפרט בנוגע למשימות ה- DBA בשוטף.

בהצלחה.


יום חמישי, 10 בנובמבר 2011

Evaluation Period Has Expired

שלום רב,

שאלה:


הורדתי גרסת ניסיון של sql server 2008 R2 ל- 180 יום מהאתר של מייקרוסופט (http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspx)

אחרי 180 יום קיבלתי במפתיע את ההו דעה הבאה:


אני מעוניין להזין את הרישיון שקניתי ל- Sql server ולשדרג את הגרסה מגרסת ניסיון, מה עליי לעשות?




תשובה:

הפתרון למקרה הינו די פשוט, כל מה שעליך לעשות הינו להריץ את קובץ ההתקנה של ה- Sql server, תחת קטגוריית ה- maintenance עליך לבחור בפונקציית : edition upgrade.
ב- wizard שיפתח לך יהיה עלייך להזין את מספר הרישיון שברשותך ולאחר מספר קליקים גרסת ה- sql server שבשרתך תהפוך להיות חוקית!

בהצלחה!

יום שלישי, 1 בנובמבר 2011

SQL Server - Think Big !!

שלום רב,

" מנכ"ל HP ישראל יהושע בקולה ומנכ"ל מיקרוסופט ישראל דני ימין הרימו יחד את מתג ההפעלה של מעבדת היתכנות שהוקמה בהשקעה משותפת של החברות.

המעבדה החדשה תאפשר ללקוחות ושותפים לבצע פרויקטי POC של מחסני נתונים, תוך התנסות בלתי אמצעית במערכות המשולבות של שתי החברות - מבלי להידרש באופן מיידי לשירותיהן של מעבדות בחו"ל. בהקמת המעבדה הושקעו כמליון שקלים.

מעבדת ההיתכנות מבוססת על שרתי HP ProLiant DL580 עם ארבע מעבדים ו-32 ליבות, מסד הנתונים Microsoft SQL Server 2008 R2, מערך איחסון HP StorageWorks המכיל 40 TB איחסון, מתגי תקשורת מהירים וגמישים של HP ומערכות בינה עסקית משלימות של מיקרוסופט.

איחוד העוצמות בין מערכות החומרה והתוכנה של החברות יוצר את משפחת הפתרונות המשולבים Fast Track Data Warehouse - שמספקים החזר השקעה (ROI) מוביל בתחום מחסני הנתונים לארגונים. "

http://www.calcalist.co.il/internet/articles/0,7340,L-3533881,00.html

בשבוע הבא ביום שני וראסיטי ותחום Sql server במייקרוסופט מזמינות אותכם לשולחן עגול ללקוחות sql server במערכות קריטיות.
במהלך השולחן עגול רועי פסטרנק ואנוכי נציג בין היתר את היכולות החדשות של מייקרוסופט בתחום ה- DW וה- BI.
נסקור את הפתרונות של מייקרסופט בתחום תשתיות המידע למערכות קריטיות ונראה לכם את היכולות החדשות בגרסת sql server 2012 - denali.

אז במידה והנכם מעוניינים להגיע - יש להירשם בקישור הבא:

https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032496844&culture=he-IL

כמו-כן, במידה והינכם מוזמנים לעשות POC ו"לשחק" במכונת ה- Fast Track החדשה במייקרוסופט הנכם מוזמנים ליצור עימי קשר.

בהצלחה!

יום שלישי, 18 באוקטובר 2011

שולחן עגול בנושא מערכות Mission critical

שלום רב,

אני שמח להזמינכם לשולחן עגול בשיתוף מייקרוסופט ווראסיטי בנושא : מערכות Mission critical
הכנס מיועד לקהל יעד של מקבלי החלטות בנושא תשתיות ו-DBAs.

במהלך הכנס ירצו מר רועי פסטרנק solution specialist בחברת מייקרוסופט ומר שרון הריס - CTO ואנוכי על יכולות ופתרונות מייקרוסופט בכלל ו- sql server בפרט למערכות Mission critical .
בכנס נסקור נושאים רבים ומעניינים כגון: Sql server denali, גרסאות הפרימיום, פתרונות ה- BI, פתרונות ל- DW ועוד...

להלן לו"ז הכנס:
09:00-09:30 - התכנסות
09:30-10:00 Think Big - DWH- רועי פסטרנק, solution specialist, מיקרוסופט
10:00-10:45 SQL server כתשתית למערכות קריטיות – איתי בנימין, MVP ראש תחום SQL וראסיטי
10:45-11:00 - הפסקת קפה
11:00-11:45 – מה חדש ב-DENALI? חידושים בגרסאות הפרימיום – איתי בנימין, MVP ראש תחום SQL וראסיטי
11:45 – 12:30 - סיפור לקוח : מר שרון הריס
- CTO 12:30-13:15 – BI והצגת דמו - רועי פסטרנק, solution specialist מיקרוסופט

להלן קישור לאירוע, (יש להירשם על מנת לשריין מקום):
https://msevents.microsoft.com/CUI/EventDetail.aspx?EventID=1032496844&culture=he-IL

אשמח לראותכם!

יום חמישי, 21 ביולי 2011

SQL Server 2008 R2 Service Pack 1

שלום רב,

לידיעתכם מייקרוסופט שיחררה עדכון service pack 1 לפלטפורמת sql server 2008 r2.

SQL Server 2008 R2 Service Pack 1(SP1) is now available for download. SQL Server 2008 R2 service packs are cumulative updates and upgrade all service levels of SQL Server 2008 R2 to SP1. This service pack contains the cumulative updates of SQL Server 2008 R2 cumulative update packages 1 thru 6. You can use these packages to upgrade any of the following SQL Server 2008 R2 editions:

SQL Server 2008 R2 Datacenter Edition
SQL Server 2008 R2 Enterprise Edition and Developer Edition
SQL Server 2008 R2 Standard Edition
SQL Server 2008 R2 Web Edition
SQL Server 2008 R2 Workgroup Edition
SQL Server 2008 R2 Express Edition


What’s New in SQL Server 2008 R2 Service Pack 1 ?

Dynamic Management Views for increased supportability
ForceSeek for improved querying performance
Data-tier Application Component Framework (DAC Fx) for improved database upgrades
Disk space control for PowerPivot
Fixed various issues

לפרטים נוספים:
http://www.microsoft.com/download/en/details.aspx?id=26727

בהצלחה.

יום שני, 11 ביולי 2011

כמה ימי ראשון יש בין שני תאריכים?

שלום רב,




שאלה:
יש לי מערכת לחישוב שעות עבודה המבוססת כמובן בסיס נתונים מסוג sql server :) .
בחברה שלנו מוגדר כי יום ראשון בשבוע הינו חצי יום עבודה ולכן על מנת לחשב שעות נוספות ליום עבודה ספציפי זה , אני צריך לחשב כמה ימי ראשון יש לי בין שני תאריכים.
כיצד ניתן לחשב ב - sql server כמה ימי ראשון לדוגמא יש לי בין שני תאריכים?




תשובה:
על מנת לחשב כמה ימי ראשון, ובכלל כמה "שמות" ימים יש לי בין שני תאריכים אני אקרא בהתחלה לפונקציות dateadd ו- datename על מנת לקבל את מספר היום -
datename(weekday,dateadd(day,number,@date1).
לאחר מכן, אני אעזר בטבלת המערכת master..spt_values אשר מכילה כ- 2500 פרמטרים על מנת לפענח את שם היום.




הפתרון הינו:




declare @date1 datetime, @date2 datetime
select
@date1='2011-07-01', @date2='2011-07-11'
select
sum(case when datename(weekday,dateadd(day,number,@date1))='sunday' then 1 else 0 end)
as sundays,
sum(case when datename(weekday,dateadd(day,number,@date1))='Monday' then 1 else 0 end)
as Monday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Tuesday' then 1 else 0 end)
as Tuesday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Wednesday' then 1 else 0 end)
as Wednesday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Thursday' then 1 else 0 end)
as Thursday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Friday' then 1 else 0 end)
as Friday,
sum(case when datename(weekday,dateadd(day,number,@date1))='Saturday' then 1 else 0 end)
as Saturday
from master..spt_values
where type='p' and dateadd(day,number,@date1)<=@date2



כמובן שאפשר עוד לייעל את השליפה. ובמידה ויש לכם רעיונות נוספים לפתרון הבעיה אשמח לשמוע!!
בהצלחה!



יום שלישי, 21 ביוני 2011

Top 10 Features that every Developer MUST know

שלום רב,

הנני שמח להזמינכם לסמינר שאני אעביר בנושא : Top 10 Features that every Developer MUST know .
הסמינר יתקיים במלון דניאל ב- 5\7\2011.

בסמינר טכני זה נעבור על 10 יכולות נבחרות ב-SQL Server עבור מפתחים בסביבה זו. חלקן קיימות ואינן בשימוש נפוץ כפי שהיו ראויות לו, וחלקן יכולות חדשות בגירסת Denali.

לפרטים נוספים:
http://www.microsoft.com/israel/sql-explore/content/Seminars/30024.aspx

נתראה.

יום ראשון, 24 באפריל 2011

SQL Server 2008 R2 Service Pack 1 Customer Technology Preview Available

שלום רב,

לידיעתכם חברת מייקרוסופט שיחררה גרסת SQL Server 2008 R2 Service Pack 1 .

גרסת זו מתאימה לגרסאות הבאות:

(1) SQL Server 2008 R2 Parallel Computing Edition
(2) SQL Server 2008 R2 Datacenter Edition
(3) SQL Server 2008 R2 Enterprise Edition and Developer Edition
(4) SQL Server 2008 R2 Standard Edition
(5) SQL Server 2008 R2 Web Edition
(6) SQL Server 2008 R2 Workgroup Edition
(7) SQL Server 2008 R2 Express Edition


מספר יכולות חדשות בגרסה:


Dynamic Management Views for increased supportability:
sys.dm_exec_query_stats DMV is extended with additional columns to improve supportabilities over troubleshooting long-running queries. New DMVs and XEvents on select performance counters are introduced to monitor OS configurations and resource conditions related to the SQL Server instance.

ForceSeek for improved querying performance :
Syntax for FORCESEEK index hint has been modified to take optional parameters allowing it to control the access method on the index even further. Using old style syntax for FORCESEEK remains unmodified and works as before. In addition to that, a new query hint, FORCESCAN has been added. It complements the FORCESEEK hint allowing specifying ‘scan’ as the access method to the index. No changes to applications are necessary if you do not plan to use this new functionality.

Data-tier Application Component Framework (DAC Fx) for improved database upgradest:
The new Data-tier Application (DAC) Framework v1.1 and DAC upgrade wizard enable the new in-place upgrade service for database schema management. The new in-place upgrade service will upgrade the schema for an existing database in SQL Azure and the versions of SQL Server supported by DAC. A DAC is an entity that contains all of the database objects and instance objects used by an application. A DAC provides a single unit for authoring, deploying, and managing the data-tier objects. For more information, see Designing and Implementing Data-tier Applications.

Disk space control for PowerPivot:
This update introduces two new configuration settings that let you determine how long cached data stays in the system. In the new Disk Cache section on the PowerPivot configuration page, you can specify how long an inactive database remains in memory before it is unloaded. You can also limit how long a cached file is kept on disk before it is deleted.

קישור להורדת הקובץ:

http://www.microsoft.com/downloads/en/details.aspx?FamilyID=bd200f8e-ba8a-45e3-af59-e28a9e2d17df&displaylang=en

לידיעתכם,

יום חמישי, 14 באפריל 2011

כנס SQL Server 2008 R2


שלום רב,


אני מתכבד להזמין אתכם לכנס הסברה בנושא Microsoft SQL Server 2008 R2

אשר יתקיים בתאריך 2/5/2011 בשעה 17:30

ההשתתפות בכנס ללא תשלום אך מותנית בהרשמה מראש

הכנס יתקיים בקריית עתידים בניין 10 בת"א.

הקורס מיועד למעוניינים לרכוש לעצמם מקצוע מבוקש ונדרש כמנהלי בסיסי נתונים
Microsoft
לפרטים והרשמה: נועם שחם, 054-3366425, Noam.Shaham@ness.com



אשמח לראותכם,

איתי.

יום שלישי, 29 במרץ 2011

DTA - Data Tier Applications

שלום רב,

בגרסאות ה- sql server הקודמות ניטרנו את השרת ובסיסי הנתונים על-ידי היכולות הבאות :

1. שאילתות DMV.

2. מערכות וכלי ניטור צד שלישי.

3. System monitor של מערכת הפעלה.

4. וכדומה.

בגרסת SQL Server 2008 R2 ישנו פתרון חדש בשם: DTA - Data Tier Applications

להבדיל מגרסאות קודמות שבהן ניטרנו את כל ה- instance , היכולת החדשה מאפשרת לנו לבחור את ה- DB הבודד או כמה הקשורים לאפליקציה אותה אנו נרצה לנטר. יכולת זו מאפשרת לנו , מנהלי הבסיסי הנתונים והאפליקציות לנטר ברמת היישום והאפליקציה את המשאבים השונים ( CPU , MEM, IO )

DTA הינה פתרון המכיל את כל האובייקטים במסד הנתונים ונותן לנו מנהלי בסיסי הנתונים והאפליקציות אפשרות לנטר אותם ברמות שונות.

ה- DTA מספק יחידה אחת עבור עריכה, פריסה וניהול של האובייקטים.

ה- DTA מאפשר לנו אינטגרציה הדוקה יותר של התפתחות והתקדמות הנתונים עם הפיתוח של קוד היישום.

בטיפים הבאים אנו נמשיך לעדכן אודות היכולות החדשות בגרסת ה- Sql server החדשה.


בהצלחה!


Veracity Group


Support Team


http://blogs.microsoft.co.il/blogs/itaib/archive/2011/03/29/dac-data-tier-applications.aspx


יום שלישי, 15 במרץ 2011

Generate Script ב- SQL Server 2008 R2

שאלה:
בגרסת ה- manganese studio 2005 באופציית ה- generate script היתה לנו את היכולת להחליט את המאפיינים של יצירת הסקריפט (לדוגמא: האם להוסיף בדיקת הימצאות האובייקט לפני היצירה?, האם לייצר סקירפט לייצר אינדקסים וכו'...) . ובגרסת management studio 2008 בחירת מאפיינים אלו נעלמה...



כיצד אפשר בגרסת 2008 לבחור את מאפייני ה- Generate script?


תשובה:
אכן בגרסת 2008 כאשר בוחרים את אופציית ה- Generate Script ה- wizard כולל בתוכו רק את בחירת האובייקטים הנדרשים ללא יכולת בחירת המאפיינים.

בגרסת manganese studio 2008 R2 אנו מגדירים את מאפייני ה- Generate Script בחלון ה- option .

בהצלחה!!


http://blogs.microsoft.co.il/blogs/itaib/archive/2011/03/15/generate-script-sql-server-2008-r2.aspx

יום שישי, 18 בפברואר 2011

SQL Search

שלום רב,

כידוע לכם ישנם מאות מוצרים משלימים ותומכים ל- sql server ולשאר פלטפורות ה- DB בכלל רובם כמובן עולים כסף...ולפעמים הרבה כסף..
לכן, הפעם ברצוני לסקור בפניכם כלי חינמי מצויין שאני אישית ולקוחותיי נעזרים בו רבות - SQL Search של חברת Red-Gate .

דרך אגב, לחברת redgate יש בין היתר עוד מוצר מצויין ולא יקר בשם : HyperBac.
לכלי הזה יתרונות רבים וסיקרתי אותו בעבר בבלוג:
http://itaibinyamin.blogspot.com/2009/08/hyperbac-db-hyperbac-online.html

ה-SQL Search הינו בעצם תוסף ל- SQL Server Management Studio אשר בעזרתו ניתן לחפש במהירות על-פי שם האובייקט (קטעי קוד, טבלאות , וכו'...) ולפי מילות מפתח שבתוך קטעי הקוד בבסיסי הנתונים השונים.
עוד יכולת מצויינת של הכלי הינו שכאשר לוחצים לחיצה כפולה על התוצאה המבוקשת - הכלי מביא אותנו ישירות לקטע הקוד המבוקש , ובכך בעצם אנו חוסכים זמן יקר בחיפוש ופתיחת הקובץ.




לינק להורדת הכלי: http://www.red-gate.com/products/sql-development/sql-search/

בהצלחה.

יום רביעי, 16 בפברואר 2011

SSDs – are they really a solution for database performance issues?

Most of the databases with which I am familiar – still reside on rotating plates (A.K.A disks). Disks, physical disks, hard drives or whatever else you might call them – have been out there for many years, and they are one of the few products that haven’t really developed in a technological sense. Moore’s Law never really applied to disks. Only CPU power. Too bad… because when it comes to the amount of calculation a CPU can execute in a single second – we are making a great leap every 18 months, but when it comes to the amount of IO/sec we can process even when using a high-quality storage device – the mechanics that work underneath are still stuck somewhere in the late 80s or early 90s.

Recently, there is another new buzz catching everyone’s attention. This one is around SSD drives. Solid State Drives. SSDs are really good when what you want to do is to read a lot of data. They are especially good (in comparison to physical rotating disks) when you want to read a lot of data in small chunks – what is also called “Random IO”. I’ve had an opportunity to work with databases that reside on SSD drives or what are also called Flash devices. I’ve worked with databases stored on Flash drives, Flash cache, Oracle Exadata, and many other solutions. They all have one property in common: when the disk operates faster, the CPU tends to work harder to process the huge stream of data.

Up until now, physical disks have been the main bottleneck to performance improvement in most of the systems with which I have worked. But when you substitute the IO sub-system with an alternative that is capable of executing so-and-so many IO operations per second, instead of the disk being the bottleneck, instead this role goes to the CPU. I’ve seen this in real life.

Here is an example: I was working on a system with 4 Quad CPUs and SAN storage that was capable of processing 10,000 IO/sec tops. • When my disk capacity was 100% utilized, my average CPU utilization was ~40% on average, and it peaked at 70%. • When I replaced the storage system with an SSD that was capable of processing 100,000 IO/sec (ie 10 times faster than my old storage), I noticed that my CPU consumption was still ~40% on average, but it peaked at 100%! • Another thing that I noticed was that even though the SSD capacity is 100,000 IO/sec, it never went beyond a speed of 20,000 IO/sec (meaning that it was only 20% utilized). Why was that? Because now I don’t have enough CPU power to process this fast data stream… Now we all know what happens when a machine reaches 100% CPU utilization… it crashes, times out, hangs… And if someone runs a report on this machine, if before it would have jammed only the storage device, now it jams the machine’s CPU…

Now tell me something – if you have to choose from between these two options, which one would you prefer?

• working with a jammed, over-utilized storage device?

• Working with a jammed, over-utilized CPU?

I would choose the second option. Because even when my hard drive on my laptop is working hard, most of the applications that reside in my memory and consume only CPU are still working fine. But when my CPU is 100% utilized – the laptop is completely stuck. No processing ability, not to process IO, nor to carry out CPU calculations.

People told me “SSD is going to solve our performance problems”. Well… – no. It sure will speed up some of the things that you are doing. But it is not going to solve the other problem from which you probably suffer – that of QoS and SLA. As long as there are computers, performance bottlenecks will remain. If you make one component work faster without changing anything else, the bottleneck will simply move to one of the other components.

The only way you can avoid the bottleneck and guarantee QoS in this case is by controlling the amount of resources each and every transaction takes… whether the resources are CPU or IO. It doesn’t matter if your problem is CPU or IO – MoreVRP will allow you to safeguard your QoS and SLA. Until today there doesn’t seem to be an overall solution to eliminate the bottleneck… but by using MoreVRP, you can make sure that it doesn’t affect your most critical transactions. No matter if you are working with SSDs or good old physical disks.

Something to think about the next time you consider buying a new storage device.

Cheers.

http://www.more-resource.com/blog/?p=74

יום שני, 27 בדצמבר 2010

MoreVRP Keeps your SQL Server DB in Shape without Cramping your Business Users



We all know that the secret to staying healthy and fit depends on regular, routine exercise and good maintenance habits. The same is true for our database. But how can we ensure that our routine database workouts not interfere with or delay our business?


Throughout the work week different end-users interact with the database to conduct their urgent business activities. They insert new data and run numerous varied complex transactions using a variety of applications that combine and integrate data from different sources. Sales teams enter new customer and pricing data; engineering teams change product attributes and configurations. Logistics clerks repeatedly update the database with RFID devices that transmit loads of status information from the warehouse. Consuming this varied and heavy diet while running back and forth and at the same time concentrating on difficult calculations would give anyone indigestion, especially our MS SQL Server database, with its very sensitive stomach, special dietary requirements and lean frame….



So each week we invite our SQL Server database to the fitness center for a long workout. The DBA carefully goes through the checklist, executing index and stats maintenance procedures, checking for index fragmentation or duplication that are likely to tire the database and slow it down.


Usually the DBA carries out the weekly maintenance routine on the weekend when fewer end-users need the database active. Nevertheless, we all recall the times that the database hasn’t finished its maintenance workout on-time, causing many anxious end-users to congregate around the coffee machines on Monday morning waiting for the tired database to let them get their new work week started.



What can you do to empower your database to better mobilize its resources in order to carry out all the urgent business tasks you need to do in parallel to its time-consuming yet vital maintenance routines? More IT offers you the unique wonder drug that will revitalize your database – MoreVRP! Only MoreVRP, sometimes referred to as “APM on Steroids”, can get inside the database to reallocate its resources and prevent the loads that cause database indigestion, letting it concurrently execute end-user transactions while more slowly doing its maintenance routines without interrupting your business.


There are many vendors that offer a wealth of health check monitors that will measure how tired your database is, as well as sophisticated exercise machines that let your DBAs assign more and more routine exercises and training to keep your database fit.


Only MoreVRP gives your SQL Server db the resource management “muscle” you need to keep your business going strong! For more details, check out our solution on

www.morevrp.com


יום ראשון, 24 באוקטובר 2010

SUSER_SNAME

שלום רב,

כידוע פלטפורמת sql server מכילה פונקציות מערכות שימושיות מאוד. בטיפים הקרובים אסקור מספר פונקציות שימושיות ומעניינות.

שאלה:
ברצוני להוסיף בפרוצדורה תנאים לביצוע ע"פ המשתמש אשר מריץ את הפרוצדורה – האם זה אפשרי?
האם ניתן לקבוע ערך DEFAULT לעמודה בטבלה שמשמעו "מי ביצע את הפעולה" ?

תשובה:
פלטפורמת SQL SERVER 2005 מכילה פונקציות מערכת רבות ומגוונות, אחת הפונקציות השימושיות הינה : SUSER_SNAME.

להלן מספר יכולות הפונקציה :
1. הפונקציה מחזירה את ה- log in שמריץ את הפונקציה , לדוגמא:




2. הפונקציה יכולה לתרגם את ה- login security identification number לשם המשתמש , לדוגמא:



ניתן לשלב את הפונקציה כתנאי בתוך פרוצדורה , וניתן לשלב את הפונקציה ב- DEFAULT constraint בתוך טבלה, לדוגמא:


בהצלחה !
http://blogs.microsoft.co.il/blogs/itaib/archive/2010/10/24/suser-sname.aspx

יום חמישי, 29 ביולי 2010

לאיזה PORT אני מאזין ???

שלום רב,

שאלה:
כיצד אני יכול לדעת לאיזה port האינסטנס של ה- sql server שלי מאזין?


תשובה:
ישנן מספר אפשרויות לזהות מהו ה- Port שה- sql server מאזין אליו:

1.registry - אפשרות ראשונה אשר לא מקובלת אך מאוד יעילה הינה דרך ה- registry של שרת ה- sql server.

SQL 2005 :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL.\MSSQLServer\
SuperSocketNetLib\TCP\

SQL 2008 :
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\MSSQL10.\MSSQLServer\
SuperSocketNetLib\TCP\



2. xp_readerrorlog - אפשרות שנייה הינה לקרוא את ה- log של ה- sql server.

בעת העלייה של האינסטנס נרשם לתוך ה- Log ה- Port אליו הוא מאזין. על מנת למצוא את הרשומה המתאימה - תחפשו את הערך "Server is listening on".



3. וכמובן האפשרות המקובלת - SQL Server Configuration Manager - תחת אופציית SQL Server Network Configuration - ניתן לראות את מספר ה- Port תחת הגדרות ה- tcp\ip.


בהצלחה.