Viewing 15 posts - 151 through 165 (of 389 total)
If it is executed 4 times a minute, maybe you can build XML from the parameters and run the update in one go in a stored procedure?
...and your only reply is slàinte mhath
June 19, 2009 at 9:57 am
Try to run this query:
select b.text, a.* from sysprocesses a cross apply sys.dm_exec_sql_text(sql_handle) b
where blocked0
You seem to have a lot of blocking, perhaps there is an uncommited transaction in...
...and your only reply is slàinte mhath
June 19, 2009 at 7:48 am
Have you tried to create clustered index on ndate? They are very good at range queries.
Regards
Piotr
...and your only reply is slàinte mhath
June 19, 2009 at 7:24 am
Thanks Hugo, I was thinking about something along these lines. Somehow I missed the fact that the table was altered, not recreated. I read once post of Tony Rogerson that...
...and your only reply is slàinte mhath
June 18, 2009 at 2:57 am
Problem with scalar functions used this way - where you pass a column as a parameter - is that they are not inlined by the query compiler. This means they...
...and your only reply is slàinte mhath
June 17, 2009 at 4:13 pm
Hi,
What ANSI_PADDING you have when you script the tables? It is interesting why MaxLen is different than MaxDataLen in your file. LEN according to BOL returns length of data without...
...and your only reply is slàinte mhath
June 17, 2009 at 12:14 pm
The indexed views have a rather long list of limitations regarding their creation. Please refer to Books On Line, Designing And Implementing Views, these are few first lines:
"
A view must...
...and your only reply is slàinte mhath
June 10, 2009 at 9:34 am
Indexed view must not reference other views, only base tables. You will need to expand definition of the first view in the view you want to index.
Piotr
...and your only reply is slàinte mhath
June 10, 2009 at 8:04 am
And do you mind if I ask what do you need these messages for?
...and your only reply is slàinte mhath
January 19, 2009 at 12:14 pm
I came across the 'top 5' requirement. I needed to identify rows that have some values not smaller than 5 biggest values in the table. I guess it's a pretty...
...and your only reply is slàinte mhath
January 16, 2009 at 6:11 pm
You didn't say anything about technology you use to run these commands, but for .NET, you should look at the InfoMessage event fired by SqlConnection:
http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlconnection.infomessage.aspx
HTH
Piotr
...and your only reply is slàinte mhath
January 16, 2009 at 6:03 pm
Hi,
In my opinion you have two options - one is linked servers, second is SSIS.
Linked servers can be more problematic I think, regarding version of Oracle and you might run...
...and your only reply is slàinte mhath
January 7, 2009 at 12:13 pm
True, so first you would have to have the rowset sorted by some other, meaningful criteria. For example if there are three employees with the same manager_id, you could sort...
...and your only reply is slàinte mhath
January 6, 2009 at 6:37 pm
And what if c3 is not 0? Is the insert statement different then, or the parameter value is different?
As a starting point, this would be one of the ways to...
...and your only reply is slàinte mhath
January 6, 2009 at 11:54 am
The sort transform returns the first row if duplicates are found in columns specified by sort criteria. At least it worked this way for us :), but if I were...
...and your only reply is slàinte mhath
January 6, 2009 at 11:34 am
Viewing 15 posts - 151 through 165 (of 389 total)