Configuring Database After Domain Rename

Nov 20, 2007

I didn't know exactly which forum to post this in, so if I need to post it into another one, please let me know. Also, I have absolutely no SQL or DB experience. I am learning as I go.

The Situation:
I created a virtual network for my company which included MS CRM, which uses SQL Server 2005. Everything was working fine until today. My company asked me to make a change to the domain name, as we are changing company names. I followed the processes through microsoft's documentation that I found online. The rename went fine. Since then, we can no longer access CRM. When I run the environment checks, it gets hung up on the SQL Server components. It says that it can't confirm the MSSQLSERVER service is running (it is) and it can't connect to the database. As best as I can tell, the database is looking for the old domain name, which doesn't exist. How do I edit or configure the existing database to reflect the new domain name. It's important to do this as we have data in that database that we need to access. Any help in this matter is very much appreciated!!!

View 4 Replies


ADVERTISEMENT

Configuring A Domain && SQL SERVER 2005 To Work.

Dec 21, 2006

Attempting to link Access 2003 to SQL 2005, there is something keeping from doing so. 

1 I setup the instance as sqlexpress.

2 I have a database shell there also.

3 It connects when I start the instance service.

4 My remote connections are configured to handle TCP/IP & Named Pipes.

Not in this order, but you get the idea.  Now that I have these in place, I went first to the Access 2003 database to link the tables to this.  When I came accross trouble in the form of need for a DSN to the domain for the things I created above.

In attempting to create one that looked functional, I came back to the same step.  But, unsuccessful to link the tables again because browsing to that domain does not even show that particular file.  This is the problem.  

I do believe that once I am able to select a DSN, I will have a "healthy baby connection". I will then be the proud father of my first Server-side database setup!!!!  But I am trying to get over these labor pains. 

View 1 Replies View Related

Configuring SSRS Datasources With Different Domain Credentials

Dec 17, 2007

We are having our SSRS (Sql Server Reporting Services) Servers deployed in Domain1 to connect to the Domain1 data sources. Now, when we configure the SSRS datasources (which is in Domain1) to run under €śDomain2/User€? credentials , it€™s taking 60 minutes to render a report whereas when we configure the SSRS datasources to run under €śDomain1/User€? account it€™s taking only 5 seconds.

I would like to know €śWhy there is a latency difference while configuring the SSRS data sources with different domain credentials (Domain1Domain2)?€?

Any pointers to Support KB or any other related articles would be really great.

View 2 Replies View Related

How Can I Rename A Login (change The Domain)?

Sep 5, 2007

Hi All,
I would like to rename a login SAMPLE-ITean to NEWDOMAINean, but i get this message:
"The name change cannot be performed because the SID of the new name does not match the old SID of the principal."

the command is : alter login [SAMPLE-ITean] with name=[NEWDOMAINean]
server is sql2005 std (initial base)

