Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Huge T-SQL - Out of Memory

Author  Topic 

flamz
Starting Member

21 Posts

Posted - 2008-03-25 : 11:15:16
Hello,
I have a very big T-SQL script (~24mb) and I need the SQL Server on my hosted site to execute it.

Right now, I have a web page that uses Sql.Connection.ExecuteNonQuery () to do it, but the .NET process runs out of memory when I load the file into a C# string.

How would I go about executing this T-SQL script on the server?
Is there such a command:
EXECUTE SCRIPT "myscript.sql" FROM DISC
?

thanks.

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2008-03-25 : 11:16:50
See here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=99084



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -