473,378 Members | 1,207 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

Connection strings

OK. For an n-tier architecture, where is the best place to store the
connection string for the DA layer? I don't want to use the reg. Can't use
a app.config for a dll. For other projects I exposed the DA layer through a
we service and store the connection string in the web.config file. Any
recommendations? Thanks.
Nov 20 '05 #1
7 1661
Hi Gary,

You can try to put the connection string in the app.config file of an .exe
file. When calling the DataAccess layer, you can pass the string as a
parameter. Or you can save the connection string in a text or XML file,
since it's just a string.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| Reply-To: "Gary Brizard" <gb******@palacasino.com>
| From: "Gary Brizard" <gb******@palacasino.com>
| Subject: Connection strings
| Date: Tue, 14 Oct 2003 15:42:46 -0700
| Lines: 7
| Organization: Pala Casino
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 216.190.36.99
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
8.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146738
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| OK. For an n-tier architecture, where is the best place to store the
| connection string for the DA layer? I don't want to use the reg. Can't
use
| a app.config for a dll. For other projects I exposed the DA layer
through a
| we service and store the connection string in the web.config file. Any
| recommendations? Thanks.
|
|
|

Nov 20 '05 #2
Hi Gary, Kevin's idea of passing the Connection String as a Parameter is a
very good way of passing information as it reduces the degree of 'surprise'
in the DA behaviour and also gives the consumer of the DA more control.

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:Qg**************@cpmsftngxa06.phx.gbl...
Hi Gary,

You can try to put the connection string in the app.config file of an .exe
file. When calling the DataAccess layer, you can pass the string as a
parameter. Or you can save the connection string in a text or XML file,
since it's just a string.

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| Reply-To: "Gary Brizard" <gb******@palacasino.com>
| From: "Gary Brizard" <gb******@palacasino.com>
| Subject: Connection strings
| Date: Tue, 14 Oct 2003 15:42:46 -0700
| Lines: 7
| Organization: Pala Casino
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: 216.190.36.99
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0 8.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146738
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| OK. For an n-tier architecture, where is the best place to store the
| connection string for the DA layer? I don't want to use the reg. Can't
use
| a app.config for a dll. For other projects I exposed the DA layer
through a
| we service and store the connection string in the web.config file. Any
| recommendations? Thanks.
|
|
|

Nov 20 '05 #3
Thanks Nice.

Gary, I've found an article in MSDN which contains how to store connection
string in a .NET data access architecture.

Please refer to the following link:

http://msdn.microsoft.com/library/de...us/dnbda/html/
daag.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nice Chap" <Ni******@PlasmaDyne.com>
| References: <eo**************@tk2msftngp13.phx.gbl>
<Qg**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Connection strings
| Date: Wed, 15 Oct 2003 14:37:23 +0100
| Lines: 52
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <el**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146865
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi Gary, Kevin's idea of passing the Connection String as a Parameter is a
| very good way of passing information as it reduces the degree of
'surprise'
| in the DA behaviour and also gives the consumer of the DA more control.
|
| "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| news:Qg**************@cpmsftngxa06.phx.gbl...
| > Hi Gary,
| >
| > You can try to put the connection string in the app.config file of an
.exe
| > file. When calling the DataAccess layer, you can pass the string as a
| > parameter. Or you can save the connection string in a text or XML file,
| > since it's just a string.
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | Reply-To: "Gary Brizard" <gb******@palacasino.com>
| > | From: "Gary Brizard" <gb******@palacasino.com>
| > | Subject: Connection strings
| > | Date: Tue, 14 Oct 2003 15:42:46 -0700
| > | Lines: 7
| > | Organization: Pala Casino
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 216.190.36.99
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
| > 8.phx.gbl!tk2msftngp13.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146738
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | OK. For an n-tier architecture, where is the best place to store the
| > | connection string for the DA layer? I don't want to use the reg.
Can't
| > use
| > | a app.config for a dll. For other projects I exposed the DA layer
| > through a
| > | we service and store the connection string in the web.config file.
Any
| > | recommendations? Thanks.
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #4
Kevin, thanks for the link but unfortunately the page has restricted access.
Can you kindly copy and paste the article onto here pl ?

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:PL**************@cpmsftngxa06.phx.gbl...
Thanks Nice.

