Viewing 15 posts - 7,216 through 7,230 (of 9,643 total)
Changing the collation started the problem because the msdb you restored was created using the original collation.
As far as why you are still having problems I have no idea....
October 16, 2008 at 6:52 am
If you have Profiler installed on your local machine then you can run Profiler against any server on which you have ALTER TRACE permissions (2005/2008) or are a member of...
October 16, 2008 at 6:50 am
Something like this:
Declare @query varchar(1000)
Set @query ='
Select
J.name as job_name,
JH.step_name,
Case
When JH.run_status = 1 Then ''Succeeded''
When JH.run_status = 2 Then ''Retry''
When JH.run_status = 3 Then ''Canceled''
When JH.run_status = 4 Then ''Running''
Else ''Failed''
End...
October 16, 2008 at 6:47 am
Select
EmpNo,
PhoneNumber,
Count(RowNo) as total_calls
From
dbo.Test
Group By
...
October 16, 2008 at 6:33 am
Oops, I think this is a little better:
[font="Courier New"]SELECT
DB_NAME() AS database_name,
MP.name AS database_user,
RP.name AS database_role,
SP.name AS server_login,
SPR.name AS server_role
FROM
sys.database_principals MP LEFT JOIN
sys.database_role_members R...
October 16, 2008 at 6:31 am
Brandie,
I think this code is close to what you need:
[font="Courier New"]SELECT
DB_NAME() AS database_name,
MP.name AS database_user,
RP.name AS database_role,
SP.name AS server_login,
SPR.name AS server_role
FROM
sys.database_principals RP JOIN
sys.database_role_members...
October 16, 2008 at 6:28 am
Thanks, but you only get there by being prolific not necessarily correct. In this case I happen to be right, but if you answer enough questions you have to...
October 15, 2008 at 3:55 pm
Shrinking the database is not a recommended practice. If you shrink it then you will likely go right back and grow it again if autogrow is not on and...
October 15, 2008 at 1:17 pm
You can check out http://www.jumpstarttv.com as there is a series of short vidoes on how to use Profiler. Just a disclaimer, I did the videos. They are based...
October 15, 2008 at 1:01 pm
What events are you collecting using Profiler? Linq queries come across on the SQL:BatchStarting and SQL:BatchCompleted events.
October 15, 2008 at 12:36 pm
Why not handle this in the original transaction? If the user changes the 2 columns then send the 3rd column to the database as a null value.
What if the...
October 15, 2008 at 12:22 pm
Glad I could be of help. Sorry about the errors, the second one you mention was a brain cramp on my part. The first one probably has...
October 15, 2008 at 12:21 pm
I don't know as far as the question you are asking. I will comment that you probably don't need to rebuild all the indexes every week. If you...
October 15, 2008 at 11:27 am
You cannot use a variable for the database name in a use statement. You would need to use dynamic SQL to accomplish this.
October 15, 2008 at 9:47 am
Yes, Restore Log NewDbName From disk=FilePath With {options}
October 15, 2008 at 8:54 am
Viewing 15 posts - 7,216 through 7,230 (of 9,643 total)