-----------------------------------------------------------
New Message on BDOTNET
-----------------------------------------------------------
From: SathishRaj
Message 1 in Discussion
Hi All,
Can anybody give me the following code in C#.
Public Class Query
Private strNlqDefinition
Public Sub New(ByVal NlqDefinition As String)
strNlqDefinition = NlqDefinition
End Sub
Public Function GetNlSqlQuery(ByVal nlEngQuery As String) As String
Dim msEqSession As Object
Dim msEqResponse As Object
'create object
msEqSession = CreateObject("Mseq.Session")
'initialize the file
msEqSession.InitDomain(strNlqDefinition)
'parse eng query and get commonds object
msEqResponse = msEqSession.ParseRequest(nlEngQuery)
'return sql query string
Return msEqResponse.Commands(0).sql.ToString
End Function
End Class
Thanks,
Sathish
____________________________________________
Confidential: This electronic message and all contents contain information
from Syntel, Inc. which may be privileged, confidential or otherwise
protected from disclosure. The information is intended to be for the
addressee only. If you are not the addressee, any disclosure, copy,
distribution or use of the contents of this message is prohibited. If you
have received this electronic message in error, please notify the sender
immediately and destroy the original message and all copies.
-----------------------------------------------------------
To stop getting this e-mail, or change how often it arrives, go to your E-mail
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw
Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help
For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact
If you do not want to receive future e-mail from this MSN group, or if you received
this message by mistake, please click the "Remove" link below. On the pre-addressed
e-mail message that opens, simply click "Send". Your e-mail address will be deleted
from this group's mailing list.
mailto:[EMAIL PROTECTED]