SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 TSQL Script hangs!!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xhostx
Constraint Violating Yak Guru

USA
277 Posts

Posted - 10/03/2012 :  14:28:21  Show Profile  Reply with Quote
Hi all,
I have written a script in TSQL, it does read some values from a registry of computer. I run it from windows command line. Sometimes, it keeps hanging on for a while and takes hours to continue.

Please any hints or suggestions will be appreciated.
Thanks,

--------------------------
Joins are what RDBMS's do for a living

visakh16
Very Important crosS Applying yaK Herder

India
52309 Posts

Posted - 10/03/2012 :  15:28:45  Show Profile  Reply with Quote
do you mean using xp_cmdshell from t-sql?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

xhostx
Constraint Violating Yak Guru

USA
277 Posts

Posted - 10/03/2012 :  15:47:47  Show Profile  Reply with Quote
well, sometimes I user xp_cmdshell or just within a .SQL file I write it like this:
!!bcp ......etc
I'm not sure if it hangs looking for data on the registry or is it something wrong with my way of writing TSQL!
Thanks


--------------------------
Joins are what RDBMS's do for a living
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000