Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SQL CLR Integration

1,419 views

Published on

PASS Treffen der Regionalgruppe Sachsen - Thema: CLR-Integration in SQL Server 2005 oder 2008

Published in: Technology
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m77EgH } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m77EgH } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THAT BOOKS INTO AVAILABLE FORMAT (2019 Update) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download Full doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download EPUB Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... Download doc Ebook here { http://bit.ly/2m6jJ5M } ......................................................................................................................... ......................................................................................................................... ................................................................................................................................... eBook is an electronic version of a traditional print book that can be read by using a personal computer or by using an eBook reader. (An eBook reader can be a software application for use on a computer such as Microsoft's free Reader application, or a book-sized computer that is used solely as a reading device such as Nuvomedia's Rocket eBook.) Users can purchase an eBook on diskette or CD, but the most popular method of getting an eBook is to purchase a downloadable file of the eBook (or other reading material) from a Web site (such as Barnes and Noble) to be read from the user's computer or reading device. Generally, an eBook can be downloaded in five minutes or less ......................................................................................................................... .............. Browse by Genre Available eBooks .............................................................................................................................. Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, ......................................................................................................................... ......................................................................................................................... .....BEST SELLER FOR EBOOK RECOMMEND............................................................. ......................................................................................................................... Blowout: Corrupted Democracy, Rogue State Russia, and the Richest, Most Destructive Industry on Earth,-- The Ride of a Lifetime: Lessons Learned from 15 Years as CEO of the Walt Disney Company,-- Call Sign Chaos: Learning to Lead,-- StrengthsFinder 2.0,-- Stillness Is the Key,-- She Said: Breaking the Sexual Harassment Story That Helped Ignite a Movement,-- Atomic Habits: An Easy & Proven Way to Build Good Habits & Break Bad Ones,-- Everything Is Figureoutable,-- What It Takes: Lessons in the Pursuit of Excellence,-- Rich Dad Poor Dad: What the Rich Teach Their Kids About Money That the Poor and Middle Class Do Not!,-- The Total Money Makeover: Classic Edition: A Proven Plan for Financial Fitness,-- Shut Up and Listen!: Hard Business Truths that Will Help You Succeed, ......................................................................................................................... .........................................................................................................................
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • -- DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT -- ......................................................................................................................... ......................................................................................................................... Download FULL PDF EBOOK here { http://bit.ly/2m6jJ5M } ......................................................................................................................... (Unlimited)
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • DOWNLOAD THIS BOOKS INTO AVAILABLE FORMAT (Unlimited) ......................................................................................................................... ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download Full EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ACCESS WEBSITE for All Ebooks ......................................................................................................................... Download Full PDF EBOOK here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download EPUB Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... Download doc Ebook here { https://tinyurl.com/y6a5rkg5 } ......................................................................................................................... ......................................................................................................................... ......................................................................................................................... .............. Browse by Genre Available eBooks ......................................................................................................................... Art, Biography, Business, Chick Lit, Children's, Christian, Classics, Comics, Contemporary, Cookbooks, Crime, Ebooks, Fantasy, Fiction, Graphic Novels, Historical Fiction, History, Horror, Humor And Comedy, Manga, Memoir, Music, Mystery, Non Fiction, Paranormal, Philosophy, Poetry, Psychology, Religion, Romance, Science, Science Fiction, Self Help, Suspense, Spirituality, Sports, Thriller, Travel, Young Adult,
       Reply 
    Are you sure you want to  Yes  No
    Your message goes here
  • Be the first to like this

SQL CLR Integration

  1. 1. SQL CLR Integration PASS Treffen der Regionalgruppe Sachsen 27.09.2010 Dorrit Riemenschneider
  2. 2. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de > Grundlagen > Sicherheitsbetrachtungen > Schnellanleitung > Beispiele, Beispiele, … • Zeichenfolgenverschlüsselung • Reguläre Ausdrücke • Splitten und Verketten von Zeichenfolgen • Senden von E-Mails • … Agenda 2
  3. 3. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de > SQL 2005 ++ > SQL Server ist Host, .Net ist Gast > Assemblies werden in die Datenbank importiert  • sys.assemblies • sys.assembly_files > Namespace Microsoft.SqlServer.Server > .Net Framework <= 3.5  Grundlagen 3
  4. 4. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Sicherheitsbetrachtungen 4 > Assemblies müssen signiert werden • Alternative: Datenbank als vertrauenswürdig einstufen > Referenzieren von Framework-DLLs • CLR Assembly muss mit PERMISSION_SET=SAFE registriert werden > Referenzieren eigener oder 3rd Party DLLs • Müssen als CLR Assemblies in die Datenbank importiert werden Sicherheitsstufe Zugriff auf… SAFE Ausschließlich eigene Datenbank EXTERNAL_ACCESS Zusätzlich Dateisystem, Registry, Netzwerk UNSAFE Zusätzlich Unmanaged Code
  5. 5. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de > CLR Funktionen aktivieren (1x pro Server) > Erstellen der Assembly in Visual Studio > Importieren in die Datenbank > Erstellen einer CLR Funktion unter Verweis auf die Methode in der .Net Assembly Los geht‘s! 5
  6. 6. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Zeichenfolgenverschlüsselung 6
  7. 7. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de … und natürlich auch Entschlüsselung  7
  8. 8. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Reguläre Ausdrücke 8 > Prüfung, ob Zeichenfolge einem regulären Ausdruck entspricht > Klasse System.Text.RegularExpressions.Regex > Tipp: http://www.regular-expressions.info Beispiel Regulärer Ausdruck PLZ (Deutschland) ^(D-)?d{5}$ Url ^http(s)?://([w-]+.)+[w-]+(/[w-./?%&=]*)?$ E-Mail-Adresse ^[a-zA-Z.-_]+@([a-zA-Z.-_]+.)+[a-zA-Z]{2,4}$ IP-Adresse (lazy) ^b(?:d{1,3}.){3}d{1,3}b$ IP-Adresse (strong) ^b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0- 4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0- 9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)b$
  9. 9. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Reguläre Ausdrücke (E-Mail-Adresse) 9
  10. 10. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Reguläre Ausdrücke (generisches Beispiel) 10
  11. 11. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Splitten von Zeichenfolgen 11 > Transformieren einer durch Separatoren getrennten Zeichenfolge in eine Tabelle
  12. 12. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Splitten von Zeichenfolgen (Fortsetzung) 12
  13. 13. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Verketten von Zeichenfolgen 13 > Realisierung mittels SQL benutzerdefiniertem Aggregat • Separate Klasse pro Aggregat erforderlich > Attribute [Serializable] und [SqlUserDefinedAggregate] > Klasse ableiten von IBinarySerialize • Implementieren der Methoden Read und Write > Weitere zu implementierende Methoden: • Init: Initialize the internal data structures • Accumulate: Accumulate the next value, not if the value is null • Merge: Merge the partially computed aggregate with this aggregate • Terminate: Called at the end of aggregation, to return the results of the aggregation > http://technet.microsoft.com/en-us/library/ms131056%28SQL.90%29.aspx
  14. 14. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Verketten von Zeichenfolgen (Fortsetzung) 14
  15. 15. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de E-Mail senden 15 > Verwendung: • SQL Server Express • (noch) mehr Möglichkeiten als bei xp_sendmail (Konfiguration durch erweiterte Eigenschaften, Anmeldung an SMTP Server möglich)
  16. 16. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de E-Mail senden (Fortsetzung) 16 > Achtung: Sicherheitsstufe muss mindestens EXTERNAL_ACCESS sein 
  17. 17. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de > Abfragen eines Webservice (z.B. Börsenkurse, Währungsumrechnung) > Export einer Tabelle/eines Abfrageergebnisses nach XML oder CSV > SQL Server Reporting Service Berichte als PDF per E-Mail versenden > … Weitere Ideen 17
  18. 18. SeiteCommunardo Software GmbH · Kleiststraße 10 a · D-01129 Dresden/Germany · Fon +49 (0) 351/833 820 · Mail info@communardo.de · www.communardo.de Vielen Dank! 18 > Dorrit.Riemenschneider@Communardo.de > www.communardo.de/techblog/author/dri > www.xing.com/profile/Dorrit_Riemenschneider > twitter.com/sharepoint_team

×