Viewing 15 posts - 166 through 180 (of 337 total)
What this proc really does is get details for various amounts of orders (Could be 1 or 1000) and build a @Body(varchar) so I can write it to a txt...
March 25, 2008 at 6:31 am
Both Cursors call data from different tables than the inserted/updated table.
For some reason it won't update the row/s that were inserted within that currrent cursor. If I write a generic...
March 25, 2008 at 6:17 am
Okay here is the gist of it. In the nested cursor I am updating the same table that the main cursor inserted into. This happens if there is bad data...
March 25, 2008 at 5:55 am
It's a lot of code. You really don't want to go thru all of it. I'll post code that essential does the same thing.
March 25, 2008 at 5:40 am
Thanks for the replies.
Yeah I noticed the missing WHERE Clause in the update statement.
I've used similiar code and it hasn't generated any deadlocks that I was aware of. If it...
March 18, 2008 at 6:40 am
Okay I found the answer to the next line problem... I wasn't including Char(10) with my CHar(13) at the end of my lines.
Char(13) will produce a new line in...
February 29, 2008 at 2:35 pm
Okay so I found out some more info about sp_OACreate and the methods...
I was able to write a txt file with this using my @Body output param. The only problem...
February 29, 2008 at 2:27 pm
Hallelujah!!!!
That worked!!!
Thanks to all that helped.
February 27, 2008 at 10:10 am
Mr. Jones,
Thanks for the reply.
I tried the DOS shortname and it didn't work.
EXEC master..xp_cmdshell 'osql -E -Q"select top 1 * from t_Table"-o \\MachineName\c$\ToDo~1\output.txt'
I got the Usage Flags...
February 27, 2008 at 5:44 am
Ziminski,
After I read your suggestion I did try the > (redirection) symbol.
Not sure if my code is correct:
EXEC master..xp_cmdshell 'osql -E -Q"select top 1 * from t_Table"-o >\\MachineName\c$\To Do\output.txt' ...
February 27, 2008 at 5:38 am
Thanks for the reply.
I noticed you could create a txt file that way during my research. Problem is that's a bit to simple for what I'm trying to do. I...
February 26, 2008 at 1:44 pm
Thanks for the reply....
I actually just tried the CD command without quotes and it worked.
C:\>CD documents and settings\all users
it also works with quotes:
C:\>CD "documents and settings\all users"
I'm on XP SP2.
I...
February 26, 2008 at 9:30 am
Lester thanks for the reply.
Yeah I tried it before by declaring it in the OSQL command and it worked. I was hoping there was another way. Not sure why...
February 26, 2008 at 5:04 am
Not sure exactly what your trying to accomplish but I just got done writing a Phoentic Name search that our employees use to find existing customers in our system...
They can...
February 19, 2008 at 2:31 pm
Thanks for the reply.
I had to figure out how to use the option first 🙂
That worked. It resulted in a query of about 1 sec again.
Thanks!
Now my question...
January 2, 2008 at 2:36 pm
Viewing 15 posts - 166 through 180 (of 337 total)