what can i do ( there are lot of db on this instance and there are lot of instance where I have to change the domain of the user...) ... and there are lot of user whom I have to change it...:-(

thnx
Csaba

View 1 Replies View Related

Configuring SQL Database To Access It From Web DB

Jul 7, 2007

hi,

I need to connect my Local Database from SQL Server to the Web Database.
I need to know what all things to be done for completing this process. Some one please please help me with this.

Ad if this information is not enough, please do ask me any question regarding this and iam ready to answer them.

One more thing, iam not that familiar with SQL Server 2000 but i can manage to do things.

So please do help me on this.



Clever_Idiot

View 4 Replies View Related

Configuring A Database In Sqlserver?

Jun 9, 2006

I am learning dotnet thru Microsoft Official Curriculum and I got stuck up at one point. That is I couldn't configure the required databases according to the sql server I have installed and configured. I created a doctors database and while configuring using the below code I couldn't know what is 'ASPNET' in "SELECT @s = @@servername + 'ASPNET'"
Also what is 'webuser'



---Configure Doctors
USE doctors

GO

DECLARE @s varchar(50)
SELECT @s = @@servername + 'ASPNET'
EXECUTE sp_grantlogin @s

EXECUTE sp_grantdbaccess @s, 'webuser'

GO

GRANT EXECUTE ON [getUniqueCities] TO webuser
GRANT EXECUTE ON [getDrSpecialty] TO webuser


GRANT SELECT ON [specialties] TO webuser
GRANT SELECT ON [doctors] TO webuser
GRANT SELECT ON [drspecialties] TO webuser

GO


Can anyone help me how to solve my problem?
Your help would be very much appreciated

Thanks and Regards

Kavitha

View 1 Replies View Related

Configuring SQLDataSource With Default Database

Oct 23, 2007

Hello,
I have specified a default database in my web.config like this:
<dataConfiguration defaultDatabase="scsLocal"/>
<connectionStrings>     <add name="scsLocal" connectionString="server=DRLSWARTEBRV;database=SCS;uid=******;password=******;" providerName="System.Data.SqlClient"/>
</connectionStrings>
Now I would like to configure a SQLDataSource control to use this default database, yet it prompts me for a connectionstring. I know I can program it in the code behind file (if I ommit connection string, it will use the default), but then I can make no use of the wizard for configuring the SQLDataSource which would safe me a lot of coding.
 Is there a way to configure the SQLDataSource to use the default database that is specified in the web.config?
 Thanks!
Veerle

View 1 Replies View Related

Help Configuring Database To Work As Intended

Dec 13, 2007

Hello everyone, I have created my web application in VS 2005  using asp.net 2.0  and the built in sql .mdf database creater that comes with visual studio.  After I developed my website, I then wanted to move it to one of our servers on the network, which I did without a problem. The website works fine but here is my challange. I need users to be able to connect to the database via login script and the script inserts computer data into the database.  So I figured I need to attach the Database to SQL Server 2005. When I try to do this it gives me this database is in use. So I stop the website in IIS, and it allows me to add the database into the SQL Server. Once I do this, and start the website again, the website no longer works and I get a bunch of database errors, that do not get fixed untill I re-copy the website to the server.
 Is there a way to just connect to a .mdf file on the network that is not attached to a sql server, through a connection string in a login script?  Maybe there is something else I need to do to the database before copying to the server?  Or should I re-programm the website with a newly created database in SQL Server, and use that as the datasource?

View 3 Replies View Related

Error While Configuring Database Mirroring

Dec 18, 2007

Hi all,

I am trying to set up Database mirroring on my test & DR server. But , I am getting the following Error:
( On local PC Mirroring is successful).

Both the test & DR have same service accounts for SQL Server.

Thanks for all your help.

Thanks.

Error:
TITLE: Database Properties
------------------------------

An error occurred while starting mirroring.

------------------------------
ADDITIONAL INFORMATION:

Alter failed for Database 'databasename'. (Microsoft.SqlServer.Smo)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=9.00.3042.00&EvtSrc=Microsoft.SqlServer.Management.Smo.ExceptionTemplates.FailedOperationExceptionText&EvtID=Alter+Database&LinkId=20476

------------------------------

An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)

------------------------------

The server network address "TCP://Mirrorserver.domainname.local:5022" can not be reached or does not exist. Check the network address name and that the ports for the local and remote endpoints are operational. (Microsoft SQL Server, Error: 1418)

For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=1418&LinkId=20476

------------------------------
BUTTONS:

OK
------------------------------

View 3 Replies View Related

Configuring Connection Manager For 6.5 Database

Feb 23, 2007

Greetings once again SSIS friends,

I am trying to configure a connection manager for a database that is still using SQL Server 6.5 But it is not working properly. I put the server name, user name and pass word, I select the Native OLE DBMicrosoft OLE DB Provider for SQL Server as my provider.

When I click Test Connection it says the connection is fine but then the drop down list for the list of databse names hows nothing!



Am I using the wrong provider?! I'm confused!

View 5 Replies View Related

Configuring The Report Services Database

Apr 18, 2008

I have been trying to configure SQL Server 2005 Report Services. Every time I create the ReportServer database, the systems asks me if I want to "update" the database. It allows me no other option. When I click "apply", I get the message that the database version does not match my installation version. Does anybody have any insight into what happening with the configuration? What's more, do you have a solution?

View 3 Replies View Related

How To Rename A Database

Oct 3, 2006

Hello,

I would like to know how to rename a database. I use SQL manager to access it.

Thank you in advance for your help.

View 8 Replies View Related

Rename A Database Is Possible?

Nov 16, 2006

Dear friends, is it possible to rename a Database?







thank you very much.

Vinod

View 6 Replies View Related

