Skip to main content

Posts

Schema Compare in Visual Studio: SSDT project vs SQL Azure

Hi All And today  a short post from my friend  Yitzchak Wahnon (@YitzWahnon). He was asked to deploy a DB into SQL Azure, it was DB that already exists their, and i asked him to deploy the changes, and here is What went through: "I was having a problem doing schema compare in SSDT in Visual Studio against a SQL Azure DB. Visual studio threw an unclear error. In the end with stackoverflow I finally found a hint to the problem: You SQL Database Azure connection will timeout if you  exceed your Database Throughput Unit (DTS) limit . This can easily happen if you are using the Basic Service Tier of the SQL Database on Azure. The Basic service tier is capped at 5 Database Throughput Units (5 DTUs), so if you have a lot of comparisons, it may exceed the threshold. Try upgrading to Standard service tier of SQL Database, (which has a threshold limit of 10 DTUs), and see if the problem goes away. http://stackoverflow.com/ questions/26055747/schema- comparis...

So Who are you SQL Azure V12??

שלום רב והיום קצת על הגירסה החדשה הידועה בשם V12. אז על מה מדובר? מה כל כך מיוחד בה? מה היא עושה? מה היא לא עושה? כיצד עובדים עימה? נתחיל מההתחלה - עד היום כשרצית לעבוד ב SQL Azure הייתה גרסה אחת בלבד. היו Tiers שונים, אבל גירסה אחת, כולם היום עובדים על אותה גירסה. גם כאשר פתחו ב Preview דברים חדשים זה היה בתוך הגירסה הרגילה. ואז מיקרוסופט שיחררו הודעה על גירסה חדשה: Preview Available for Latest Version of Azure SQL Database כאשר הנקודות המרכזיות שהוזכרו הן: Easier management of large databases  Support for key programmability functions Up to 100x performance improvements Improved monitoring and troubleshooting New S3 performance level כך סוכמה גירסה זו: I am incredibly excited for you to try this preview which will help you more easily build or migrate more robust SQL-based applications on Azure while gaining the near-zero administration benefits of database-as-a-service. כך התחלתי לבדוק, לבחון ולראות מה יש פה? ראשית, הופתעתי שיש פה versio...

What this new Button:'Open In Visual Studio' in SQL Azure

Hi Today some English in the Post :-) Yesterday when I logged into the new and the Old Azure Portal I saw a new button 'Open In Visual Studio' under the SQL Database tab: I asked myself - is it related to the new announcement about open source and cross platform of .NET.  So I clicked on the button in both the new and the old portal. I was asked to install update 4 for my VS 2013. After this was installed, I again clicked on the new button - the world did not blow up. It appears that it just opens the "SQL Server Object Explorer" with a regular connection to the DB. I do not think its worthwhile to work with this but then I had a brainwave that now I can do comparisons with my code or with other DBs very quickly. So for now its not so important feature, lets see what they will do with it next time. Pini
Hi It was pleasure to speak about SQL Azure here is the slide link: http://www.slideshare.net/PiniKrisher/pass-heb 10x to  @ MariaZakourdaev

What can we do with "Azure Automation"

שלום לכולם פוסט זה נכתב בהשראת פוסט שכתב  JOSEPH IDZIOREK  ממיקרוסופט, שם המאמר: Azure Automation: Your SQL Agent in the Cloud כשקראתי את המאמר הזה פצחתי בריקוד, סוף סוף לא נהייה תלויים במפתחים צהלתי, ועל מה כל המהומה? אין לנו Agent ב SQL Azure. איזה DBA יכול לתפקד ללא Agent? אז עד היום כשרצינו שמשהו ירוץ לפי לוח זמנים ב SQL Azure קבוע, היינו מתחננים למפתחים שיבנו לנו אפליקציה ושתריץ מה שצריך. ועכשיו סוף סוף יש כלי שמריץ סקריפטים של PS כפי שאנו רוצים על בסיס קבוע. בדקתי, בחנתי, ניסיתי וזה עובד ועובד טוב. אולם הבעיה המרכזית כרגע היא שעדיין מדיניות ה Fair Share , מדיניות זו מגבילה הרצות בבסיסי הנתונים עד כחצי שעה, ומדיניות זו עדיין קיימת. כלומר אם אתה רוצה להריץ בניה של אינדקס על טבלה ענקית זה יעוף אחרי כחצי שעה. יש המון פרטים, איך יוצרים, איך בודקים, יש הגדרת הרשאות יש יצירת סקריפט ובדיקה שלו ואז מבצעים Publish ונוצר runbook. ואז ניתן לתת לו לוח זמנים. אני משתמש בו לעידכוני סטטיסטיקות ול reindex לטבלה מאד חשובה, אולם עדיין לטבלא...

New Metric for SQL Azure - DTU

שלום לכולם וכן גם זה סוף סוף הגיע, מה הגיע? מידע - שהיה חסר לנו. אז מה היה חסר לנו? כאשר יצרו ב SQL Azure את 3 השכבות - ההבדלים ביניהם הוגדרו לפי מושג שנקרא DTU - שהיווה שיכלול של טרנזקציות לשניה ועוד מספר מדדים: Service Tier Performance Level DTU Basic   5 Standard S1 20 Standard S2 50 Premium P1 100 Premium P2 200 Premium P3 800 אגב עוד נושא חדש שיהיה החודש זה tier חדש - S0, אבל זה נושא אחר. בקיצור ה DTU שצרכנו לא היה ידוע ולאחרונה הוסיפו אותו למוניטור בפורטל. הנה תמונה של שני בסיסי נתונים באחד הצריכה היא כמעט כל הזמן 100% - מה שאומר שאולי לא תהיה לי ברירה אלא לשנות קוד או לשדרג לשכבה יותר יקרה. הוסיפו מטריקה זו ל monitor שלכם ותהנו. אגב טרם מצאתי את ה View שמכיל מידע זה.

Auditing in SQL Azure - Azure SQL Database

צהריים טובים לאחרונה ניכנס פיצ'ר ממש חשוב, הפיצ'ר קשור ל Audit. כלומר הקלטה של כל מה שעובר מול בסיס הנתונים החל בשינויי סכמה, שליפת data, ושינוי data, הרשאות ובעיות אבטחה, הכל מוקלט. כיצד לבצע enable לפיצ'ר הזה ? כנסו דרך הפורטל החדש תעמדו על בסיס הנתונים בפורטל החדש - קופץ מסך ובו חלקים ניטור וכדומה - שם יש חלק שנקרא Operations. לוחצים עליו ומשם ניתן לבצע enable. כדי לתפוס כל מה שעובר לבסיס הנתונים צריך לשנות חיבור לבסיס הנתונים. תתחברו לבסיס הנתונים דרך ה - connection string  הזה: vj8edro6od.database.windows.net - without auditing vj8edro6od.database. secure .windows.net - with auditing כלומר כל מה שעובר דרך Secure נתפס על ידי שרת הפרוקסי ומאוחסן ב Azure table Storage. כאשר מכאן יש 2 מסלולי תיחקור - אחד ישירות מול הטבלה למשל עם הכלי הנקרא Azure Storage Explorer, ופה מתחקרים את הטבלה עצמה - שימו לב, לא ב SQL. מסלול שני הניתן ע"י מיקרוסופט - מורידים excel template שרק מתחברים ממנו ל טבלה ואז בצורה גרפית יפה וברורה אפשר לראות מה בוצע על ידי מי...