Re: Simple ADO problem: SOLVED! (1 more question)
From: Chris R. Timmons (crtimmons_at_X_NOSPAM_Xcrtimmonsinc.com)
Date: 04/10/04
- Next message: Abubakar: "Re: C# Language Proposal for 'out' Parameters"
- Previous message: Joerg Jooss: "Re: MemoryStream Performance"
- In reply to: Alex: "Re: Simple ADO problem: SOLVED! (1 more question)"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 10 Apr 2004 02:22:52 -0700
Alex <a@b.c> wrote in
news:oeed70d2l9dgth5720ou9t3p7qpudrg6cn@4ax.com:
> On Fri, 09 Apr 2004 02:15:40 -0700, "Chris R. Timmons"
><crtimmons@X_NOSPAM_Xcrtimmonsinc.com> wrote:
>
>>The \n is causing the error. That puts a newline in the string.
>> Either escape it (\\n), or precede the entire string with the @
>>symbol (e.g. @"Integrated Security;Persist...")
>
> Thank you very much! That's what I get for writing VB for too
> long...
>
> One more question, though. How do I get the host name without
> typing it? If I type it out, no errors, and everything performs
> as expected but if I use "Data Source=localhost" or "Data
> Source=(local)" I get the error again ("SQL Server does not
> exist or access denied.").
Alex,
I'm not sure why the "localhost" or "(local)" name won't work for
you. Here's a Google thread that seems to cover most of the possible
causes:
http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&oe=UTF-
8&threadm=xUxM0SWFEHA.1988%40cpmsftngxa06.phx.gbl&rnum=51&prev=/group
s%3Fas_q%3D%2522sql%2520server%2522%2520(local%2520OR%2520localhost)%
2520connection%26safe%3Dimages%26ie%3DUTF-8%26oe%3DUTF-
8%26as_ugroup%3Dmicrosoft.*%26as_scoring%3Dd%26lr%3D%26num%3D100%26hl
%3Den
or
Hope this helps.
Chris.
-------------
C.R. Timmons Consulting, Inc.
http://www.crtimmonsinc.com/
- Next message: Abubakar: "Re: C# Language Proposal for 'out' Parameters"
- Previous message: Joerg Jooss: "Re: MemoryStream Performance"
- In reply to: Alex: "Re: Simple ADO problem: SOLVED! (1 more question)"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|