Thursday, March 29, 2012
Delete default database: login failed
I deleted a database and am now getting the error: cannot open user default
database. login failed
The database is on my machine using Windows Authentication. How do I change
the default database, and what tools would I use to change it with?
Thanks in advance,
sck10
Use sp_defaultdb to change dafault db.
sp_defaulddb <user name>,<new default db name>
Verify the use also exist in new database.
Regards
Amish shah
|||To add to Amish 's response, you can override the default database at login
sp that you can execute sp_defaultdb. For example:
OSQL -d master -E -Q"EXEC sp_defaultd 'mylogin', 'master'"
Hope this helps.
Dan Guzman
SQL Server MVP
"sck10" <sck10@.online.nospam> wrote in message
news:uZGOUnRVGHA.2704@.tk2msftngp13.phx.gbl...
> Hello,
> I deleted a database and am now getting the error: cannot open user
> default
> database. login failed
> The database is on my machine using Windows Authentication. How do I
> change
> the default database, and what tools would I use to change it with?
> --
> Thanks in advance,
> sck10
>
Delete default database: login failed
I deleted a database and am now getting the error: cannot open user default
database. login failed
The database is on my machine using Windows Authentication. How do I change
the default database, and what tools would I use to change it with?
--
Thanks in advance,
sck10Use sp_defaultdb to change dafault db.
sp_defaulddb <user name>,<new default db name>
Verify the use also exist in new database.
Regards
Amish shah|||To add to Amish 's response, you can override the default database at login
sp that you can execute sp_defaultdb. For example:
OSQL -d master -E -Q"EXEC sp_defaultd 'mylogin', 'master'"
--
Hope this helps.
Dan Guzman
SQL Server MVP
"sck10" <sck10@.online.nospam> wrote in message
news:uZGOUnRVGHA.2704@.tk2msftngp13.phx.gbl...
> Hello,
> I deleted a database and am now getting the error: cannot open user
> default
> database. login failed
> The database is on my machine using Windows Authentication. How do I
> change
> the default database, and what tools would I use to change it with?
> --
> Thanks in advance,
> sck10
>sql
Delete default database: login failed
I deleted a database and am now getting the error: cannot open user default
database. login failed
The database is on my machine using Windows Authentication. How do I change
the default database, and what tools would I use to change it with?
--
Thanks in advance,
sck10Use sp_defaultdb to change dafault db.
sp_defaulddb <user name>,<new default db name>
Verify the use also exist in new database.
Regards
Amish shah|||To add to Amish 's response, you can override the default database at login
sp that you can execute sp_defaultdb. For example:
OSQL -d master -E -Q"EXEC sp_defaultd 'mylogin', 'master'"
Hope this helps.
Dan Guzman
SQL Server MVP
"sck10" <sck10@.online.nospam> wrote in message
news:uZGOUnRVGHA.2704@.tk2msftngp13.phx.gbl...
> Hello,
> I deleted a database and am now getting the error: cannot open user
> default
> database. login failed
> The database is on my machine using Windows Authentication. How do I
> change
> the default database, and what tools would I use to change it with?
> --
> Thanks in advance,
> sck10
>
Delete Database User w/o Login name
Drop failed for User 'maximum'. (Microsoft.SqlServer.Smo)
The database principal owns a schema in the database, and cannot be dropped. (Microsoft SQL Server, Error: 15138)
How do I remove this user?
It seems like your user owns some schema, most likely the default schema that gets created for the user. You will need to use the "DROP SCHEMA" statement to first drop the user's schema (if it is the default schema, the schema's name will most likely be the same as the user's name). Otherwise you can use "ALTER AUTHORIZATION" to change to the owner of the schema to someone else if you want to keep it. After that you should be able to drop the user.
Thanks,
Sung
|||You can use the following query to help you identify the schema you need to drop.
select schm.name as 'schema_name'
FROM sys.schemas schm, sys.database_principals usrs
WHERE schm.principal_id = usrs.principal_id AND usrs.name = 'dbo'
-Raul Garcia
SDE/T
SQL Server Engine
Monday, March 19, 2012
Defualt number of copies
Hi all - must be a simple one but can't find where to set this - I need to set the number of copies to a default of '3' for my despatch team.
Could anyone point me in the right direction?
Thanks in advaice!
Stephen.
Hi - can anyone help with this? The despatch team are going crazy :( I can't find info on this anywhere!
Thanks!
||| It is not possible to change the Number of copies in the reporting services client print control
Maybe you can avoid printing by making each of the team members subscribers to the report? They can receive an email with up-to-the minute data at the time of their chosing, and if desired, can print the report then.
|||Unfortunately I can't do that - the despatch team pick and then despatch an order - many times a day so need to do it on an ad-hoc basis. Really disapointed that the reporting add-in doesn't have this feature. Would have thought that this would have been a standard option :(
Any posibility of Crystal doing this does anyone know?
Thanks!
Wednesday, March 7, 2012
define default for date report parameter / analysis services
I have a report which will one day display some data from an analysis services cube. my first step is to create a drop down parameter enabling the user to choose the date. I'd like to display only dates that have data, and I'd like it to default to today.
So I've created a dataset that will be the datasource for the dropdown displaying the available non-empty dates, which works fine.
SELECT measures.turnover ON COLUMNS,
nonempty([TBL DIM DATE].[DATE_ONLY].[DATE_ONLY].ALLMEMBERS ) ON ROWS
FROM [Itdev1 Hk]
I've also set the report parameter up to be a queried paramter,and to use the above dataset as it source, with [DATE_ONLY] displayed. and [DATE_ONLY] as the value.
Now, how do I get it to default to the last valid member in the list?
I presume you are trying to have the latest date selected by default? If so, return your dataset in descending order (do an ORDER(<set>, DESC) on the rows), so that your latest date is at the top of the list.
|||this is helpful since now when I click the drop down the most likely values for me to use are at the top. but it has not caused any value to be selected by default.|||You can use the same dataset in the default value query, which seems to collapse to the first row returned. I have no idea what the implications of doing this are, I happened on it by accident.|||
this is a helpful tip!
|||i;m attempting to order by date in descending order. but it seems to sort in a random order when I do this ....
SELECT NON EMPTY { [Measures].[TURNOVER - WM INTERDAY] } ON COLUMNS, NON EMPTY { order([Time].[Date].[Date].ALLMEMBERS, [Time].[Date], desc ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Itdev1 Hk] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
and then in alphabetical order when I sort like this
SELECT NON EMPTY { [Measures].[TURNOVER - WM INTERDAY] } ON COLUMNS, NON EMPTY { order([Time].[Date].[Date].ALLMEMBERS, [Time].[Date].MemberValue, desc ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Itdev1 Hk] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
how do I get it to sort by real date?
define a default value ?
hallo
i am on the very beginning with sql.s,
how can i define a default value for the table field like its possible in access,
for example: the if the user not gonna enter a val so there is a default val predefined in the table field,
for example i would like to predefine the date now on the smalldate field....
thanks
maybe something like:
Code Snippet
create table dbo.yourTable
( anInteger int default (0)
)
Give a look to books online.
|||so if i would like to predefine the date now on the smalldate field its will look like this
table dbo.myTable
( anInteger smalldate default (0)=new
)
|||No, that would be more like:
createtable dbo.myTable
( anInteger smalldate default ( getdate() )
)
|||thanksSaturday, February 25, 2012
Defaut Value for new column in replication
I am dealing with merge replication.
I need to add a new column in a table (already in replication) has 500000
records.
I have set 0 as default value for that column.
I want to update that column with a return value of a user-defined function.
Is it possible to call a user-defined function as a default value?
So that it will get sync while adding the column in replication else I have
to update the column separately. Same to be replicated for 20 databases
results in huge amount of data.
Is there any alternative for this?
Please advice.
Thanks,
Soura.
Hi Sounder,
Yes. U can give the UDF as a Default value.
U can do it as a normal default one. In the default Value column specify the
UDF name with the corresponding Owner name and pass the values for parameter.
Thanks,
Herbert
"SouRa" wrote:
> Hi,
> I am dealing with merge replication.
> I need to add a new column in a table (already in replication) has 500000
> records.
> I have set 0 as default value for that column.
> I want to update that column with a return value of a user-defined function.
> Is it possible to call a user-defined function as a default value?
> So that it will get sync while adding the column in replication else I have
> to update the column separately. Same to be replicated for 20 databases
> results in huge amount of data.
> Is there any alternative for this?
> Please advice.
> Thanks,
> Soura.
>
DefaultValue
I have a table like
Tablename: Test
tst_id uniqueidentifier Not null PK
= RowGuid
tst_ts2_id uniqueidentifier Not null
Default '?
tst_code Varchar 50 Not null
And Another table
Tablename: Test2
ts2_id uniqueidentifier Not null PK
ts2_name Varchar 50 Not null
ts2_default Boolean False
there is defined a FK tst_ts2_id and ts2_id
I would to insert into table Test a row with the folloing insert
INSERT INTO test
(tst_code)
VALUES ('123456')
Now I would, that there is a trigger, or something else, that inserts me an
tst_ts2_id the ID from Table Test2, where ts2_default = True.
How to du. I tryed with trigger, but it seams, that the trigger fires to
late, if I delete the FK, then it will be inserted.
I wrote a function that returns the Id to insert, but is it possible, that
like default-value can be insertted the result of a skalar function ?
Thank you all
Klaus AstnerI'm not certain if this is what you are trying to do and as you did not post
DDL or the statements or triggers that you tried I made some guesses, but
the following worked fine for me:
create table Test2 (
ts2_id uniqueidentifier Not null primary key default(newid()),
ts2_name Varchar(50) Not null,
ts2_default bit default(0)
)
go
create function dbo.def_ts2id() returns uniqueidentifier
as
begin
declare @.guid uniqueidentifier
select @.guid = ts2_id from test2 where ts2_default = 1
return @.guid
end
go
create table Test (
tst_id uniqueidentifier Not null primary key default(newid()),
tst_ts2_id uniqueidentifier Not null foreign key references test2(ts2_id)
default(dbo.def_ts2id()),
tst_code Varchar(50) Not null
)
go
insert into test2(ts2_name,ts2_default) values('default',1)
go
INSERT INTO test(tst_code) VALUES('123456')
go
select * from test
select * from test2
go
Result:
tst_id tst_ts2_id
tst_code
-- -- --
---
18CBDA2A-6B29-43C9-8A42-B86B9102E6D4 70DC14A0-F744-4006-8CE0-A9C8695D8E83
123456
ts2_id ts2_name
ts2_default
-- ---
-- --
70DC14A0-F744-4006-8CE0-A9C8695D8E83 default
1
Craig
--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm.
"Astner Klaus" <k.astnerremove_this@.virgilio.it> wrote in message
news:eFHHSRPXDHA.2648@.TK2MSFTNGP09.phx.gbl...
> Hi all,
>
> I have a table like
> Tablename: Test
> tst_id uniqueidentifier Not null PK
> = RowGuid
> tst_ts2_id uniqueidentifier Not null
> Default '?
> tst_code Varchar 50 Not null
>
> And Another table
> Tablename: Test2
> ts2_id uniqueidentifier Not null PK
> ts2_name Varchar 50 Not null
> ts2_default Boolean False
>
> there is defined a FK tst_ts2_id and ts2_id
>
> I would to insert into table Test a row with the folloing insert
>
> INSERT INTO test
> (tst_code)
> VALUES ('123456')
> Now I would, that there is a trigger, or something else, that inserts me
an
> tst_ts2_id the ID from Table Test2, where ts2_default = True.
>
> How to du. I tryed with trigger, but it seams, that the trigger fires to
> late, if I delete the FK, then it will be inserted.
> I wrote a function that returns the Id to insert, but is it possible, that
> like default-value can be insertted the result of a skalar function ?
>
> Thank you all
>
> Klaus Astner
>
>
>
defaults in the DB
It should be like this
Table column constraint_name value
emp emp_id DF_emp_emp_no 1
emp join_date DF_emp_cur_date getdate()
How can i get these results on all the tables in my DB.
Thanks.sp_help '<table_name>'
After the column list of index(es), the proc will list any constraints by column name.|||select object_name(c.id)+'.'+col_name(c.id, c.colid)+' - '+
object_name(c.constid)+' value: '+text
from sysconstraints c
inner join syscomments sc on c.constid = sc.id
where(c.status & 5)= 5
and objectproperty(c.id,'IsMSShipped')= 0
order by object_name(c.id)|||Buy that man a drink!
Defaulting the User's ID in a column
Hello,
I'm new to SQL Server and I'm wondering how I can default the User's Id in to a column when they create/modify a record.
Better yet, is there a way to get a list of allowable functions for the Default Parm?
thx so much.
Use the system_user.
ALTER TABLE MyTable
ADD ChangeUser varchar(100) DEFAULT system_user
Most of the system functions are available as DEFAULTS. Check Books Online.
|||if you want to know the database username then system_user will not be the one. sometimes, you can have many database user names mapped to single login. try this and understand.
drop table TestuserDefault
create table TestuserDefault (userid int)
ALTER TABLE TestuserDefault
ADD systemuser varchar(100) DEFAULT system_user
ALTER TABLE TestuserDefault
ADD dbuser varchar(100) DEFAULT current_user
ALTER TABLE TestuserDefault
ADD dbuser1 varchar(100) DEFAULT user
ALTER TABLE TestuserDefault
ADD dbuser2 varchar(100) DEFAULT user_name()
insert into TestuserDefault(userid) select 1
select *from TestuserDefault
Madhu
|||
And of course, if you have multiple users mapped to the same login, there is no way that SQL Server can provide you the User identification information -you will have to do that in the application code, that is, if your application even tracks UserID information.
However, in those situations where IntegratedSecurity is being used, SYSTEM_USER will provide the correct UserName.
Defaulting the export option
list? Specifically, I would like to set a default export to PDF
(instead of the "Select a format" entry)You can force the rendering format for that report but I don't think there is
a way to default the drop-down selection.
Here is a PDF render format against the AdventureWorks sample reports (the
report gets generated in PDF):
//localhost/ReportServer?/AdventureWorks Sample Reports/Company
Sales&rs:Format=PDF&rs:Command=Render
"Paul" wrote:
> Is there a way to control the contents of the report export drop down
> list? Specifically, I would like to set a default export to PDF
> (instead of the "Select a format" entry)
Defaulting Start and End dates to the previous month.
I have two parameters in my report (StartDate and EndDate). I want to default these parameters to the previous month.
For example... If today is 5/17/2007, I want StartDate to be 4/1/2007 and EndDate to be 4/30/2007. If today would be January 30th 2007, I would want StartDate to be 12/1/2006 and EndDate to be 12/31/2006.
How can I do this?
Nevermind... I used the following two functions. However, if you know of a better way to do this, please let me know.
Public Function EndDt() As Date
Dim Today As Date = Date.Today
Dim Day As Integer = Today.Day
Dim EndDate As Date
EndDate = Today.AddMonths(1)
EndDate = Today.AddDays(-Day)
Return EndDate
End Function
Public Function StartDt() As Date
Dim Today As Date = Date.Today
Dim Day As Integer = Today.Day - 1
Dim StartDate As Date
StartDate = Today.AddMonths(-1)
StartDate = Today.AddDays(-Day)
Return StartDate
End Function
|||I can't think of a quick direct way
but I do want to suggest using BETWEEN, and first of month (so that you don't have to worry about # of days in a month)
e.g. for 05/17/2007
you'd want SQL code to be
Code Snippet
column BETWEEN 04/01/2007 AND 05/01/2007since BETWEEN is inclusive, but only up to '05/01/2007 00:00:00', anything after 05/01/2007 midnight will NOT show up
so in backend SQL
it'll be like
Code Snippet
SELECT
previous_month = CAST( MONTH(getdate())-1 AS varchar) + '/01/' + CAST(YEAR(getdate()) AS varchar)
, current_month = CAST( MONTH(getdate()) AS varchar) + '/01/' + CAST(YEAR(getdate()) AS varchar)
then you get
previous_month current_month
4/01/2007 5/01/2007
Defaulting Date Parameter
Hello,
I have a report parameter StartDate. Properties are
DataTypeataTime
Prompt: StartDate
Default Values:
Non Queried : =NOW()
I set the default value to Now(). When I go to preview, the StartDate parameter is blank and its been locked & grayed out. I also tried
Today() and Globals!SystemTime but that does not work either. Is there any other solution to make this work?
Thanks
Raj
I have not seen any responses on this. Wanted to see if there are any ideas/ thoughts on this.|||Try:
Code Snippet
=cDate(FormatDateTime(Now, DateFormat.ShortDate))
Larry|||HI,You can give the following expression for the default value of startdate;
DateValue(now()).
Cheers,
Shri|||
Is this the only parameter in your report? If it is, then you shouldn't be having any problems.
If not, try entering the values for all the parameters that come before StartDate. Then you should be able to see the default value & it should not be greyed out any more.
-Aayush
Default Web Site using wrong IP
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of:
The request failed with HTTP status 400: Bad Request.
One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5.
The new ReportServer VD appears to work (although no reports are installed to test).
Thanks for any help getting this issue resolved!
I have a bunch of these in Application Log... I have a feeling it's related.. I don't know what it means though
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Anyone?
I'm not sure the applog error that you're catching is related, so let's try to fix it and then see if the original problem goes away (I suspect it won't):
1. Click Start | Run and run dcomcnfg.exe
2. In MMC, open Component Services | My Computer
3. Right-click My Computer, choose Properties, select the COM Security tab. Click on the edit default button in Launch permissions options area
4. Add network service and give it appropriate perms (Local Launch and Local Activation permissions)
If that doesn't do the trick:
1. Start DCOMCNFG
2. Under Component Services -> My Computer -> Dcom Config -> Netman click
Properties, then Security tab
3. In Launch and Activation Permissions box click Edit.
4. Add Network Service with Local Launch and Local Activation permissions
Good luck!
|||Nope... you were right - neither worked.I have since created 2 new VDs - Reports2K5 and ReportServer2k5, which correspond to my instance of SQL SErver 2005. The REportServer2K5 appears to be working OK... Reports2K5 (manager) still gives me the 400 error.
Would this error be logged anywhere?
Thanks for your help.||| The site (Default web site) was using a specific IP address.. I changed it to All Unassigned and it works!
|||Good catch!|||Is there a way to configure SQL 2005 Reporting Services using an IIS Website with a specific IP?|||
I'm getting the same event error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
I went into Component Services and Netman has local launch permissions and can find no reference for "Network Connection Manager Class" (the name the ID translates to based upon registry lookup). What in Component Services should I be looking for and where? This is a brand new installation of 2003 Server Professional w/ Exchange 2003 and all the latest service packs/patches. Thanks,
John
|||Had very similar on 4 servers, all using unassigned , but they all had host headers specified. Short summary below to explain.
Each server had three web sites all bound to unassigned ip address, using host headers and diffrent ssl ports to separate ou the traffic.
Report server had previously been working ok until the final site config when the host headers were implemented.
As one site could act as a default then the problem was resolved by adding an additional binding for port 80 with no header specified.
All boxes running fine now.
The origonal posting pointed me in the right direction and as I was also implmenting http endpoints in SQL , I could have spent awhile on red herings. Much thanks.
|||I believe this errors can be fixed by the following 899965
http://support.microsoft.com/?kbid=899965
|||had a similar problem and found out the following:
If you want to run Reporting Services under a different port than normal, you have to change these two config files:
rsreportserver.config
and
RSWebApplication.config
Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>
The result is then
<Configuration>
<UI>
<ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>
.....
and
<Configuration>
... <Service>
....
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
<UnattendedExecutionAccount>
...
Hope this helps,
Martin
PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx
I switched the host headers around (so the default website has host headers, and the RS website doesn't) now it works perfectly.
|||
Folks,
I'm trying to resolve the same error but having a bit of trouble following through the instructions in the KB.
If one of you could please set me right it would be much appreciated.
Firstly, the error I'm getting in the event log is as follows:
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool."
So I go to the regedit and look it up.
I search for BA126AD1-2166-11D1-B1D0-00805FC1270E
And Regedit duly comes up with:
HKEY_CLASSES_ROOT\CLSID\{BA126AD1-2166-11D1-B1D0-00805FC1270E}
Which identifies this as the "Network Connection Manager Class"
Allright..now the KB article then tells me to :
If a Windows Security Alert message prompts you to keep blocking the Microsoft Management Console program, click to unblock the program.
If the AppGUID identifier is listed instead of the friendly name, locate the program by using this identifier.
And this is where I'm stuck.. cos there is nothing there that corresponds to a Network Connection Manager Class or to the CLSID... (is that what they mean in the doc when they refere to AppGUID ?)
So, I can't continue on with the fix.. because I can't find the right app to fix the launch and activation permissions for....
I'd really appreciate a bit of help on this one...
Thanks
PJ
|||
Another question on this...just to be sure I'm chasing the right tail....
When I point a browser at the site http://localhost/Reportserver$DeptServer05 I get the following message...
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Object reference not set to an instance of an object.Default Web Site using wrong IP
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of:
The request failed with HTTP status 400: Bad Request.
One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5.
The new ReportServer VD appears to work (although no reports are installed to test).
Thanks for any help getting this issue resolved!
I have a bunch of these in Application Log... I have a feeling it's related.. I don't know what it means though
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Anyone?
I'm not sure the applog error that you're catching is related, so let's try to fix it and then see if the original problem goes away (I suspect it won't):
1. Click Start | Run and run dcomcnfg.exe
2. In MMC, open Component Services | My Computer
3. Right-click My Computer, choose Properties, select the COM Security tab. Click on the edit default button in Launch permissions options area
4. Add network service and give it appropriate perms (Local Launch and Local Activation permissions)
If that doesn't do the trick:
1. Start DCOMCNFG
2. Under Component Services -> My Computer -> Dcom Config -> Netman click
Properties, then Security tab
3. In Launch and Activation Permissions box click Edit.
4. Add Network Service with Local Launch and Local Activation permissions
Good luck!|||Nope... you were right - neither worked.
I have since created 2 new VDs - Reports2K5 and ReportServer2k5, which correspond to my instance of SQL SErver 2005. The REportServer2K5 appears to be working OK... Reports2K5 (manager) still gives me the 400 error.
Would this error be logged anywhere?
Thanks for your help.||| The site (Default web site) was using a specific IP address.. I changed it to All Unassigned and it works!
|||Good catch!|||Is there a way to configure SQL 2005 Reporting Services using an IIS Website with a specific IP?|||
I'm getting the same event error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
I went into Component Services and Netman has local launch permissions and can find no reference for "Network Connection Manager Class" (the name the ID translates to based upon registry lookup). What in Component Services should I be looking for and where? This is a brand new installation of 2003 Server Professional w/ Exchange 2003 and all the latest service packs/patches. Thanks,
John
|||Had very similar on 4 servers, all using unassigned , but they all had host headers specified. Short summary below to explain.
Each server had three web sites all bound to unassigned ip address, using host headers and diffrent ssl ports to separate ou the traffic.
Report server had previously been working ok until the final site config when the host headers were implemented.
As one site could act as a default then the problem was resolved by adding an additional binding for port 80 with no header specified.
All boxes running fine now.
The origonal posting pointed me in the right direction and as I was also implmenting http endpoints in SQL , I could have spent awhile on red herings. Much thanks.
|||I believe this errors can be fixed by the following 899965
http://support.microsoft.com/?kbid=899965
|||had a similar problem and found out the following:
If you want to run Reporting Services under a different port than normal, you have to change these two config files:
rsreportserver.config
and
RSWebApplication.config
Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>
The result is then
<Configuration>
<UI>
<ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>
.....
and
<Configuration>
... <Service>
....
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
<UnattendedExecutionAccount>
...
Hope this helps,
Martin
PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx
I switched the host headers around (so the default website has host headers, and the RS website doesn't) now it works perfectly.
|||
Folks,
I'm trying to resolve the same error but having a bit of trouble following through the instructions in the KB.
If one of you could please set me right it would be much appreciated.
Firstly, the error I'm getting in the event log is as follows:
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool."
So I go to the regedit and look it up.
I search for BA126AD1-2166-11D1-B1D0-00805FC1270E
And Regedit duly comes up with:
HKEY_CLASSES_ROOT\CLSID\{BA126AD1-2166-11D1-B1D0-00805FC1270E}
Which identifies this as the "Network Connection Manager Class"
Allright..now the KB article then tells me to :
If a Windows Security Alert message prompts you to keep blocking the Microsoft Management Console program, click to unblock the program.
If the AppGUID identifier is listed instead of the friendly name, locate the program by using this identifier.
And this is where I'm stuck.. cos there is nothing there that corresponds to a Network Connection Manager Class or to the CLSID... (is that what they mean in the doc when they refere to AppGUID ?)
So, I can't continue on with the fix.. because I can't find the right app to fix the launch and activation permissions for....
I'd really appreciate a bit of help on this one...
Thanks
PJ
|||
Another question on this...just to be sure I'm chasing the right tail....
When I point a browser at the site http://localhost/Reportserver$DeptServer05 I get the following message...
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Object reference not set to an instance of an object.Default Web Site using wrong IP
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of:
The request failed with HTTP status 400: Bad Request.
One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5.
The new ReportServer VD appears to work (although no reports are installed to test).
Thanks for any help getting this issue resolved!
I have a bunch of these in Application Log... I have a feeling it's related.. I don't know what it means though
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Anyone?
I'm not sure the applog error that you're catching is related, so let's try to fix it and then see if the original problem goes away (I suspect it won't):
1. Click Start | Run and run dcomcnfg.exe
2. In MMC, open Component Services | My Computer
3. Right-click My Computer, choose Properties, select the COM Security tab. Click on the edit default button in Launch permissions options area
4. Add network service and give it appropriate perms (Local Launch and Local Activation permissions)
If that doesn't do the trick:
1. Start DCOMCNFG
2. Under Component Services -> My Computer -> Dcom Config -> Netman click
Properties, then Security tab
3. In Launch and Activation Permissions box click Edit.
4. Add Network Service with Local Launch and Local Activation permissions
Good luck!
|||Nope... you were right - neither worked.I have since created 2 new VDs - Reports2K5 and ReportServer2k5, which correspond to my instance of SQL SErver 2005. The REportServer2K5 appears to be working OK... Reports2K5 (manager) still gives me the 400 error.
Would this error be logged anywhere?
Thanks for your help.||| The site (Default web site) was using a specific IP address.. I changed it to All Unassigned and it works!|||Good catch!|||Is there a way to configure SQL 2005 Reporting Services using an IIS Website with a specific IP?|||
I'm getting the same event error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
I went into Component Services and Netman has local launch permissions and can find no reference for "Network Connection Manager Class" (the name the ID translates to based upon registry lookup). What in Component Services should I be looking for and where? This is a brand new installation of 2003 Server Professional w/ Exchange 2003 and all the latest service packs/patches. Thanks,
John
|||Had very similar on 4 servers, all using unassigned , but they all had host headers specified. Short summary below to explain.
Each server had three web sites all bound to unassigned ip address, using host headers and diffrent ssl ports to separate ou the traffic.
Report server had previously been working ok until the final site config when the host headers were implemented.
As one site could act as a default then the problem was resolved by adding an additional binding for port 80 with no header specified.
All boxes running fine now.
The origonal posting pointed me in the right direction and as I was also implmenting http endpoints in SQL , I could have spent awhile on red herings. Much thanks.
|||I believe this errors can be fixed by the following 899965
http://support.microsoft.com/?kbid=899965
|||had a similar problem and found out the following:
If you want to run Reporting Services under a different port than normal, you have to change these two config files:
rsreportserver.config
and
RSWebApplication.config
Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>
The result is then
<Configuration>
<UI>
<ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>
.....
and
<Configuration>
... <Service>
....
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
<UnattendedExecutionAccount>
...
Hope this helps,
Martin
PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx
I switched the host headers around (so the default website has host headers, and the RS website doesn't) now it works perfectly.|||
Folks,
I'm trying to resolve the same error but having a bit of trouble following through the instructions in the KB.
If one of you could please set me right it would be much appreciated.
Firstly, the error I'm getting in the event log is as follows:
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool."
So I go to the regedit and look it up.
I search for BA126AD1-2166-11D1-B1D0-00805FC1270E
And Regedit duly comes up with:
HKEY_CLASSES_ROOT\CLSID\{BA126AD1-2166-11D1-B1D0-00805FC1270E}
Which identifies this as the "Network Connection Manager Class"
Allright..now the KB article then tells me to :
If a Windows Security Alert message prompts you to keep blocking the Microsoft Management Console program, click to unblock the program.
If the AppGUID identifier is listed instead of the friendly name, locate the program by using this identifier.
And this is where I'm stuck.. cos there is nothing there that corresponds to a Network Connection Manager Class or to the CLSID... (is that what they mean in the doc when they refere to AppGUID ?)
So, I can't continue on with the fix.. because I can't find the right app to fix the launch and activation permissions for....
I'd really appreciate a bit of help on this one...
Thanks
PJ
|||
Another question on this...just to be sure I'm chasing the right tail....
When I point a browser at the site http://localhost/Reportserver$DeptServer05 I get the following message...
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Object reference not set to an instance of an object.
Default Web Site using wrong IP
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of:
The request failed with HTTP status 400: Bad Request.
One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5.
The new ReportServer VD appears to work (although no reports are installed to test).
Thanks for any help getting this issue resolved!
I have a bunch of these in Application Log... I have a feeling it's related.. I don't know what it means though
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Anyone?
I'm not sure the applog error that you're catching is related, so let's try to fix it and then see if the original problem goes away (I suspect it won't):
1. Click Start | Run and run dcomcnfg.exe
2. In MMC, open Component Services | My Computer
3. Right-click My Computer, choose Properties, select the COM Security tab. Click on the edit default button in Launch permissions options area
4. Add network service and give it appropriate perms (Local Launch and Local Activation permissions)
If that doesn't do the trick:
1. Start DCOMCNFG
2. Under Component Services -> My Computer -> Dcom Config -> Netman click
Properties, then Security tab
3. In Launch and Activation Permissions box click Edit.
4. Add Network Service with Local Launch and Local Activation permissions
Good luck!
|||Nope... you were right - neither worked.I have since created 2 new VDs - Reports2K5 and ReportServer2k5, which correspond to my instance of SQL SErver 2005. The REportServer2K5 appears to be working OK... Reports2K5 (manager) still gives me the 400 error.
Would this error be logged anywhere?
Thanks for your help.||| The site (Default web site) was using a specific IP address.. I changed it to All Unassigned and it works!
|||Good catch!|||Is there a way to configure SQL 2005 Reporting Services using an IIS Website with a specific IP?|||
I'm getting the same event error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
I went into Component Services and Netman has local launch permissions and can find no reference for "Network Connection Manager Class" (the name the ID translates to based upon registry lookup). What in Component Services should I be looking for and where? This is a brand new installation of 2003 Server Professional w/ Exchange 2003 and all the latest service packs/patches. Thanks,
John
|||Had very similar on 4 servers, all using unassigned , but they all had host headers specified. Short summary below to explain.
Each server had three web sites all bound to unassigned ip address, using host headers and diffrent ssl ports to separate ou the traffic.
Report server had previously been working ok until the final site config when the host headers were implemented.
As one site could act as a default then the problem was resolved by adding an additional binding for port 80 with no header specified.
All boxes running fine now.
The origonal posting pointed me in the right direction and as I was also implmenting http endpoints in SQL , I could have spent awhile on red herings. Much thanks.
|||I believe this errors can be fixed by the following 899965
http://support.microsoft.com/?kbid=899965
|||had a similar problem and found out the following:
If you want to run Reporting Services under a different port than normal, you have to change these two config files:
rsreportserver.config
and
RSWebApplication.config
Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>
The result is then
<Configuration>
<UI>
<ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>
.....
and
<Configuration>
... <Service>
....
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
<UnattendedExecutionAccount>
...
Hope this helps,
Martin
PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx
I switched the host headers around (so the default website has host headers, and the RS website doesn't) now it works perfectly.
|||
Folks,
I'm trying to resolve the same error but having a bit of trouble following through the instructions in the KB.
If one of you could please set me right it would be much appreciated.
Firstly, the error I'm getting in the event log is as follows:
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool."
So I go to the regedit and look it up.
I search for BA126AD1-2166-11D1-B1D0-00805FC1270E
And Regedit duly comes up with:
HKEY_CLASSES_ROOT\CLSID\{BA126AD1-2166-11D1-B1D0-00805FC1270E}
Which identifies this as the "Network Connection Manager Class"
Allright..now the KB article then tells me to :
If a Windows Security Alert message prompts you to keep blocking the Microsoft Management Console program, click to unblock the program.
If the AppGUID identifier is listed instead of the friendly name, locate the program by using this identifier.
And this is where I'm stuck.. cos there is nothing there that corresponds to a Network Connection Manager Class or to the CLSID... (is that what they mean in the doc when they refere to AppGUID ?)
So, I can't continue on with the fix.. because I can't find the right app to fix the launch and activation permissions for....
I'd really appreciate a bit of help on this one...
Thanks
PJ
|||
Another question on this...just to be sure I'm chasing the right tail....
When I point a browser at the site http://localhost/Reportserver$DeptServer05 I get the following message...
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Object reference not set to an instance of an object.Default Web Site using wrong IP
I just installed sql server 2005 on a windows 2003 server. I chose the option to install but do not configure. After restarting, I used the Reporting SErvices Configuration Manager and it all looks ok. When I browse to //localhost/reports I get a rs page with the message of:
The request failed with HTTP status 400: Bad Request.
One slightly unusual thing is SQL Server 2005 was installed as a named instance ("(local)\SQL2K5") - the server's default instance is a sql 2000 installation, which had RS installed and running. Before configuring RS for 2k5, I deleted the VDs for Reports and ReportServer from IIS, so that I could recreate them to use 2K5.
The new ReportServer VD appears to work (although no reports are installed to test).
Thanks for any help getting this issue resolved!
I have a bunch of these in Application Log... I have a feeling it's related.. I don't know what it means though
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
Anyone?
I'm not sure the applog error that you're catching is related, so let's try to fix it and then see if the original problem goes away (I suspect it won't):
1. Click Start | Run and run dcomcnfg.exe
2. In MMC, open Component Services | My Computer
3. Right-click My Computer, choose Properties, select the COM Security tab. Click on the edit default button in Launch permissions options area
4. Add network service and give it appropriate perms (Local Launch and Local Activation permissions)
If that doesn't do the trick:
1. Start DCOMCNFG
2. Under Component Services -> My Computer -> Dcom Config -> Netman click
Properties, then Security tab
3. In Launch and Activation Permissions box click Edit.
4. Add Network Service with Local Launch and Local Activation permissions
Good luck!
|||Nope... you were right - neither worked.I have since created 2 new VDs - Reports2K5 and ReportServer2k5, which correspond to my instance of SQL SErver 2005. The REportServer2K5 appears to be working OK... Reports2K5 (manager) still gives me the 400 error.
Would this error be logged anywhere?
Thanks for your help.||| The site (Default web site) was using a specific IP address.. I changed it to All Unassigned and it works!|||Good catch!|||Is there a way to configure SQL 2005 Reporting Services using an IIS Website with a specific IP?|||
I'm getting the same event error:
The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool.
I went into Component Services and Netman has local launch permissions and can find no reference for "Network Connection Manager Class" (the name the ID translates to based upon registry lookup). What in Component Services should I be looking for and where? This is a brand new installation of 2003 Server Professional w/ Exchange 2003 and all the latest service packs/patches. Thanks,
John
|||Had very similar on 4 servers, all using unassigned , but they all had host headers specified. Short summary below to explain.
Each server had three web sites all bound to unassigned ip address, using host headers and diffrent ssl ports to separate ou the traffic.
Report server had previously been working ok until the final site config when the host headers were implemented.
As one site could act as a default then the problem was resolved by adding an additional binding for port 80 with no header specified.
All boxes running fine now.
The origonal posting pointed me in the right direction and as I was also implmenting http endpoints in SQL , I could have spent awhile on red herings. Much thanks.
|||I believe this errors can be fixed by the following 899965
http://support.microsoft.com/?kbid=899965
|||had a similar problem and found out the following:
If you want to run Reporting Services under a different port than normal, you have to change these two config files:
rsreportserver.config
and
RSWebApplication.config
Enter the full path (like http://servername:port/ReportServer) to <ReportServerUrl> (delete <ReportServerVirtualDirectory> then!) or resp. <UrlRoot>
The result is then
<Configuration>
<UI>
<ReportServerUrl>http://mbs05:8088/reportserver</ReportServerUrl>
<ReportServerVirtualDirectory></ReportServerVirtualDirectory>
<ReportBuilderTrustLevel>FullTrust</ReportBuilderTrustLevel>
</UI>
.....
and
<Configuration>
... <Service>
....
<MaxQueueThreads>0</MaxQueueThreads>
<UrlRoot>http://mbs05:8088/reportserver</UrlRoot>
<UnattendedExecutionAccount>
...
Hope this helps,
Martin
PS: see also http://msdn2.microsoft.com/en-us/library/ms159261(SQL.90).aspx
I switched the host headers around (so the default website has host headers, and the RS website doesn't) now it works perfectly.|||
Folks,
I'm trying to resolve the same error but having a bit of trouble following through the instructions in the KB.
If one of you could please set me right it would be much appreciated.
Firstly, the error I'm getting in the event log is as follows:
"The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID
{BA126AD1-2166-11D1-B1D0-00805FC1270E}
to the user NT AUTHORITY\NETWORK SERVICE SID (S-1-5-20). This security permission can be modified using the Component Services administrative tool."
So I go to the regedit and look it up.
I search for BA126AD1-2166-11D1-B1D0-00805FC1270E
And Regedit duly comes up with:
HKEY_CLASSES_ROOT\CLSID\{BA126AD1-2166-11D1-B1D0-00805FC1270E}
Which identifies this as the "Network Connection Manager Class"
Allright..now the KB article then tells me to :
If a Windows Security Alert message prompts you to keep blocking the Microsoft Management Console program, click to unblock the program.
If the AppGUID identifier is listed instead of the friendly name, locate the program by using this identifier.
And this is where I'm stuck.. cos there is nothing there that corresponds to a Network Connection Manager Class or to the CLSID... (is that what they mean in the doc when they refere to AppGUID ?)
So, I can't continue on with the fix.. because I can't find the right app to fix the launch and activation permissions for....
I'd really appreciate a bit of help on this one...
Thanks
PJ
|||
Another question on this...just to be sure I'm chasing the right tail....
When I point a browser at the site http://localhost/Reportserver$DeptServer05 I get the following message...
An internal error occurred on the report server. See the error log for more details. (rsInternalError) Get Online Help
Object reference not set to an instance of an object.
Default web site not listening on port 80
For various reasons our default web site is not listening on port 80, but
81. The installation of Reporting Services went OK and I can do all
administration from the browser. Ie., everything seems OK with the
installation.
However, Visual Studio does not manage to connect to the reportserver for
deployment of reports.
How can I make VS connect?
Is there any other way to deploy reports?
Best regards,
VemundHello again,
Found the answer myself after some research.
Visual Studio doesn't manage to connect to the webserver when the
TargetServerURL is written with an IP address, eg.
http://10.0.0.1:81/ReportServer.
The solution to this was to add an entry in the hosts file as '10.0.0.1
OurReportServer'. Then the TargetServerURL in VS was entered as
http://OurReportServer:81/ReportServer and the deployment went without a
hitch.
Instead of using the hosts file, this should of course be entered into the
local DNS.
Best regards,
Vemund
"Vemund Haga" <vemund.haga@.nospam.nospam> wrote in message
news:%23ZYGIH%23kEHA.1644@.tk2msftngp13.phx.gbl...
> Hello,
> For various reasons our default web site is not listening on port 80, but
> 81. The installation of Reporting Services went OK and I can do all
> administration from the browser. Ie., everything seems OK with the
> installation.
> However, Visual Studio does not manage to connect to the reportserver for
> deployment of reports.
> How can I make VS connect?
> Is there any other way to deploy reports?
> Best regards,
> Vemund
>