Viewing 15 posts - 47,566 through 47,580 (of 49,571 total)
Can you post the connection string that you're using please?
Dunno about the login mde. Take a look at the properties of the server in enterprise manager and see what its...
January 29, 2008 at 12:47 am
Your stored proc is written to take 3 parameters and you're passing it 4.
Create procedure dbo.IMPEXPFROMDB
@filepath varchar(255), --filepath
@direction varchar(5) , --direction(In/Out)
@tablename varchar(255) --Valid tablename/viewname
as
...
Exec IMPEXPFROMDB 'databaseTest' 'tableNameOne', 'OUT',...
January 29, 2008 at 12:40 am
I prefer stored procs, from a point of code encapsulation. If the sql code is in the db, then I'm able to tune it if necessary. If the SQL statements...
January 29, 2008 at 12:40 am
I think you'll get schema stability no matter what. The query has to ensure that the table isn't changing while the query's running.
Why's it necessary in your second process to...
January 28, 2008 at 1:39 pm
How big are the tables in question? How many pages do the indexes take up (visible in sys.dm_db_index_physical_stats)
Edit: btw, a separate update statistics is not necessary (and may even be...
January 28, 2008 at 1:38 pm
I usually just grab the login time for session_id 1. iirc it's the resource monitor. It will always be there.
Chad: How do the CPU_BUSY and IDLE relate to real time...
January 28, 2008 at 1:37 pm
KATHLEEN Y ZHANG (1/28/2008)
I am seeing Sch-s and Sch-M locks on these two processes. Aren't they compatible?
No. They're the equivalent of shared and exclusive locks for the table structure. Sch-S...
January 28, 2008 at 1:18 pm
Not directly, but you can get the login time of any of the system processes from sys.dm_exec_sessions. Since all the system processes start when the instance starts the login time...
January 28, 2008 at 12:44 pm
What kind of queries are they? If they're deadlocking, I assume some form of data modification (since readers don't block readers) Data modification (insert, update, delete) will always take locks....
January 28, 2008 at 12:41 pm
JMSM (1/28/2008)
Can you tell me what kind of book can i buy for 'lazy DBA' query tunnig :sick:
I haven't seen any book that does 'query tuning in 24 hours' or...
January 28, 2008 at 12:38 pm
Steve Jones - Editor (1/28/2008)
Baseball knowledge probably does help with the levels. I picked these over the summer, so my apologies for outside influences 🙂
It's your site. You can do...
January 28, 2008 at 9:28 am
First thing I'd suggest it normalise your tables 🙂
If you have a table of users, then finding the unique users is much simplified. Perhaps a table for the questionaires (or...
January 28, 2008 at 9:27 am
What does the query look like now? From a quick glance
AND tb4.ID NOT IN (SELECT DISTINCT tb7.ID
FROM Tbl_Tmp_Trace tb7
WHERE tb7.Estadoid = 3094610094
AND tb7.Tipo = N'Chamadas')
should go to
AND NOT EXISTS (SELECT...
January 28, 2008 at 9:15 am
The backups might be safe to compress. The data and log files are another matter.
Only read-only filegroups can be placed on compressed drives and transaction log files should never be...
January 28, 2008 at 9:10 am
Looking good.
You may want your tran log backups more often. Maybe once every 2-12 hours, depending how many transactions there are. How often are your full/diff backups.
Once the log has...
January 28, 2008 at 8:28 am
Viewing 15 posts - 47,566 through 47,580 (of 49,571 total)