Howdy,
No problem!! Why not use xp_cmdshell?
You can use this inbuilt command extension to perform batch type operations in your scripts;
Backup Log MYDB to disk = 'D:\Backup\MYDB.log'
exec xp_cmdshell 'Net Use z: \\Server\Share'
exec xp_cmdshell 'Copy d:\Backup\MYDB.log z:\'
exec...
Hey vongrunt,
Thanks for the advise!! My query finally came back and the execution plan clearly shows the intorduction of the lazy writer and a massively different plan altogether. I'll work on your suggestions and see what comes up!
Thanks!
Hi Jasper,
There are many ways to skin a cat, and here are 2. For your purposes I would really recommend using the function.. though it would depend where you're getting your @@Identity from, I assume your proc must do something?
Functions can be limiting, if the function doesn;t work for you...
Hi guys.
Got a weird one I'm trying to work out...
Selecting top N from a view which has thousands of applicable records.
If I top 700 I get results in 4 seconds, if I top 750+ they never return - So I can't even get a query plan back to see what's different between the 2.
My "where" clause...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.