The main issue is suppose i have two databases and when
user wants data for last 10 years data,it has to connect to
one database and if user wants data for the past 1 year,it
has to connect to the other database.like that .can i
create two data sources in one properties file.is it
possilbe.if so provide me the explaination.Thanks in
advance.
Answer / vamshi krishna
from .net technology point of view, u can use multipls
connectionstrings to connect to the database.you can define
that in web.config file under appSettings as follows....
<connectionStrings>
<clear/>
<!--Report Data base Connection String -->
<add name="ReportingConnection"
connectionString="Server=192.168.1.13;Database=Pegasus;UID=p
egasus;PWD=pegasus;Pooling=true;Max Pool
Size=300;Connection Timeout=60"/>
<!-- Data base Connection String to the
pegasus admin database -->
<add name="PegasusAdminConnection"
connectionString="Server=192.168.1.13;Database=Pegasus;UID=p
egasus;PWD=pegasus;Pooling=true;Max Pool
Size=300;Connection Timeout=60"/>
<!-- Data base Connection String to the
pegasus course database (admin database course database
role. so, same as admin db conn string)-->
<add name="PegasusDBConnection1"
connectionString="Server=192.168.1.13;Database=Pegasus;UID=p
egasus;PWD=pegasus;Pooling=true;Max Pool
Size=300;Connection Timeout=60"/>
<!-- Data base Connection String to the
pegasus course 1 database -->
<add name="PegasusDBConnection2"
connectionString="Server=192.168.1.13;Database=Pegasus;UID=p
egasus;PWD=pegasus;Pooling=true;Max Pool
Size=300;Connection Timeout=60"/>
<!-- Data base Connection String to the
pegasus course 2 database -->
<add name="PegasusDBConnection3"
connectionString="Server=192.168.1.13;Database=Pegasus;UID=p
egasus;PWD=pegasus;Pooling=true;Max Pool
Size=300;Connection Timeout=60"/>
</connectionStrings>
| Is This Answer Correct ? | 0 Yes | 1 No |
do we need to put gravel stone of size 2 inch before laying pcc
In a small scale residential building 13M rod cut by column post. that rod divided by 2 nos or 3nos which is best?
does we count column area in carpet area?
what is advantages and disadv.of e-banking.
the desirable depth of a wardrobe fore hanging cloths
i am looking for Final year Architecture Designer or any home based project worker in chennai. contact 9500092822
Name your favorite architects and what do you admire about their work?
what was the most complex thing you worked on?
Who is responsible for territory? can you please help me in getting the answer for this
what are the different types of dimensions
what type of mapping is most used in maya production house?
I am building a house in Iowa by the strict requirements and dimensionality of Sthapatya-ved. As you probably know, these dimensions are specific to certain harmonic structures generated by the architectural style and my astologic chart. The outer walls will be approximately 10.5 inches thick. I would like to use some sort of straw/clay mixture, but I also live in a very cold climate. It is not unusual to have -10 degree temperatures for several weeks on end. I have friends who built with rammed earth and their environment is miserable during winter, always fighting the fly-wheeling of energy in the earth structure. Can you shed any light on the true insulation value of a straw clay mixture in this climate.