852efb915f0e02e1e28197206c345e13bd0f664a
FAQ/switching-databases-via-code.md
| ... | ... | @@ -0,0 +1,16 @@ |
| 1 | +#Switching databases via code |
|
| 2 | + |
|
| 3 | +##Database Level Access |
|
| 4 | + |
|
| 5 | +Izenda Reports can connect to a database on a per-user basis. In order to connect to multiple data sources, you must create a view which draws information from those data sources. Izenda Reports can then connect to the database which contains the view and stream data in to create a report. Switching database is done via code. |
|
| 6 | + |
|
| 7 | +You can dynamically set the database access on a per-user basis using Izenda Reports: |
|
| 8 | + |
|
| 9 | +C♯ |
|
| 10 | +```csharp |
|
| 11 | +Izenda.AdHoc.AdHocContext.Driver.SqlServerConnectionString = @"server==(local);database==Northwind;Trusted_Connection==True;"; |
|
| 12 | +``` |
|
| 13 | +VB.NET |
|
| 14 | +```visualbasic |
|
| 15 | +Izenda.AdHoc.AdHocContext.Driver.SqlServerConnectionString = "server==(local);database==Northwind;Trusted_Connection==True;" |
|
| 16 | +``` |
|
| ... | ... | \ No newline at end of file |
switching-databases-via-code.md
| ... | ... | @@ -1,16 +0,0 @@ |
| 1 | -#Switching databases via code |
|
| 2 | - |
|
| 3 | -##Database Level Access |
|
| 4 | - |
|
| 5 | -Izenda Reports can connect to a database on a per-user basis. In order to connect to multiple data sources, you must create a view which draws information from those data sources. Izenda Reports can then connect to the database which contains the view and stream data in to create a report. Switching database is done via code. |
|
| 6 | - |
|
| 7 | -You can dynamically set the database access on a per-user basis using Izenda Reports: |
|
| 8 | - |
|
| 9 | -C♯ |
|
| 10 | -```csharp |
|
| 11 | -Izenda.AdHoc.AdHocContext.Driver.SqlServerConnectionString = @"server==(local);database==Northwind;Trusted_Connection==True;"; |
|
| 12 | -``` |
|
| 13 | -VB.NET |
|
| 14 | -```visualbasic |
|
| 15 | -Izenda.AdHoc.AdHocContext.Driver.SqlServerConnectionString = "server==(local);database==Northwind;Trusted_Connection==True;" |
|
| 16 | -``` |
|
| ... | ... | \ No newline at end of file |