|
You're welcome.
If you find out it's a configuration issue and not a broken install, I'd be really glad if you could share the info.
I'm having a hard time to understand what configuration option would modify the behaviour so dramatically since DTC is just a controller and it doesn't have to understand what actually happens under the hood. Just needs to know if everything went as expected or not.
Hopefully you find the solution one way or another without too much pain.
Mika
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Despite protests from my client's DBA team, the server was upgraded to SP2 (previously SP1) and a hotfix was applied http://support.microsoft.com/kb/937517/en-us[^] - apparently there's a known problem which boils down to an incorrect attention signal being passed to the linked server which forces the linked server to rollback the transaction.
*feels vindicated
It definitely isn't definatley
|
|
|
|
|
Great !
Hopefully that solves the problem. Based on the hotfix info it could be exactly what you were experiencing.
Also confirmed that it wasn't intended behaviour as we expected
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
hy,
how can i create a transaction so that when ever i update a row of a table no other user can change it or access it..
its like transaction on a account , only one user can operate on an account at a time.
i tried the following sql statement LOCK [ TABLE ] name IN lock_mode
but it gives an error "incorrect syntax near table"
should i create a stored procedure and then use SET TRANSACTION ISOLATION LEVEL SERIALATION after creating a transaction.
plz help
|
|
|
|
|
|
Ashfield wrote: This is the 3rd time you have asked the question, the answer is NOT going to change!!!!!
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Hi..
I m using mysql database.
In my table adapter, I have 2 queries.
Query(1)
INSERT INTO comment
(commentID, reviewID, commentStatus, submitterID, commentDate, lastUpadatedDate)
VALUES (?commentID, ?reviewID, ?commentStatus, ?submitterID, ?commentDate, ?lastUpadatedDate)
Query(2)
INSERT INTO commentdetail
(commentDetailID, commentID, commentType, locator1, locator2, comment, remark)
VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2, ?comment, ?remark)
i can add the Query(1).
but everytime i tried to add Query(2) displays the following error.
The query builder failed.
Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
i need urgently..
Could anyone know how to solve this error,Please?
thanks in advance.
|
|
|
|
|
I use .NET 2.0 and VS 2005
|
|
|
|
|
Haven't used MySql really so just guessing here.
In the second statement, you have a potentially reserved word comment and also remark . Try removing them from the statement:
INSERT INTO commentdetail
(commentDetailID, commentID, commentType, locator1, locator2)
VALUES (?commentDetailID, ?commentID, ?commentType, ?locator1, ?locator2)
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hi,
Can someone please help me with an issue I am having?
I have created a Table named "Countries" The table has a CountryID and a Country. What needs to happen is that the user must be able to add his/her country in the database. The problem I am having is the following:
The CountryID is NOT auto numbered. I need to write a trigger that executes BEFORE the insert procedure. It basically needs to check what the latest record ID is, if there are none than the CountryID should be 1 if there are records the trigger must take the last record and add 1.
I have never worked with triggers so I am in a bit of a pickle. Any help will be appreciated!!
Illegal Operation
|
|
|
|
|
Why can't you change the countryid field into an identity (autonumber) field.
Triggers work on the inserted record and therefore fire after insert. Identity field is the designed methedology, you are trying to make a trigger do the job of another function.
Alternatively you can create an insert proc that gets the number before the insert begins. This is subject to corruption in high volume tables (2 attempts at the same time - very unlikely but must be considered).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Ok, point taken. What happens when you use auto numbering and you have 10 entries in your table, now you need to delete entry number 7. What are you going to do to fix the table??
Illegal Operation
|
|
|
|
|
Define "fix" the table. Guessing you are stressing about the missing sequential number 7 from the identity field.
This is Database 101. ID fields must NEVER have intelligent data, they are used to identify the record and link it to other tables. The sooner you get this idea the happier you will be. If you are using the ID field other than to locate the record (eg sorting) then your design is tragically flawed.
I recommend you get a book on database design and data structuring (mine are so old they are no longer published).
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
hold your horses!
Triggers only work after not before, just use id_country as primarykey and set autonumber (counter) there.
I also think dont need triggers for now.
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Hi,
I have a data file which consists of data as below,
Header
xx|yy|zz
aa|bb|cc
Footer
While iam inserting into table using bulk insert, this pipe(|) is also getting inserted into the table,
here is my query iam using to insert the data using bulk insert.
BULK Insert #TmpStList
FROM 'D:\PSC07\HRDATA\HR2SSTS_TRAINING.TXT' WITH
(FirstRow=1,LastRow= 3,DATAFILETYPE='char',FIELDTERMINATOR = '|',
ROWTERMINATOR = '\n',keepnulls)
I want result like this
fields1 2 3
xx yy zz
aa bb cc
but i got this
fileds1 2 3
Headerxx yy zz
aa bb cc
I don't want to insert (|) into Header .
|
|
|
|
|
Your header row should have as many columns as data rows. So you should modify your data to:
Header||
xx|yy|zz
aa|bb|cc
Footer||
Although you can start from second row using FirstRow=2 , note that:
The FIRSTROW attribute is not intended to skip column headers. Skipping headers is not supported by the BULK INSERT statement. When skipping rows, the SQL Server Database Engine looks only at the field terminators, and does not validate the data in the fields of skipped rows.
The need to optimize rises from a bad design.
My articles[ ^]
|
|
|
|
|
Hi,
i am finishing a application that as a database, the application is a stand alone, so no network here (1 database for 1 application).
Will i get errors when installing the application in other computer with no sql server installed ?
I think i have to type ...attached...path...whatever in connection_string and all will be fine.
You can edit and get reports in the application, i only allow users to trigger store_procedures (with parameters).
Will i get errors???
nelsonpaixao@yahoo.com.br
trying to help & get help
|
|
|
|
|
Yes. You are using a service-based database. This means that the database must be attached to a server when you use it. Sql Server must be installed on the target machine and the database attached to it (or you can attach it when using it).
Eslam Afifi
|
|
|
|
|
You can, I think, use SQL Express and include it with your distribution if it is not already installed.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Good Morning All
i have an SP and when i run the Query it runs for 1:17 Seconds and after that it throws an Error that says
Msg 8649, Level 17, State 1, Procedure PROPERTY_SUMMARY_RECREATE, Line 72
The query has been canceled because the estimated cost of this query (984356) exceeds the configured threshold of 100000. Contact the system administrator.
I went to the Properties of the Server in Management Studio as i have the following Settings
Cursor Threshold = 0
Scan Startup Procs = False
Cost Threshold For Parallelism = 1
Locks = 0
Max Degree of Parallelism = 0
Query Wait = -1
What is Wrong ?
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
Using sp_configure check option query governor cost limit . Most likely the value is 100000 meaning that if the cost is over that, query won't run.
The need to optimize rises from a bad design
|
|
|
|
|
thank you for your reply,
Can you give me an Exact Query to Run to do this ?
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
It may be that server properties window also shows this option in connection page (Use query governor...). But if it doesn't, you can do it in T-SQL like this:
EXEC sp_configure 'show advanced options', 1 -- enable advanced options
RECONFIGURE -- apply the new setting
sp_configure -- list all configuration options and their values
If you want to change the running value:
EXEC sp_configure 'query governor cost limit', 1000000 -- either modify the value
EXEC sp_configure 'query governor cost limit', 0 -- or disable query governor
RECONFIGURE -- apply the new setting
However, your original cost is really high (984356). It means that the estimated running time for your operation is about 11 days. So I believe that there must be some problem in your procedure PROPERTY_SUMMARY_RECREATE (starting from line 72).
The need to optimize rises from a bad design
|
|
|
|
|
Good Aftenoon
By Disabling the query governor helped a lot, now the SP is not giving any Errors, you definately right that the SP PROPERTY_SUMMARY_RECREATE needs to be optimized.
Thank you
Vuyiswa Maseko,
Sorrow is Better than Laughter, it may Sadden your Face, but It sharpens your Understanding
VB.NET/SQL7/2000/2005
http://vuyiswamb.007ihost.com
http://Ecadre.007ihost.com
vuyiswam@tshwane.gov.za
|
|
|
|
|
No problem
The need to optimize rises from a bad design
|
|
|
|