using osql to apply SPs in mutiple threads
Hello,
I got a weird problem when I was using osql to apply scripts for msde
database in multiple threads mode. Sometime 2 sps were missing during
the whole apply process, sometime not, and seems like only those two
SPs met the problem. No error was appeared. Did anyone meet same
problem before? Or any possible solutions?
Thank you very much! 4 1884
topjun (li***@shaw.ca) writes: using osql to apply SPs in mutiple threads Hello,
I got a weird problem when I was using osql to apply scripts for msde database in multiple threads mode. Sometime 2 sps were missing during the whole apply process, sometime not, and seems like only those two SPs met the problem. No error was appeared. Did anyone meet same problem before? Or any possible solutions?
Maybe I have missed something, but what do you mean with "multiple
threads mode"?
Did you save any log files from your scripts? They might include something
interesting.
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
Oh, I meant "multiple threads mode" that I apply scripts using osql in
multiple threads at the same time to a msde database. In the output log
file, there is no error present, just a blank empty file.
P.S. In single thread applying script, there seems fine and never had
any problem happened.
Thank you very much
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jun Li (li***@shaw.ca) writes: Oh, I meant "multiple threads mode" that I apply scripts using osql in multiple threads at the same time to a msde database. In the output log file, there is no error present, just a blank empty file.
P.S. In single thread applying script, there seems fine and never had any problem happened.
So you have split up the creation of stored procedures into several
scripts, and then you run these scripts in parallel by several invocations
of OSQL?
I don't see why this would cause any problems. Then again, I don't know
what's in those scripts.
--
Erland Sommarskog, SQL Server MVP, so****@algonet. se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
Oh, I meant "multiple threads mode" that I apply scripts using osql in
multiple threads at the same time to a msde database. In the output log
file, there is no error present, just a blank empty file.
P.S. In single thread applying script, there seems fine and never had
any problem happened.
Thank you very much
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it! This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Ajay Garg |
last post by:
I am running the following OSQL command and capturing the return code
for the error .Whenver i have an error like server not exists or uable
to login I get a return code of 1 for the %ERRORLEVEL%.However
whenever I have an errorof a wrong dbcompatibility error the retun
code id 1 even though sql returns an iformation message from OSQL that
the right copatibilty levels are 60,70 and 80.How can i get OSQL to
return the right return code...
|
by: Bob |
last post by:
Everybody,
I've been doing a lot of on-line research and cannot find
any reference to the exact problem I'm having.
Let me preface this question with the fact that I'm coming
from an Oracle background so my approach may not be the best
way to tackle this. However, from the research I have done
this approach seems reasonable. Also, I know about the
undocumented procedure sp_MSforeachtable. That can give me a
|
by: Alan Zhong |
last post by:
hi, i had been removed the row counts and the column spaces... but i
failed to remove the extra tabs between rows of data return from the
osql output.
how to detect the row delimiter?
i noticed i can use bcp to have a more decent output file, but i don't
want to do too much of file read-write. the programming enviroment is
quite easy to "capture" the output from the comand prompt.
secondary, char(252), 253, 254, 255 is not being read...
|
by: second714 |
last post by:
Hi,
I have several big tables with rows more than 25 mil rows
and to update/delete/insert data in these tables,
it can take minutes.
I use BULK Insert/DELETE/Update with osql.
While I run one of these updates,
if I try to select, it seems like both read and write get locked.
Shouldn't SQL resolve this kind of locking?
I left these to see if it gets resolved but both never returned.
|
by: LineVoltageHalogen |
last post by:
Greetings All, I was hoping that someone out there has run into this
issue before and can shed some light on it for me. I have a stored
procedure that essentially does a mini ETL from a source OLTP DB to a
the target Operational Data Store. This is still in development so
both DB's reside on the same machine for convenience. The stored proc
runs successfully from within Query analyzer and this holds true on the
following platforms: XP...
| |
by: Mamatha |
last post by:
Hi friends,
I have an application using mutithreads.In that
application one threads writes the data in to a file.
Another thread reads the data from same file.
So some errors while at the time of reading.
Now i want to create a files and threads at runtime to
avoid these errors.
How can i create mutiple files and threads for reading
data from that files at runtime.Is there any way?
|
by: mike |
last post by:
I have a question. I am doing some work for someone and I have a batch
file that they can run that will execute an OSQL line and a DTSRUN
line. In both lines I run them using the /S /U /P switches and of
course the /N or /i switch to tell it what to run. I have also tried
replacing the /U /P switches with the /E switch.
My problem is that as long as I specify the users password on the OSQL
line (either with /U & /P or with /E & /P) it...
|
by: gopal |
last post by:
Hi,
I am trying to call the OSQL utility from my C# console application and
i am having problems
i have the following code
In Main method
ProcessStartInfo psi = new ProcessStartInfo("osql","");
psi.RedirectStandardInput = false;
|
by: gopal |
last post by:
Hi,
I have a console application whose purpose is to run the OSQL utility
from
my console application.
When my application is run, the OSQL utility is started and it has to
prompt for Database UserName & Password .
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |