Thursday, March 22, 2012
changing AD domains with SS2005
Is there anything such as certain store procedures to run or gotchas to be
looking out for to do this move between domains?
Thanks
-Jason
Hello Jason,
Based on my scope, SIDhistory does not work for this situation. After you
migrate the server to the new doamin, you have to migrate users of the old
domain to new domain so that the new domain users could have the same
permssions.
First, you need to transfer logins of old domain to new domain.
How to transfer the logins and the passwords between instances of SQL
Server 2005
http://support.microsoft.com/kb/918992/
Then you need to maintain the mapping between the logins in the master
database and the users in the user database by using the SIDs. This mapping
is necessary to maintain correct permissions for the logins in the user
databases. In SQL 2000, you could use the sp_sidmap stored procedure
mentioned in the following article to map SIDs for logins between original
and new server:
240872 HOW TO: Resolve Permission Issues When You Move a Database Between
http://support.microsoft.com/?id=240872
However, in SQL 2005, sp_SidMap doesn't work because it needs to write to
system table directly. You may need to develop a script to do the job
manually.
Please refer to the following article for more related information:
314546 HOW TO: Move Databases Between Computers That Are Running SQL Server
http://support.microsoft.com/?id=314546
If you have any further concerns, please feel free to let's know. Thank
you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications
<http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscriptions/support/default.aspx>.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
|||what about the local groups that were created on the server at install?
e.g. SQLServer2005MSSQLServerADHelperUser$
and SQLServer2005MSSQLUser$
etc.
""Peter Yang[MSFT]"" wrote:
> Hello Jason,
> Based on my scope, SIDhistory does not work for this situation. After you
> migrate the server to the new doamin, you have to migrate users of the old
> domain to new domain so that the new domain users could have the same
> permssions.
> First, you need to transfer logins of old domain to new domain.
> How to transfer the logins and the passwords between instances of SQL
> Server 2005
> http://support.microsoft.com/kb/918992/
> Then you need to maintain the mapping between the logins in the master
> database and the users in the user database by using the SIDs. This mapping
> is necessary to maintain correct permissions for the logins in the user
> databases. In SQL 2000, you could use the sp_sidmap stored procedure
> mentioned in the following article to map SIDs for logins between original
> and new server:
> 240872 HOW TO: Resolve Permission Issues When You Move a Database Between
> http://support.microsoft.com/?id=240872
> However, in SQL 2005, sp_SidMap doesn't work because it needs to write to
> system table directly. You may need to develop a script to do the job
> manually.
> Please refer to the following article for more related information:
> 314546 HOW TO: Move Databases Between Computers That Are Running SQL Server
> http://support.microsoft.com/?id=314546
> If you have any further concerns, please feel free to let's know. Thank
> you.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ==================================================
> Get notification to my posts through email? Please refer to
> http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
> ications
> <http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscriptions/support/default.aspx>.
> ==================================================
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
|||Hello Jason,
These groups are for internal purpose which gets created during the time of
installation. You don't need to worry about the groups when migrating since
they are related to the local server other than the domains.
If you have any further quesitons or concerns, please feel free to let's
know. Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
================================================== ===
When responding to posts, please "Reply to Group" via your
newsreader so that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Hi Jason,
I'm still interested in this issue. If you have any comments or questions,
please feel free to let's know. We look forward to hearing from you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
================================================== ===
When responding to posts, please "Reply to Group" via your
newsreader so that others may learn and benefit from this issue.
================================================== ====
This posting is provided "AS IS" with no warranties, and confers no rights.
changing AD domains with SS2005
ain “b”
Is there anything such as certain store procedures to run or gotchas to be
looking out for to do this move between domains?
Thanks
-JasonHello Jason,
Based on my scope, SIDhistory does not work for this situation. After you
migrate the server to the new doamin, you have to migrate users of the old
domain to new domain so that the new domain users could have the same
permssions.
First, you need to transfer logins of old domain to new domain.
How to transfer the logins and the passwords between instances of SQL
Server 2005
http://support.microsoft.com/kb/918992/
Then you need to maintain the mapping between the logins in the master
database and the users in the user database by using the SIDs. This mapping
is necessary to maintain correct permissions for the logins in the user
databases. In SQL 2000, you could use the sp_sidmap stored procedure
mentioned in the following article to map SIDs for logins between original
and new server:
240872 HOW TO: Resolve Permission Issues When You Move a Database Between
http://support.microsoft.com/?id=240872
However, in SQL 2005, sp_SidMap doesn't work because it needs to write to
system table directly. You may need to develop a script to do the job
manually.
Please refer to the following article for more related information:
314546 HOW TO: Move Databases Between Computers That Are Running SQL Server
http://support.microsoft.com/?id=314546
If you have any further concerns, please feel free to let's know. Thank
you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Community Support
========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.aspx#notif
ications
<http://msdn.microsoft.com/subscript...ps/default.aspx>.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
<http://msdn.microsoft.com/subscript...rt/default.aspx>.
========================================
==========
This posting is provided "AS IS" with no warranties, and confers no rights.|||what about the local groups that were created on the server at install?
e.g. SQLServer2005MSSQLServerADHelperUser$
and SQLServer2005MSSQLUser$
etc.
""Peter Yang[MSFT]"" wrote:
> Hello Jason,
> Based on my scope, SIDhistory does not work for this situation. After you
> migrate the server to the new doamin, you have to migrate users of the old
> domain to new domain so that the new domain users could have the same
> permssions.
> First, you need to transfer logins of old domain to new domain.
> How to transfer the logins and the passwords between instances of SQL
> Server 2005
> http://support.microsoft.com/kb/918992/
> Then you need to maintain the mapping between the logins in the master
> database and the users in the user database by using the SIDs. This mappin
g
> is necessary to maintain correct permissions for the logins in the user
> databases. In SQL 2000, you could use the sp_sidmap stored procedure
> mentioned in the following article to map SIDs for logins between original
> and new server:
> 240872 HOW TO: Resolve Permission Issues When You Move a Database Between
> http://support.microsoft.com/?id=240872
> However, in SQL 2005, sp_SidMap doesn't work because it needs to write to
> system table directly. You may need to develop a script to do the job
> manually.
> Please refer to the following article for more related information:
> 314546 HOW TO: Move Databases Between Computers That Are Running SQL Serve
r
> http://support.microsoft.com/?id=314546
> If you have any further concerns, please feel free to let's know. Thank
> you.
> Best Regards,
> Peter Yang
> MCSE2000/2003, MCSA, MCDBA
> Microsoft Online Community Support
> ========================================
==========
> Get notification to my posts through email? Please refer to
> l]
> ications
> <[url]http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx" target="_blank">http://msdn.microsoft.com/subscript...ps/default.aspx>.
> Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
> where an initial response from the community or a Microsoft Support
> Engineer within 1 business day is acceptable. Please note that each follow
> up response may take approximately 2 business days as the support
> professional working with you may need further investigation to reach the
> most efficient resolution. The offering is not appropriate for situations
> that require urgent, real-time or phone-based interactions or complex
> project analysis and dump analysis issues. Issues of this nature are best
> handled working with a dedicated Microsoft Support Engineer by contacting
> Microsoft Customer Support Services (CSS) at
> <http://msdn.microsoft.com/subscript...rt/default.aspx>.
> ========================================
==========
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>|||Hello Jason,
These groups are for internal purpose which gets created during the time of
installation. You don't need to worry about the groups when migrating since
they are related to the local server other than the domains.
If you have any further quesitons or concerns, please feel free to let's
know. Thank you.
Best Regards,
Peter Yang
MCSE2000/2003, MCSA, MCDBA
Microsoft Online Partner Support
========================================
=============
When responding to posts, please "Reply to Group" via your
newsreader so that others may learn and benefit from this issue.
========================================
==============
This posting is provided "AS IS" with no warranties, and confers no rights.sql
Wednesday, March 7, 2012
Change the InsertCommand of a datasource before insert
Hi,
I am trying to set the InsertCommand of a SqlDataSource prior to a new record being created in DetailsView. It has to be changed because certain fields are not being used in one scenerio and it is causing Null's to be written to the database.
Here is what I have tried:
I set the Insert command on page Load:
protectedvoid Page_Load(object sender,EventArgs e){
SqlDataSource3.InsertCommand =
"Insert into table (name,realName,type,extraValue) VALUES (@.name,@.realName,@.type,@.extraValue)";}
But I don't want to insert the "extraValue if a certain condition is true so I want to change the insert command to SqlDataSource3.InsertCommand ="Insert into table (name,realName,type) VALUES (@.name,@.realName,@.type)
I tried to do that in the following:
protectedvoid DetailsView1_ItemInserted(Object sender, System.Web.UI.WebControls.DetailsViewInsertedEventArgs e){
SqlDataSource3.InsertCommand ="Insert into table (name,realName,type,extraValue) VALUES (@.name,@.realName,@.type,@.extraValue)";
if (e.Exception !=null){
ErrorMessageLabel.Text =
"An error occured while entering this record. Please verify you have entered data in the correct format.";e.ExceptionHandled =
true;Response.Write(e.Exception);
}
GridView1.DataBind();
GridView1.DataBind();
}
But it doesn't seem to change,
Any Help would be appreciated,
Doug
Excuse me, maybe I missed it, but where did you change the insert command of SqlDataSource3? I saw you assign the same string to the insert command of SqlDataSource3 twice:
The first time:
protected void Page_Load(object sender, EventArgs e)
{
SqlDataSource3.InsertCommand =
"Insert into table (name,realName,type,extraValue) VALUES (@.name,@.realName,@.type,@.extraValue)";
}
And the second time:
protected void DetailsView1_ItemInserted(Object sender, System.Web.UI.WebControls.DetailsViewInsertedEventArgs e)
{
SqlDataSource3.InsertCommand ="Insert into table (name,realName,type,extraValue) VALUES (@.name,@.realName,@.type,@.extraValue)";
|||Sorry I made the same reply by mistake
|||Some logic for this:
On you page load event:
IF condition1 is true THEN
SqlDataSource3.SelectCommand=" SELECT name,realName,type,extraValue FROM table"
SqlDataSource3.InsertCommand =
"Insert into table (name,realName,type,extraValue) VALUES (@.name,@.realName,@.type,@.extraValue)"
ELSE
SqlDataSource3.SelectCommand ="SELECT name,realName,type FROM table"
SqlDataSource3.InsertCommand ="Insert into table (name,realName,type) VALUES (@.name,@.realName,@.type)
END IF
}
|||Sorry, the second should be:
protected void DetailsView1_ItemInserted(Object sender, System.Web.UI.WebControls.DetailsViewInsertedEventArgs e)
{
SqlDataSource3.InsertCommand ="Insert into table (name,realName,type) VALUES (@.name,@.realName,@.type)
That is actually what I tried. But it doesn't seem to change..
|||Thanks for taking a look,
Unfortunately the condition doesn't change on page load, it changes when a radio button is clicked within this page:
protectedvoid Type_Changed(object sender,EventArgs e){
string aha = ((RadioButtonList)DetailsView1.FindControl("type")).SelectedItem.Value;if (aha =="Mortgage"){
DetailsView1.Fields[6].Visible =
true;DetailsView1.Fields[7].Visible =
true;DetailsView1.Fields[8].Visible =
true;}
else{
DetailsView1.Fields[6].Visible =
false;DetailsView1.Fields[7].Visible =
false;DetailsView1.Fields[8].Visible =
false;}
}
I tried to change the Sql Insert command here but it doesn't seem to work.
Thanks again,
Doug
Saturday, February 25, 2012
Change text color
Dear all,
May I know how can I change a text color if the data meet certain condition?
Thanks in advance
Levine
You can set this in the properties window.
Click on the textbox you want to change and then click in the "Color" box.. select the dropdown in that field and clickon "Expression..".
Then use a formula such as:
=IIF( Sum(Fields!Hours.Value)>=7 , "Black", "Crimson")
The expression builder can assist you with your own data fields etc.
Sunday, February 19, 2012
change sender for subscription.
I guess that I need to change RSreportServer.config.
However it made effects on all reports subscripted.
the problem is that I need to change some reports under certatin folder.
is there someone could answer this question?
thanks.This is not supported through the config file. The SendEmailToUserAlias
property will enable all users to set the sender. What you can do is grant
users, that need to change the sender, the 'Manage All subscriptions'
permission. This will allow them to set the sender. It will also allow
them to create Data Driven subscriptions and to modify other users
subscriptions so it might do more then you want.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"ken lee" <klee@.monetagroup.com> wrote in message
news:O1ploUkBGHA.312@.TK2MSFTNGP09.phx.gbl...
>I need change the sender for the reports under certain folder.
> I guess that I need to change RSreportServer.config.
> However it made effects on all reports subscripted.
> the problem is that I need to change some reports under certatin folder.
> is there someone could answer this question?
> thanks.
>