Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Create a view from C# code
Message
 
 
À
17/02/2015 10:03:55
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2014
Application:
Web
Divers
Thread ID:
01615456
Message ID:
01615460
Vues:
44
I know nothing about SSIS package. So I would need:
1. to learn SSIS package
2. how to apply them to the application where I was considering using a view (currently used XML file).
So given (I am sure you have heard this from me before) that I need this ASAP, the SSIS is not practical for me.
Thank you.

>Better idea... create an SSIS package that will run as a scheduled task and recreate the view every day.
>
>>Hi,
>>Can I create a view (dynamically) from C# code? Here is a simple example:
>>DB has a table Equipment with the following columns:
>>Eq_ID Char(15)
>>Eq_Desc Char(40)
>>IncInView Bit
>>
>>I need to make a call from C# (ASP.NET) and create a view that will have the following:
>>Eq_ID
>>Eq_Desc
>>Only those rows that have InInView set to 1
>>And name this view, for example, EQ_2015_02_17
>>
>>Ideally I would like this view to "auto destroy" the next day.
>>
>>TIA for any help.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform