-
as seen on Server Fault
- Search for 'Server Fault'
Hello. We read a number of things about referencing SQL Server SMO from Visual Studio but still don't have the definite answers we need. So, here it goes...
A number of years ago we created a C# application using Visual Studio 2005 and SQL Server 2005. In that application, we added .NET references…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hello,
I'm build a web page in ASP.net is supposed to work just like Query Analyzer. It has basically a textarea to input the sql command, and an Execute button.
I'm using SMO to execute the command in the database, as follows:
//Create object SMO
Microsoft.SqlServer.Management.Smo.Server server…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
It appears there is a memory leak in the Status property of the SMO Database class.
Using the code below with SQL 2005 SMO libraries works fine, but as soon as you use SQL 2008, the memory leak appears....
Any other good way of getting the database staus in SQL 2008?
A quick example that magnifies…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've created an app that connects remotely to SQL Server 2008. SQL connections work and all traditional oCommand.ExecuteNonQuery(), work great!
But my SMO class using server.ConnectionContext.ExecuteNonQuery(scriptfile);
ERROR: missing batch parsing.dll .
I can't install these independent utils…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I am successfully using Powershell with SMO to backup most databases. However, I have several large databases in which I receive a "timeout" error "System.Data.SqlClient.SqlException: Timeout expired". The timout consistently occurs at 10 minutes. I have tried setting ConnectionContext.StatementTimeout…
>>> More