Gary, I've found an article in MSDN which contains how to store connection
string in a .NET data access architecture.

Please refer to the following link:

http://msdn.microsoft.com/library/de...us/dnbda/html/ daag.asp

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nice Chap" <Ni******@PlasmaDyne.com>
| References: <eo**************@tk2msftngp13.phx.gbl>
<Qg**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Connection strings
| Date: Wed, 15 Oct 2003 14:37:23 +0100
| Lines: 52
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <el**************@TK2MSFTNGP11.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146865
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Hi Gary, Kevin's idea of passing the Connection String as a Parameter is a | very good way of passing information as it reduces the degree of
'surprise'
| in the DA behaviour and also gives the consumer of the DA more control.
|
| "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| news:Qg**************@cpmsftngxa06.phx.gbl...
| > Hi Gary,
| >
| > You can try to put the connection string in the app.config file of an
exe
| > file. When calling the DataAccess layer, you can pass the string as a
| > parameter. Or you can save the connection string in a text or XML file, | > since it's just a string.
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | Reply-To: "Gary Brizard" <gb******@palacasino.com>
| > | From: "Gary Brizard" <gb******@palacasino.com>
| > | Subject: Connection strings
| > | Date: Tue, 14 Oct 2003 15:42:46 -0700
| > | Lines: 7
| > | Organization: Pala Casino
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: 216.190.36.99
| > | Path:
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0 | > 8.phx.gbl!tk2msftngp13.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146738 | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | OK. For an n-tier architecture, where is the best place to store the | > | connection string for the DA layer? I don't want to use the reg.
Can't
| > use
| > | a app.config for a dll. For other projects I exposed the DA layer
| > through a
| > | we service and store the connection string in the web.config file.
Any
| > | recommendations? Thanks.
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #5
Hi Nice,

It was too long and contains many images. I think you can search in
http://msdn.microsoft.com for ".NET Data Access Architecture Guide".

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nice Chap" <Ni******@PlasmaDyne.com>
| References: <eo**************@tk2msftngp13.phx.gbl>
<Qg**************@cpmsftngxa06.phx.gbl>
<el**************@TK2MSFTNGP11.phx.gbl>
<PL**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Connection strings
| Date: Thu, 16 Oct 2003 08:45:07 +0100
| Lines: 105
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u$**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:147200
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Kevin, thanks for the link but unfortunately the page has restricted
access.
| Can you kindly copy and paste the article onto here pl ?
|
| "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| news:PL**************@cpmsftngxa06.phx.gbl...
| > Thanks Nice.
| >
| > Gary, I've found an article in MSDN which contains how to store
connection
| > string in a .NET data access architecture.
| >
| > Please refer to the following link:
| >
| >
|
http://msdn.microsoft.com/library/de...us/dnbda/html/
| > daag.asp
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | From: "Nice Chap" <Ni******@PlasmaDyne.com>
| > | References: <eo**************@tk2msftngp13.phx.gbl>
| > <Qg**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Connection strings
| > | Date: Wed, 15 Oct 2003 14:37:23 +0100
| > | Lines: 52
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <el**************@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146865
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Hi Gary, Kevin's idea of passing the Connection String as a Parameter
is
| a
| > | very good way of passing information as it reduces the degree of
| > 'surprise'
| > | in the DA behaviour and also gives the consumer of the DA more
control.
| > |
| > | "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| > | news:Qg**************@cpmsftngxa06.phx.gbl...
| > | > Hi Gary,
| > | >
| > | > You can try to put the connection string in the app.config file of
an
| > exe
| > | > file. When calling the DataAccess layer, you can pass the string as
a
| > | > parameter. Or you can save the connection string in a text or XML
| file,
| > | > since it's just a string.
| > | >
| > | > Kevin Yu
| > | > =======
| > | > "This posting is provided "AS IS" with no warranties, and confers no
| > | > rights."
| > | >
| > | > --------------------
| > | > | Reply-To: "Gary Brizard" <gb******@palacasino.com>
| > | > | From: "Gary Brizard" <gb******@palacasino.com>
| > | > | Subject: Connection strings
| > | > | Date: Tue, 14 Oct 2003 15:42:46 -0700
| > | > | Lines: 7
| > | > | Organization: Pala Casino
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | NNTP-Posting-Host: 216.190.36.99
| > | > | Path:
| > | >
| > |
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
| > | > 8.phx.gbl!tk2msftngp13.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.vb:146738
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > |
| > | > | OK. For an n-tier architecture, where is the best place to store
| the
| > | > | connection string for the DA layer? I don't want to use the reg.
| > Can't
| > | > use
| > | > | a app.config for a dll. For other projects I exposed the DA layer
| > | > through a
| > | > | we service and store the connection string in the web.config file.
| > Any
| > | > | recommendations? Thanks.
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #6
Thanks Kevin...

"Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
news:PA**************@cpmsftngxa06.phx.gbl...
Hi Nice,

It was too long and contains many images. I think you can search in
http://msdn.microsoft.com for ".NET Data Access Architecture Guide".

Kevin Yu
=======
"This posting is provided "AS IS" with no warranties, and confers no
rights."

--------------------
| From: "Nice Chap" <Ni******@PlasmaDyne.com>
| References: <eo**************@tk2msftngp13.phx.gbl>
<Qg**************@cpmsftngxa06.phx.gbl>
<el**************@TK2MSFTNGP11.phx.gbl>
<PL**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Connection strings
| Date: Thu, 16 Oct 2003 08:45:07 +0100
| Lines: 105
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <u$**************@TK2MSFTNGP12.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:147200
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Kevin, thanks for the link but unfortunately the page has restricted
access.
| Can you kindly copy and paste the article onto here pl ?
|
| "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| news:PL**************@cpmsftngxa06.phx.gbl...
| > Thanks Nice.
| >
| > Gary, I've found an article in MSDN which contains how to store
connection
| > string in a .NET data access architecture.
| >
| > Please refer to the following link:
| >
| >
|
http://msdn.microsoft.com/library/de...us/dnbda/html/ | > daag.asp
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | From: "Nice Chap" <Ni******@PlasmaDyne.com>
| > | References: <eo**************@tk2msftngp13.phx.gbl>
| > <Qg**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Connection strings
| > | Date: Wed, 15 Oct 2003 14:37:23 +0100
| > | Lines: 52
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <el**************@TK2MSFTNGP11.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:146865 | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Hi Gary, Kevin's idea of passing the Connection String as a Parameter is
| a
| > | very good way of passing information as it reduces the degree of
| > 'surprise'
| > | in the DA behaviour and also gives the consumer of the DA more
control.
| > |
| > | "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| > | news:Qg**************@cpmsftngxa06.phx.gbl...
| > | > Hi Gary,
| > | >
| > | > You can try to put the connection string in the app.config file of
an
| > exe
| > | > file. When calling the DataAccess layer, you can pass the string as a
| > | > parameter. Or you can save the connection string in a text or XML
| file,
| > | > since it's just a string.
| > | >
| > | > Kevin Yu
| > | > =======
| > | > "This posting is provided "AS IS" with no warranties, and confers no | > | > rights."
| > | >
| > | > --------------------
| > | > | Reply-To: "Gary Brizard" <gb******@palacasino.com>
| > | > | From: "Gary Brizard" <gb******@palacasino.com>
| > | > | Subject: Connection strings
| > | > | Date: Tue, 14 Oct 2003 15:42:46 -0700
| > | > | Lines: 7
| > | > | Organization: Pala Casino
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | NNTP-Posting-Host: 216.190.36.99
| > | > | Path:
| > | >
| > |
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0 | > | > 8.phx.gbl!tk2msftngp13.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.vb:146738
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > |
| > | > | OK. For an n-tier architecture, where is the best place to store | the
| > | > | connection string for the DA layer? I don't want to use the reg. | > Can't
| > | > use
| > | > | a app.config for a dll. For other projects I exposed the DA layer | > | > through a
| > | > | we service and store the connection string in the web.config file. | > Any
| > | > | recommendations? Thanks.
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #7
You're welcome!

--------------------
| From: "Nice Chap" <Ni******@PlasmaDyne.com>
| References: <eo**************@tk2msftngp13.phx.gbl>
<Qg**************@cpmsftngxa06.phx.gbl>
<el**************@TK2MSFTNGP11.phx.gbl>
<PL**************@cpmsftngxa06.phx.gbl>
<u$**************@TK2MSFTNGP12.phx.gbl>
<PA**************@cpmsftngxa06.phx.gbl>
| Subject: Re: Connection strings
| Date: Thu, 16 Oct 2003 11:20:28 +0100
| Lines: 161
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <eN**************@TK2MSFTNGP09.phx.gbl>
| Newsgroups: microsoft.public.dotnet.languages.vb
| NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP09.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:147232
| X-Tomcat-NG: microsoft.public.dotnet.languages.vb
|
| Thanks Kevin...
|
| "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| news:PA**************@cpmsftngxa06.phx.gbl...
| > Hi Nice,
| >
| > It was too long and contains many images. I think you can search in
| > http://msdn.microsoft.com for ".NET Data Access Architecture Guide".
| >
| > Kevin Yu
| > =======
| > "This posting is provided "AS IS" with no warranties, and confers no
| > rights."
| >
| > --------------------
| > | From: "Nice Chap" <Ni******@PlasmaDyne.com>
| > | References: <eo**************@tk2msftngp13.phx.gbl>
| > <Qg**************@cpmsftngxa06.phx.gbl>
| > <el**************@TK2MSFTNGP11.phx.gbl>
| > <PL**************@cpmsftngxa06.phx.gbl>
| > | Subject: Re: Connection strings
| > | Date: Thu, 16 Oct 2003 08:45:07 +0100
| > | Lines: 105
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | Message-ID: <u$**************@TK2MSFTNGP12.phx.gbl>
| > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| > | Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
| > | Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.vb:147200
| > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > |
| > | Kevin, thanks for the link but unfortunately the page has restricted
| > access.
| > | Can you kindly copy and paste the article onto here pl ?
| > |
| > | "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| > | news:PL**************@cpmsftngxa06.phx.gbl...
| > | > Thanks Nice.
| > | >
| > | > Gary, I've found an article in MSDN which contains how to store
| > connection
| > | > string in a .NET data access architecture.
| > | >
| > | > Please refer to the following link:
| > | >
| > | >
| > |
| >
|
http://msdn.microsoft.com/library/de...us/dnbda/html/
| > | > daag.asp
| > | >
| > | > Kevin Yu
| > | > =======
| > | > "This posting is provided "AS IS" with no warranties, and confers no
| > | > rights."
| > | >
| > | > --------------------
| > | > | From: "Nice Chap" <Ni******@PlasmaDyne.com>
| > | > | References: <eo**************@tk2msftngp13.phx.gbl>
| > | > <Qg**************@cpmsftngxa06.phx.gbl>
| > | > | Subject: Re: Connection strings
| > | > | Date: Wed, 15 Oct 2003 14:37:23 +0100
| > | > | Lines: 52
| > | > | X-Priority: 3
| > | > | X-MSMail-Priority: Normal
| > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | Message-ID: <el**************@TK2MSFTNGP11.phx.gbl>
| > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | NNTP-Posting-Host: news.lynxfs.net 193.130.133.162
| > | > | Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
| > | > | Xref: cpmsftngxa06.phx.gbl
| microsoft.public.dotnet.languages.vb:146865
| > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > |
| > | > | Hi Gary, Kevin's idea of passing the Connection String as a
| Parameter
| > is
| > | a
| > | > | very good way of passing information as it reduces the degree of
| > | > 'surprise'
| > | > | in the DA behaviour and also gives the consumer of the DA more
| > control.
| > | > |
| > | > | "Kevin Yu [MSFT]" <v-****@online.microsoft.com> wrote in message
| > | > | news:Qg**************@cpmsftngxa06.phx.gbl...
| > | > | > Hi Gary,
| > | > | >
| > | > | > You can try to put the connection string in the app.config file
of
| > an
| > | > exe
| > | > | > file. When calling the DataAccess layer, you can pass the string
| as
| > a
| > | > | > parameter. Or you can save the connection string in a text or
XML
| > | file,
| > | > | > since it's just a string.
| > | > | >
| > | > | > Kevin Yu
| > | > | > =======
| > | > | > "This posting is provided "AS IS" with no warranties, and
confers
| no
| > | > | > rights."
| > | > | >
| > | > | > --------------------
| > | > | > | Reply-To: "Gary Brizard" <gb******@palacasino.com>
| > | > | > | From: "Gary Brizard" <gb******@palacasino.com>
| > | > | > | Subject: Connection strings
| > | > | > | Date: Tue, 14 Oct 2003 15:42:46 -0700
| > | > | > | Lines: 7
| > | > | > | Organization: Pala Casino
| > | > | > | X-Priority: 3
| > | > | > | X-MSMail-Priority: Normal
| > | > | > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| > | > | > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| > | > | > | Message-ID: <eo**************@tk2msftngp13.phx.gbl>
| > | > | > | Newsgroups: microsoft.public.dotnet.languages.vb
| > | > | > | NNTP-Posting-Host: 216.190.36.99
| > | > | > | Path:
| > | > | >
| > | > |
| > | >
| > |
| >
|
cpmsftngxa06.phx.gbl!TK2MSFTNGXA06.phx.gbl!TK2MSFT NGXA05.phx.gbl!TK2MSFTNGP0
| > | > | > 8.phx.gbl!tk2msftngp13.phx.gbl
| > | > | > | Xref: cpmsftngxa06.phx.gbl
| > | microsoft.public.dotnet.languages.vb:146738
| > | > | > | X-Tomcat-NG: microsoft.public.dotnet.languages.vb
| > | > | > |
| > | > | > | OK. For an n-tier architecture, where is the best place to
| store
| > | the
| > | > | > | connection string for the DA layer? I don't want to use the
| reg.
| > | > Can't
| > | > | > use
| > | > | > | a app.config for a dll. For other projects I exposed the DA
| layer
| > | > | > through a
| > | > | > | we service and store the connection string in the web.config
| file.
| > | > Any
| > | > | > | recommendations? Thanks.
| > | > | > |
| > | > | > |
| > | > | > |
| > | > | >
| > | > |
| > | > |
| > | > |
| > | >
| > |
| > |
| > |
| >
|
|
|

