Viewing 15 posts - 45,616 through 45,630 (of 49,571 total)
Identity insert has to be set per table, and may only be on for one table at a time.
July 18, 2008 at 4:42 am
My favorite was a java-based messaging app that passed all string literals as N'... despite defining the table with varchar columns.
Net result, index scan of around a million rows to...
July 18, 2008 at 4:37 am
ALZDBA (7/18/2008)
We have recently had an issue where the same query on an equal table
one using nvarchar, the other using varchar. (indexes same indexes on both objects)
Implicit conversion issues?...
July 18, 2008 at 1:44 am
Thanks for mentioning that you were running on SQL 2000.
That particular query would be helped by an index on datep, however I thnk you have bigger problems than one query.
Is...
July 18, 2008 at 1:05 am
The query being run by the processes is in the st.text column, and it's almost the same as what fn_getSQLHandle would return.
I've used this query for years to track blocking...
July 18, 2008 at 1:04 am
roadtrain64 (7/18/2008)
WEll thanks GailBut
I want to capture blocking_session_id's commands and from where these commands come from?
Did you run my code? The query been run is...
July 18, 2008 at 12:54 am
Index definitions and execution plan please?
July 18, 2008 at 12:50 am
Can you post the query please, the table definition, the index definitions and the execution plan?
You get the exec plan by running the query in management studio with the Include...
July 18, 2008 at 12:36 am
The following form of code will usually deadlock if run enough times.
Connection 1:
WHILE (1=1)
BEGIN
BEGIN TRANSACTION
update Table1 SET SomeNumberField = SomeNumberField +1
WAITFOR DELAY '00:00:30
UPDATE...
July 18, 2008 at 12:25 am
LISETH_T (7/15/2008)
objDataReader = getReader("Select *...
July 18, 2008 at 12:20 am
For SQL 2005, try this one. Create a table somewhere then have a SQL agent job doing the insert at whatever interval you like
SELECT er.session_id, blocking_session_id, wait_type, wait_time, wait_resource, database_id,...
July 18, 2008 at 12:15 am
That error's the generic 'I can't connect' error. It could be because the server doesn't allow remote connections. It could be that the service is stopped, or there could be...
July 18, 2008 at 12:13 am
Catcha (7/17/2008)
Will above while loop causes deadlock?
Not on its own. Deadlocks require two connections wanting locks that the other connection holds.
It is a really, really inefficient way to do...
July 18, 2008 at 12:10 am
Unsure (7/17/2008)
Thank you.I will not use 'forceplan'. Will work with just the covering index.
Thanks again.
If you want any suggestions on improving the query more, please post the query, along with...
July 18, 2008 at 12:02 am
Shamshad Ali (7/17/2008)
And what about the style for selecting data between start and end?----------------------------------------------------
AND 7/14/2008 BETWEEN s.start_date AND s.end_date
Please start a separate thread for your questions.
July 17, 2008 at 11:58 pm
Viewing 15 posts - 45,616 through 45,630 (of 49,571 total)