Viewing 15 posts - 5,071 through 5,085 (of 13,460 total)
how about dynamic SQL?
execute ('use Perfect1012;drop procedure dbo.pr_fake')
works for me.
Lowell
August 2, 2012 at 10:57 am
aww,at 1000+ lines of code, without the underlying base tables and linked server(EDWGEARS),
that one is a little bigger scope than i can help with as a volunteer;
it...
Lowell
August 2, 2012 at 10:26 am
well there you go!
i see a couple of things;
the plan shows two cursors doing stuff to at least 580 rows;
those cursors can be eliminated and replaced witha set...
Lowell
August 2, 2012 at 9:59 am
chriskellerx10 (8/2/2012)
Sorry for my limited knowledge...
Lowell
August 2, 2012 at 9:38 am
something missing from your post is the state
with the state, you know what the actual problem is:
http://blogs.msdn.com/b/sql_protocols/archive/2006/02/21/536201.aspx
ERROR STATE ERROR DESCRIPTION
2 and 5 ...
Lowell
August 2, 2012 at 9:32 am
try this: adding SET FMTONLY OFF works for me:
i tested from a 2005 to a 2008 openrowset:
SELECT *
FROM OPENROWSET ('SQLOLEDB','SERVER=DEV223;UID=sa;PWD=NotTheRealpassword;','Set FmtOnly OFF;exec master..xp_cmdshell ''dir c:\'' '
) t
Lowell
August 2, 2012 at 9:24 am
nzhang6666 (8/2/2012)
benjamin.reyes (8/2/2012)
First that the login you're using has access to the C drive on the testserver. I'd then also check that xp_cmdshell was enabled.
I can use the sa...
Lowell
August 2, 2012 at 9:21 am
jeff.mason (8/2/2012)
opc.three (8/2/2012)
jeff.mason (8/2/2012)
If someone wants to add a column to the middle of a table, they should get better SQL training.
This is exactly what Microsoft is up against. They...
Lowell
August 2, 2012 at 9:19 am
well, you could use a view on dbo.Incidents to automatically generate your calculation as a new column, or you could add a calculated, persisted column to the base tabe; both...
Lowell
August 2, 2012 at 9:12 am
without the details my friend anthony is asking for, i'd WAG and say to update statistics on the underlying tables the procedure uses.
out of date statistics are associated witht eh...
Lowell
August 2, 2012 at 8:50 am
well, based on your post, you said the users cannot select, and i'm guessing that is because you did not assign db_datareader.
you'd have to report the specific error message they...
Lowell
August 2, 2012 at 8:46 am
an example of what Sean is asking you for: a CTE or CREATE TABLE with his first post:
With MyCTE (PRNT,CHLD,POS)
AS
(
SELECT '1050000','1000000','1' UNION ALL
SELECT '1050000','5000000','2' UNION ALL
SELECT...
Lowell
August 2, 2012 at 8:43 am
this warning is for the least common denominator thing:
the Object Explorer warned you if you are not in the db_owner role, but if you test my role, you will...
Lowell
August 2, 2012 at 8:39 am
creating a custom role encompasing the specific requirements is a best practice.
permissions should be assigned to custom roles, and users assigned to the custom roles.
This makes migrating users from one...
Lowell
August 2, 2012 at 8:26 am
here's my suggestion:
create this role in each of the ten databases in question.
add the logins of the developers as users to each of the ten databases.
add the users to this...
Lowell
August 2, 2012 at 8:10 am
Viewing 15 posts - 5,071 through 5,085 (of 13,460 total)