Nov 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: JWM | last post by:
I am trying to implement Oracle connection pooling for the following code, which was written by someone else. Here is my main question -- this java file creates code that is executed every hour,...
4
by: Matthew Wells | last post by:
FIRST OF ALL, I APPRECIATE PEOPLE SENDIUNG ME LINKS TO WEB SITES FOR CONNECTION STRINGS BUT AS I'VE SAID BEFORE THAT IS NOT WHAT I NEED. I CAN EASILY OPEN AN ADO CONNECTION OBJECT TO AS400. I...
1
by: stewart | last post by:
I've got the standard SqlCacheDependency working just fine , ie. I've defined (and encrypted) the connectionStrings section in the web.config, and I've also defined an an sqlCacheDependency in the...
14
by: WebMatrix | last post by:
Hello, I have developed a web application that connects to 2 different database servers. The connection strings with db username + password are stored in web.config file. After a code review,...
4
by: Matt Colegrove | last post by:
I'm working on a web app that is published to a hosting service. I'm developing it on my local PC with VS 2005 and SQL Express. The hosting service DB is SQL Server 2000. I have two...
5
by: Matt | last post by:
Hello, What is the best way to handle the database connection string for a class library project that will be compiled and used as a .dll? This .dll will be accessed via classic ASP and in...
3
by: Harry Strybos | last post by:
Hi All I have a really strange problem occurring in my application. When I read in the application settings for connection strings the following happens: Here are my connection string settings...
9
by: =?Utf-8?B?Vmlua2k=?= | last post by:
Hello Everyone, I have a question about storing the connection strings to the database in a config file or database. My manager wants me to store all the connection strings in a database, but I...
2
by: Johnson | last post by:
I'm trying to fix a "sub optimal" situation with respect to connection string management. Your thoughtful responses will be appreciated. I just started with a new client who has a bunch of legacy...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.