Rename Database

Jun 5, 2007

hi
How can i rename database name through command
Here i tried with the folloeing statement

ALTER DATABASE indraja1
MODIFY NAME = indraja11

but i got error as


Msg 5030, Level 16, State 2, Line 1
The database could not be exclusively locked to perform the operation.

Thanks in Advance

Malathi Rao

View 8 Replies View Related

Database Rename

Jun 8, 2007

Dear experts,
is it possible to rename a database?

I've tried with harsh suggesion from previous posts....


--alter database Script modify name= script_test
Use Master
GO

Alter database Script
Set Single_User
GO


THANK YOU VERY MUCH

Vinod
Even you learn 1%, Learn it with 100% confidence.

View 5 Replies View Related

Rename The Database

Jan 9, 2008

Morning everyone. Can anyone help me to rename the Database please?

View 2 Replies View Related

How To Rename A Database?

Sep 16, 2006

hi

I want to rename the phisical file of the dabase for instance rename <MyDatabase.mdf> to <Renameddatabase.mdf>

every time I do so whether directly renamin the file or by

using Alter Database command I face an error

note that I don't want to logically rename the database

please tell me step by step what to do

thanks in advance

View 10 Replies View Related

How To Rename A Database?

Sep 16, 2006

hi

every time I try to rename my database I face an error

I want to rename the database file phisically not just changing logigal name with

Alter Database <database name> modify name command

please step by step tell me what to do

whether with TSql or Managment Studio

thanks

View 3 Replies View Related

How To Rename A Database?

Sep 16, 2006

hi

every time I try to rename my database I face an error

I want to rename the database file phisically not just changing logigal name with

Alter Database <database name> modify name command

please step by step tell me what to do

whether with using TSql or Managment Studio

thanks

View 1 Replies View Related

Configuring Database Mail In SQL Server 2005

Aug 20, 2007



Hi

I have created profiles in my database as mentioned below. now i want to delete the profile created in database.
can some one tell me how to proceed furthur.

i need to delete them permenantly.
EXECUTE msdb.dbo.sysmail_add_account_sp
@account_name = 'MyMailAccount',
@description = 'Mail account for Database Mail',
@email_address = 'makclaire@optonline.net',
@display_name = 'MyAccount',
@username='makclaire@optonline.net',
@password='abc123',
@mailserver_name = 'mail.optonline.net'
-----------------------------------------------------
EXECUTE msdb.dbo.sysmail_add_profile_sp
@profile_name = 'MyMailProfile',
@description = 'Profile used for database mail'
--------------------------------------------------------EXECUTE msdb.dbo.sysmail_add_profileaccount_sp
@profile_name = 'MyMailProfile',
@account_name = 'MyMailAccount',
@sequence_number = 1

-------------------------------------------------------EXECUTE msdb.dbo.sysmail_add_principalprofile_sp
@profile_name = 'MyMailProfile',
@principal_name = 'public',
@is_default = 1 ; Regardskrishna

View 4 Replies View Related

Configuring Network Routes To A Mirrored Database

Feb 29, 2008

Hi all,

I am struggling with configuring SSB network routes to a mirror database. What I want to accomplish is to configure a SSB application to work in a database mirroring setup but I am not looking for a load balancing solution.

According to SQL Server 2005 Books Online (http://msdn2.microsoft.com/en-us/library/ms166090.aspx) the typical routing configuration for a service hosted by a mirrored database is set by specifying the 'mirror_address' field but leaving the 'broker_instance' field empty (i.e. NULL) in the sys.routes table (see Example 3 in link above). I haven't seen how this is possible because if you specify the MIRROR_ADDRESS parameter in the CREATE/ALTER ROUTE command then you must also specify the BROKER_INSTANCE parameter.

I haven't found a way to set the mirror_address field to a valid value and the broker_instance field as NULL, is this possible? If not I must set the broker_instance as the guid of my broker instance but my understanding is that it should primarily be used for load balancing configuration. My preference would be to not set the BROKER_INSTANCE parameter, is this possible?

Best regards,
Oli

View 1 Replies View Related

Rename A Database Under Mssql 6.5?

Apr 17, 2000

Hello:

I am supporting a mssql 6.5, sp 4 application.

We have set up an user acceptance server with a database that is the same as production. However, I have been told that this database and server may be used for applying fixes rather than user acceptance.

To avoid confusion over which database is on which server, it might be a good idea to rename the database. I am not sure if this can be done un der mssql 6.5?

1)Can I rename a database?

2)If so, how can I do so?

Which system tables would I use to update?

Any information you can furnish will be appreciated. THanks.

David Spaisman

View 2 Replies View Related

How To Rename Database Using Script

Sep 10, 2007

Hi,

which command is used to rename the database?


regards,
revanth

revanth babu

View 2 Replies View Related

How To Copy And Rename A Database: Same Server

Jul 23, 2005

How does one make a copy of a database (with the data) on the sameserver. Would like to do this to use the copy in a test environment. Ilooked at the Copy Database Wizard but the instructions in Books Onlinestate that the database must be copied to another server and cannot berenamed using this process.Thank you.

View 2 Replies View Related

Deletion/Rename Of Master Database.

Nov 19, 2007

Hi All,

Can we have an sql server installation where we dont have a master database. Can the complete data dictionary be stored in another database , or put it other way can master database be renamed.

I have a need to assume that there will always be a master database for any SQL server instance. Want to confirm whether this assumption is true or not.

Thanks in advance.

Chandrakant Karale.

View 4 Replies View Related

Configuring A Linked Microsoft Access Database On SQL Server 2005

Nov 7, 2007

The following installation:

- Microsoft SQL Server 2005 Standard Edition running on Microsoft Windows Server 2003 Standard Edition
- Client Service for Netware installed.
- Access 2000 database in a Novell Directory Services (NDS) Environment
- SQL Server service running under local Administrator account.


Linked server configured as follow:

Linked server: MyDB
Provider: Microsoft Jet 4.0 OLE DB Provider
Product name: Access 2000
Data Source: UNC path to my Access database

Security: Admin with no password (default Access behaviour)

I can connect to my access database by following the next steps:

- Open Management studio on the SQL Server itself (where I'm logged in as Administrator)
- Connect using Windows Authentication (Administrator)
- Create a new query, run EXEC sp_tables_ex 'MyDB'

This will return all the tables from the Access database.

I can also make a view pointing to MyDB...MyTable.

Enough prove to me It can work....

So far so good


But now the tricky part.

When I login as 'sa', I can't connect and will receive the following message:

OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "MyDB" returned message "'Full UNC to my access database' is not a valid path. Make sure that the path name is spelled correctly and that you are connected to the server on which the file resides.".Msg 7303, Level 16, State 1, Procedure sp_tables_ex, Line 41Cannot initialize the data source object of OLE DB provider "Microsoft.Jet.OLEDB.4.0" for linked server "MyDB".


(In real life I want to connect to my SQL 2005 Server from a ASP.NET (2.0) application using SQL authentication, but as long as I can't get the above working this is not important for now)

View 3 Replies View Related

SQL Express: Duplicate, Rename And Copy A Database

Jun 18, 2008

Hi,
first of all escuse my English. I'm new to SQL Server, my experience is with MySQL, Interbase and Firebird, but now I have a new job so I need to use SQL Server, version 2005 Express.
I have two SQL 2005 Express installations in two different machines (local and remote). I can access both servers via SQL Management Studio
I need to do the following:
1) Create a copy of a database with a new name in the same machine (local).
2) Copy the new renamed database to another host (remote)
Please help me, remember I use Express edition.

Thanks in advance.

Giorgio

View 1 Replies View Related

Transact SQL :: Trigger - Want To Get Email If Someone Rename Database

Nov 10, 2015

Trying to find tsql for TRIGGER which will send me email, if someone rename database in test/dev environment. I found it for CREATE and DROP database trigger but could not find for RENAME database.

View 8 Replies View Related

SQL Security :: Log Ship Database In Server Instance In One Domain To Database

Jul 2, 2015

I had created 2 Sql server instance in 2 servers created using VMware. From the primary server I log shipped the required databases into the secondary. Both the servers were in the same domain whose active directory was also in another server in the same virtual lab environment. My question can we have the primary sql server in one domain and the secondary sql server to which the logs are shipped in another domain by including a router also between the 2 networks for connectivity?

View 6 Replies View Related

SQL Server Admin 2014 :: Rename A Live Database?

Jan 31, 2015

