Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Executing a stored procedure in the background
Message
 
 
À
10/02/2009 21:55:02
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Stored procedures, Triggers, UDFs
Versions des environnements
SQL Server:
SQL Server 2005
Application:
Web
Divers
Thread ID:
01380765
Message ID:
01380772
Vues:
45
>>How exactly you're doing it? Did you try using SMO object http://msdn.microsoft.com/en-us/library/microsoft.sqlserver.management.smo.backup.aspx ?
>
>No, I am executing the store procedure from the IDbCommand.CommandText and IDbCommand.CommentType properties and then using that into the data adapter object with the ExecuteNonQuery() method.

I saw the SMO method recommended instead. Try that. Otherwise you may want to try to run this command asynchronously. My colleague used some code to do this in one of the ASP.NET pages, but I took it out.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform