Viewing 15 posts - 3,736 through 3,750 (of 5,393 total)
Does this do the trick?
DECLARE @tb TABLE (
col1 int
)
INSERT INTO @tb SELECT 1
INSERT INTO @tb SELECT 2
INSERT INTO @tb SELECT 3
INSERT INTO @tb SELECT 4
INSERT INTO @tb SELECT 5
INSERT INTO...
-- Gianluca Sartori
October 25, 2010 at 4:09 am
Can the two DTC connect to each other?
Have you checked that with DTCPing?
-- Gianluca Sartori
October 22, 2010 at 9:58 am
Change the query like this:
SELECT *
FROM @test-2 AS A
CROSS APPLY (
SELECT COUNT(*) AS matched_patterns
FROM...
-- Gianluca Sartori
October 22, 2010 at 9:53 am
Glad you liked it. 😉
-- Gianluca Sartori
October 22, 2010 at 7:37 am
This is the script I'm using:
CREATE PROCEDURE [maint].[dba_runCHECKDB]
@dbName sysname = NULL,
@PHYSICAL_ONLY bit = 0,
@allMessages bit = 0
AS
BEGIN
IF OBJECT_ID('tempdb..#DBCC_OUTPUT') IS NOT NULL
DROP TABLE #DBCC_OUTPUT
CREATE TABLE #DBCC_OUTPUT(
Error int NOT NULL,
[Level]...
-- Gianluca Sartori
October 22, 2010 at 7:22 am
Chris Morris-439714 (10/22/2010)
-- Gianluca Sartori
October 22, 2010 at 5:59 am
hallidayd (10/22/2010)
rootfixxxer (10/22/2010)
I need this, because it's necessary...
<snip>i can set the name of the columns in the application that will use it, but if i set everything in the sp...
-- Gianluca Sartori
October 22, 2010 at 4:42 am
There you go:
-- Create temporary table
IF OBJECT_ID('Tempdb..#PontoRegistos') IS NOT NULL
DROP TABLE #PontoRegistos
CREATE TABLE #PontoRegistos (
UtilizadorNome varchar(50),
Horas int,
DataRegisto datetime
)
-- Insert some sample data
INSERT INTO #PontoRegistos VALUES ('rootfixxxer', 2, '20101018')
INSERT INTO...
-- Gianluca Sartori
October 22, 2010 at 4:39 am
rootfixxxer (10/22/2010)
That doens't i have this error:
Msg 170, Level 15, State 1, Line 33
Line 33: Incorrect syntax near 'XML'.
I never used the XML Path so i don't know how...
-- Gianluca Sartori
October 22, 2010 at 4:32 am
-- Create temporary table
IF OBJECT_ID('Tempdb..#PontoRegistos') IS NOT NULL
DROP TABLE #PontoRegistos
CREATE TABLE #PontoRegistos (
UtilizadorNome varchar(50),
Horas int,
DataRegisto datetime
)
-- Insert some sample data
INSERT INTO #PontoRegistos VALUES ('rootfixxxer', 2, '20101018')
INSERT INTO #PontoRegistos VALUES...
-- Gianluca Sartori
October 22, 2010 at 4:01 am
If you have LOTS of time to spend answering awfully off-topic questions, you can open an SR on support.oracle.com. 😛
-- Gianluca Sartori
October 22, 2010 at 1:20 am
If you provide table scripts and some sample data we can try to help.
Take a look at the article linked in my signature line, you will find how to post...
-- Gianluca Sartori
October 22, 2010 at 1:17 am
Once you found the top queries, you can analyze their exec plans and find if they're pushing CPU to the roof.
Here's a good method to statement-level CPU estimations:
-- Gianluca Sartori
October 21, 2010 at 9:52 am
Don't use percent growth. 10% of 150 GB is 15 GB.
While the database grows by 15 GB, performance degrades awfully.
Use fixed size instead.
I usually set data file growth...
-- Gianluca Sartori
October 21, 2010 at 9:42 am
Try comparing the ACTUAL execution plans.
Are they identical?
If not, are there any missing/different indexes?
-- Gianluca Sartori
October 21, 2010 at 9:35 am
Viewing 15 posts - 3,736 through 3,750 (of 5,393 total)