Alex's Weblog

Weblog di Ermanno Goletto (Codename Alex - A Learning EXperience)
posts - 438, comments - 4214, trackbacks - 294

My Links

News

Il blog è stato
trasferito al
 seguente link:


DevAdmin Blog

Add my blog to Live

Foto

Curriculum Vitae


Il contenuto di questo blog e di ciascun post viene fornito “così come é”, senza garanzie, e non conferisce alcun diritto. Questo blog riporta il mio personale pensiero che non riflette necessariamente il pensiero del mio datore di lavoro.

Logo Creative Commons Deed


Logo MCTS

Logo MCSA

Logo MCP

Logo Microsoft Certified Business Management Solutions Professional

Microsoft Certified Business Management Solutions Specialist


Logo UGIdotNET UGIdotNET Contributor


Logo UGISS UGISS Contributor


Logo SysAdmin.it SysAdmin.it Staff


Article Categories

Archives

Post Categories

Blogs

Database

Development

Friends

IT

Knowledge Base

Links

MBS

MCP

MVP Sites

User Groups

Virtualization

Riconoscere una stringa OleDb per SQLServer

Un modo per capire se una stringa OleDb si riferisce a SQLServer è quello di controllarne il provider tramite una regular expression:

Public Overloads Shared Function IsSqlConnectionString(ByVal connectionString As String) As Boolean
            Dim regex As New System.Text.RegularExpressions.Regex("Provider\s*=\s*SQLOLEDB[^;]*;", System.Text.RegularExpressions.RegexOptions.IgnoreCase)
            Return regex.IsMatch(connectionString)
End Function

L'idea è ovviamente esensibile ad altri provider.

Print | posted on domenica 28 marzo 2004 17:11 | Filed Under [ Code & Snippet Database .NET Framework ]

Feedback

Gravatar

# Check Cashing Spring-Valley

We are genuinely savoring looking at your current well crafted content. I do think you would spend much persistence modernizing your blog currently clicks Check Cashing Spring-Valley We are taking a look ahead of time for you to looking at brand-new content.
04/08/2017 22:52 | Pervez
Comments have been closed on this topic.

Powered by:
Powered By Subtext Powered By ASP.NET