Viewing 15 posts - 45,511 through 45,525 (of 49,552 total)
CrazyMan (7/22/2008)
how can we do that???
Do what?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 12:11 pm
Can java cache a call to a udf? If so, then you can convert one of those queries into a udf with the two parameters and do a select *...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 12:08 pm
Or, if you prefer (assuming no parameters)
CREATE VIEW IsRowThere AS
SELECT CASE WHEN Row_Count >0 THEN 'True' ELSE 'False' END As ItsThere
FROM
(SELECT COUNT(*) AS row_Count FROM Sometable Where SomeConditions) x
GO
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 12:03 pm
Can't java call stored procedures?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 11:59 am
Try killing the data import. Is it blocked by the shrink? If so, the shrink will finish and then the import can continue.
You are going to switch the autoshrink off?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 11:54 am
exec sp_who2
or
select * from sysprocesses
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 11:32 am
CrazyMan (7/22/2008)
I found a work around, but iam facing error, the work around is
select * from OpenRowset...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 11:31 am
saurabh.punn (7/22/2008)
HiThis is wht i m got:
Msg 229, Level 14, State 5, Procedure xp_cmdshell, Line 1
The EXECUTE permission was denied on the object 'xp_cmdshell', database 'mssqlsystemresource', schema 'sys'.
Please ask your...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 11:11 am
Not possible. A view is a single select statement.
Could you explain a bit more why you're trying to do this?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 10:59 am
What rights does Domain name\DC login have on the machine running SQl server? Is it local admin?
Have a look in the error log (it's just a text file if you...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 10:58 am
No it won't. dbo is not a server-level principal. It's a database-level principal.
Did you ask him about impersonating a sysadmin?
whenever i m trying 2 execute the xp_fileexist proc by mentioning...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 10:55 am
Neither. Do a 2 column join
select t.ItemNo, t.BatchNo, a.qty, b.qty, c.qty from
(select ItemNo, BatchNo from TableA union select ItemNo, BatchNo from TableB union select...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 10:52 am
Anything in particular you're looking for on 2008?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 10:49 am
dcorbitt (7/22/2008)
Another option would be a cursor with a...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 9:30 am
Please ask your dba if it is acceptable for the stored proc to impersonate a sysadmin login.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
July 22, 2008 at 9:13 am
Viewing 15 posts - 45,511 through 45,525 (of 49,552 total)