יום ראשון, 16 בנובמבר 2008

Multiple Inserts

כידוע ישנם מספר חידושים ושיפורים בפלטפורמת sql server 2008 . החידושים הינם ברמת ה- agent , t-sql , management studio ועוד.. , בטיפים הקרובים אני אסקור מספר חידושים שימושיות ומעניינים.

והפעם – Multiple Inserts.
בעזרת ה- Multiple Inserts ניתן לייעל את פקודת ה- Insert לטבלה.

לדוגמא במקום לכתוב כך (כמו שכתבנו בגרסאות קודמות) :
INSERT INTO MultipleInsertsCities VALUES (1, N'Eskisehir')
INSERT INTO MultipleInsertsCities VALUES (2, N'Istanbul')
ניתן לכתוב מעכשיו כך:
INSERT INTO MultipleInsertsCities
VALUES (1, N'Eskisehir'), (2, N'Istanbul')
או:
INSERT INTO MultipleInsertsCities (CityId, CityName)
VALUES (3, N'New York'), (4, N'Tokyo')

דוגמא נוספת:
לפני:
INSERT INTO MultipleInsertsCities (CityName) VALUES (N'Bangkok')
INSERT INTO MultipleInsertsCities (CityName) VALUES (N'Lima')
אחרי:
INSERT INTO MultipleInsertsCities (CityName) VALUES (N'Bangkok'), (N'Lima')


שימו לב שמהיום ניתן לשפר את העבודה ולבצע Insert לשני רשומות במקביל, מבלי לכתוב את משפט ה- insert פעמיים.


בהצלחה !!

יום ראשון, 9 בנובמבר 2008

Report Builder 2.0

שלום רב,

לידיעתכם מייקרוסופט שיחררה להורדה את Microsoft SQL Server 2008 Reporting Services Report Builder 2.0:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9f783224-9871-4eea-b1d5-f3140a253db6&displaylang=en


Brief Description:
Report Builder 2.0
Microsoft SQL Server 2008 Report Builder 2.0 provides an intuitive report authoring environment for business and power users.
It supports the full capabilities of SQL Server 2008 Reporting Services. The download provides a stand-alone installer for Report Builder 2.0.

Overview:
Microsoft SQL Server 2008 Reporting Services Report Builder 2.0 delivers an intuitive, Office-like report authoring environment enabling business and power users to leverage their experience with Microsoft Office 2007 products. Microsoft SQL Server 2008 Reporting Services Report Builder 2.0 supports the full capabilities of SQL Server 2008 Reporting Services including:
· Flexible report layout caabilities of SQL Server 2008 Report Definition Language
· Data Visualizations including charts and gauges
· Richly formatted textboxes
· Export to Microsoft Office Word format

Features specific to Report Builder 2.0 are focused on simplifying the process of creating and editing reports and queries and include the following:

· Easy to use wizards for creating table, matrix and chart data regions
· Support for directly opening and editing reports stored on the report server
· Support for using server resources such as shared data sources
· Query designers for multiple data sources including a Microsoft SQL Server-specific query designer