Monday, December 06, 2004

Syntactic changes are coming to the SQL Server in-proc provider. Compiling a stored procedure with the latest Dec CTP bits yielded the following message every time I used a method that started with "Get" from SqlContext:

warning CS0618: 'System.Data.SqlServer.SqlContext.GetPipe()' is obsolete: 'Will be removed soon'

Looking further with Reflector, it appears that SqlContext will now expose read-only static properties for Connection, Command, Pipe, etc, rather than using static methods named GetXYZ. So:

GetCommand -> replaced by CreateCommand
GetConnection -> Connection property
GetPipe -> Pipe property
GetTransaction -> Transaction Property
GetTriggerContext -> TriggerContext Property
GetWindowsIdentity -> WindowsIdentity Property

The old methods are still there (for now), but there may need to be a "mass rewrite" of beta code, samples, etc, soon. Just to let you know...

Monday, December 06, 2004 8:19:09 PM (Pacific Standard Time, UTC-08:00)  #    Comments [2]  |  Tracked by:
"seattle hotels" (seattle hotels) [Trackback]
"mesothelioma attorney" (mesothelioma lawsuit) [Trackback]
"fusarium keratitis" (renu recall lawyer) [Trackback]
"mesothlioma" (mesothelioma) [Trackback]
"trasylol" (trasylol) [Trackback]
"The mondego group wiki xwiki buy ultram." (Buy ultram cheapest site.) [Trackback]
"Generic cialis." (Generic cialis.) [Trackback]

Theme design by Jelle Druyts

Pick a theme: