Viewing 15 posts - 5,071 through 5,085 (of 13,465 total)
was the password recently changed for the user PPSCENTRAL\mrcluster , and the job not updated withthe updated password, maybe?
August 2, 2012 at 12:19 pm
row_number() is your friend in this case.
that will allow you to rank/assign a value to each row:
SELECT ROW_NUMBER() OVER (PARTITION BY tblContactID ORDER BY tblContactID,TotalDue) AS RW,* FROM #TEST
then with...
August 2, 2012 at 11:21 am
how about dynamic SQL?
execute ('use Perfect1012;drop procedure dbo.pr_fake')
works for me.
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...
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...
August 2, 2012 at 9:59 am
chriskellerx10 (8/2/2012)
Sorry for my limited knowledge...
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 ...
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
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...
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...
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...
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...
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...
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...
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...
August 2, 2012 at 8:39 am
Viewing 15 posts - 5,071 through 5,085 (of 13,465 total)