Re: using (local) server on SQL 2K
From: Chris Taylor (chris_taylor_za_at_hotmail.com)
Date: 07/31/04
- Next message: patrick: "Re: using (local) server on SQL 2K"
- Previous message: Cor Ligthert: "Re: how to read excel data into a dataset"
- In reply to: patrick: "using (local) server on SQL 2K"
- Next in thread: patrick: "Re: using (local) server on SQL 2K"
- Reply: patrick: "Re: using (local) server on SQL 2K"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 31 Jul 2004 18:30:21 +0300
Hi Patrick,
You should definately consider putting the connection string in a
configuration file so that it can be changed easily. You can localhost or
127.0.0.1.
Hope this helps
-- Chris Taylor http://dotnetjunkies.com/weblog/chris.taylor "patrick" <patrick@discussions.microsoft.com> wrote in message news:9D27AEBA-4F9E-4C33-8035-79E9881C17AA@microsoft.com... > I am trying to create my first SQL Server 2000 app deployment. What I am concerned about is the app won't be able to connect to another machine via MSDE 2000 once installed because I have my own machine name/SQL server name coded into the connection string. I know how to make the string use variables, but how do I find the right variables for a foreign machine, ie., machine name and server name? > > When I used SQL server 7 or the MSDE version from 1998, I could set my conn str server property to > > server=(local) > > and that would work. But I think I was using ODBC, not OLDB for sqlserver, and it wasn't in .NET. I have never been able to connect to my SQL 2000 using the (local) setting. Why not? None of the books I have says much on this except that I should be able to connect via (local). TIA, psully@nospam.eatel.net > >
- Next message: patrick: "Re: using (local) server on SQL 2K"
- Previous message: Cor Ligthert: "Re: how to read excel data into a dataset"
- In reply to: patrick: "using (local) server on SQL 2K"
- Next in thread: patrick: "Re: using (local) server on SQL 2K"
- Reply: patrick: "Re: using (local) server on SQL 2K"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|