c++ ado

From: yagiroy (alex.smotritsky_at_verizon.net)
Date: 05/30/04


Date: 30 May 2004 05:57:38 -0700

i need to connect to sql server with a db connection string specified
at runtime in my console app. i'm only able to connect when i hard
code the string or assign the hard coded string to a variable and use
it in the app. I'm not able to connect with strings read in from the
command line. I've been playing around with string conversion and
stuff for about 2 days and now i'm looking for an example of this that
works because i'm done playing around. i'm about ready to go to .net
if i can't find an example of how to do this with unmanaged code.



Relevant Pages

  • Results differ between Windows App and Console App. Why???
    ... In the Console App using the same code (except being placed in a string variable) the result ... Dim iMonth As Integer ... Dim iYear As Integer ... Code rewritten to produce same result in Console App: ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Results differ between Windows App and Console App. Why???
    ... In the Console App using the same code (except being placed in a string variable) the result ... Dim iMonth As Integer ... Dim iYear As Integer ...
    (microsoft.public.dotnet.languages.vb)
  • RE: Strange behavour of Process
    ... all exe are console apps that I think are written in Microsoft C (not ... Sub MainAs String) ... Dim fi As New FileInfo ... The console app will hang. ...
    (microsoft.public.dotnet.framework)
  • Re: SendMessage in VB.Net
    ... you need to pass a string to a console app. ... How many command line ... handle of the window which I included in my earlier post. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Server.UrlDecode from console application
    ... Server is property of the Page class and will not exist in a console app. ... -- bruce ... The application pulls a text out of a referring URL string ...
    (microsoft.public.dotnet.framework.aspnet)