Viewing 15 posts - 6,676 through 6,690 (of 8,416 total)
jocampo (11/9/2009)
November 9, 2009 at 9:03 pm
Lots of joins, grouping, and aggregates?
Sounds like indexed views territory.
I look forward to seeing the execution plans too.
November 9, 2009 at 6:10 pm
jocampo (11/9/2009)
November 9, 2009 at 5:58 pm
Another way...
SELECT
[user_name] = USER_NAME(CAST(OBJECTPROPERTYEX(T.[object_id], 'OwnerId') AS INTEGER)),
[name]
FROM
sys.tables T
ORDER BY
...
November 9, 2009 at 5:43 pm
Paul White (11/9/2009)
Dts.Variables[0].Value = System.IO.Directory.GetDirectories(@"C:\Temp", "20??");
http://msdn.microsoft.com/en-us/library/system.io.directory.getdirectories.aspx
November 9, 2009 at 5:13 pm
Guys,
Lisset (11/6/2009)
Servidor: mensaje 22051, nivel 16, estado 1, línea 0The client connection security context could not be impersonated. Attaching files requires an integrated client login.
There's a huge clue right there...
November 9, 2009 at 3:20 pm
Grant,
86? :w00t:
Paul
November 9, 2009 at 3:16 pm
TheSQLGuru (11/9/2009)
November 9, 2009 at 3:14 pm
ramadesai108 (11/9/2009)
November 9, 2009 at 3:06 pm
TheSQLGuru (11/9/2009)
I will go with the others at posit parameter sniffing/plan caching as the culprit here. OPTION (RECOMPILE) or dynamic sql as a solution.
Good to see you back!
November 9, 2009 at 3:02 pm
No worries. 'NOTHING' is good - be double sure it was listed as that for the database in question thoiugh. Under some circumstances, two log backups are required...
November 9, 2009 at 5:12 am
While we're all chipping in with tips and tricks...
If you only expect to update one row, say so: UPDATE TOP (1)
Yes, wrapping things in a transaction and rolling back as...
November 9, 2009 at 5:05 am
SET TRANSACTION ISOLATION LEVEL READ COMMITTED; -- Default
BEGIN TRANSACTION;
INSERT dbo.Table1 (A, B)
SELECT 1, 2
WHERE NOT EXISTS (SELECT * FROM dbo.Table1 WITH (UPDLOCK) WHERE A=1 AND B=2);
IF @@ROWCOUNT = 0
BEGIN
UPDATE ......
November 9, 2009 at 4:43 am
gdraghetti (11/9/2009)
(Note that LogonId is the same value returned, for...
November 9, 2009 at 4:21 am
dant12 (11/8/2009)
just shooting out options here, the only one who knows his entire environment is himself so the decision is up to him, just wanted to expose more options
Absolutely. ...
November 9, 2009 at 4:19 am
Viewing 15 posts - 6,676 through 6,690 (of 8,416 total)