Microsoft
Software
Hardware
Network
Question : Connect to SQL Server database dynamically with ASP.net
Hi Experts
I generally create my database connections by creating a strongly typed dataset using the dataset designer in Visual Studio. In this instance I have multiple databases with the same structure and so want to be able to create a single dataset that utilises this structure, but set the actual database that it connects to depending on a passed variable.
So if I call a function like:
oDataToProcess.AddtoDataba
se("databa
se name")
I want to be able to draw on the same dataset but apply it to the SQL Server database name passed in the command.
I am coding in VB.NET
many thanks
Stewart
Answer : Connect to SQL Server database dynamically with ASP.net
Hi there, I think this may be what you need:
http://weblogs.asp.net/raj
bk/archive
/2007/05/2
6/changing
-the-
conne
ctionstrin
g-of-a-wiz
ard-genera
ted-tablea
dapter-at-
runtime-fr
om-an-obje
ctdatasour
ce.aspx
Random Solutions
Notes 8.5.1 - Increasing Java Heap Size - No com.ibm.rcp.j2se.<version>
file
ati2dvag blue screen on ibm thinkpad T41 help
Domain Controller rename and IP change
'AddressOf' expression cannot be converted to 'Integer' because 'Integer' is not a delegate type.
Create a subnet for IT dept with 5 people
Auto file move and rename
Microsoft Information Store stalling issues
Issue with Thecus 1u4500 not booting
return double array in Delphi call to c++
Access 2007, form datasheet view, change display property of an element based on another element in the record