I want to Replace The Big Log database with A new one ( A database with same structure).But current DB has many connection .

This is my plan :

1- Create a new database with same structure.

2- Rename current database to olddb with this code :

USE master
GO
EXEC sp_dboption CurDataBase, 'Single User', True
EXEC sp_renamedb 'CurDataBase', 'OldDataBase'
GO
3- Rename Newdb to current DB.
USE master
GO
EXEC sp_renamedb 'NewDataBase', 'CurDataBase'

is it true ? and Tsql code is ok ? (dont forget many of connection to curdatabase (that Is a log db) and loss some seconds data is not problems)

View 4 Replies View Related

User On Trusted Domain Does Have Permission To Access Linked Server On AD Deployed In Another Domain

Sep 28, 2007

Hi,
We have the followoing:

-A "master domain" AD, a "sub domain" AD, a trust relationship between the two (sub trust master)
-A sql server 2005 on a win server 2003 in "sub domain" AD
-A linked server to "sub domain" AD
-A linked server login using a "sub domain" admin acccount
-A view to this linked server
-A grant on masterDomain/Domain Users to the database
-A grant on subDomain/Domain Users to the database
-We want all connections done through "Windows Authentication" not "Database Authentication".

Queries on the view work fine using "sub domain" user accounts.
Queries on the view fail using "master domain" user accounts (including master domain admin accounts)


"Msg 7399, Level 16, State 1, Line 1

The OLE DB provider "ADsDSOObject" for linked server "ADSI" reported an error. The provider indicates that the user did not have the permission to perform the operation."

All connections are done through "Windows Authentication" not "Database Authentication".

Can we establish cross domain connectivity with "Windows Authentication" ?


Below are details of the implementation:

SELECT TOP (100) PERCENT *
FROM OPENQUERY(ADSI,
'SELECT displayname, givenName, sn, cn (etc...)
FROM ''LDAP://OU=PEOPLE,DC=subDomain,DC=com''
WHERE objectCategory = ''Person'' AND objectClass = ''user'' ')

EXEC sp_addlinkedsrvlogin @rmtsrvname ='ADSI', @useself='false',
@rmtuser='subDomainAdminAccnt', @rmtpassword='sunDomainAdminAccntPassword';

In SQL Server Mngt Studio in Server Objects/Linked Servers/Providers/ ADSI properties security tab I have:

"connections will: <be made using this security context> Remote login:'subDomainAdminAccnt' With password: 'subDomainAdminAccntPassword'

Error:
Msg 7399, Level 16, State 1, Line 1

The OLE DB provider "ADsDSOObject" for linked server "ADSI" reported an error. The provider indicates that the user did not have the permission to perform the operation.

Msg 7320, Level 16, State 2, Line 1

Cannot execute the query "SELECT displayname, givenName, sn, cn

FROM 'LDAP://OU=PEOPLE,DC=subDomain,DC=com'

WHERE

objectCategory = 'Person'

AND objectClass = 'user'

" against OLE DB provider "ADsDSOObject" for linked server "ADSI".

View 7 Replies View Related

Problems With Change Sql Permissions After Migrating Domain User/group Accounts Into Root Domain

Apr 5, 2007

I have a root domain and child domain.



After using ADMT to migrate the domain user or group into the root domain, when I use enterprise manager to try and change the permissions allocated to that domain user/group, i get the 'Error 15401 NT user or Group not found'.



This is a correct error as the user is now in the root domain, however sql (in sysxlogins) still thinks its in the child domain.



Is there a simpler way, other than collecting the users permissions, deleting the user from SQL then adding back in with the correct domainusername format, then adding the permissions back?



I tried renaming the 'name' in sysxlogins (not recommended) and while that worked, whenever I tried to add the migrated user to another database, the login name was missing and would not resolve.



I believe it is something to do with the SID not matching.



Any ideas on how to fix this ?

View 1 Replies View Related

SQL Security :: Domain Migration Altered SA Or Domain Admin Access To DBs

Jun 19, 2015

we recently migrated from our in-house domain to the Enterprise domain. Everything went smooth except for the fact that I can no longer accept my dBs using my SA or my domain admin account. There is only 1 account I can get into the management studio with but it has no admin privileges, so I can't make any  password changes or add accounts. I don't have a test environment so kind of hesitant to experiment with our production system.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved