Showing posts with label user. Show all posts
Showing posts with label user. Show all posts

Friday, March 30, 2012

Installing MSDE - User Security Issues...

Hi,
Could someone point me in the direction of a step-by-step tutorial for
replicating a SQL Server 2000 database as an MSDE database in a seperate
machine, with all tables (including data), users/security, etc.
Currently I'm taking a backup (I can't script the data from Ent. Mgr) and
using oSQL to restore the database to an MSDE install on a machine.
It's done in two steps - installing MSDE and restoring the backup. However,
after the backup has been restored (the user restores correctly) - I am
unable to connect to the database as the default user that I created in the
backup. If I remove the user and re-add him via Ent. Mgr then I can
connect... does anyone know why this is?
First Step - Install MSDE script:
^^^^^^^^^^^^^^^^^^^^^^^^
Set objShell = CreateObject("WScript.Shell")
Set fso = createobject("scripting.filesystemobject")
Set WshNetwork = WScript.CreateObject("WScript.Network")
objShell.Exec(fso.getabsolutepathname(".") & "\setup.exe BLANKSAPWD=1
SAPWD="""" SECURITYMODE=SQL TARGETDIR=""C:\Program Files\Microsoft SQL
Server\Mssql\Binn\"" DATADIR=""C:\Program Files\Microsoft SQL
Server\Mssql\Data\"" instancename=""" & WshNetwork.ComputerName &
"\DatabaseName""")
Second Step - Restore the database backup:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Set objShell = CreateObject("WScript.Shell")
set fso = createobject("scripting.filesystemobject")
Set WshNetwork = WScript.CreateObject("WScript.Network")
currentpath = fso.getabsolutepathname(".")
' Start the msde service
objShell.Exec("net start MSSQL$" & WshNetwork.ComputerName &
"\DatabaseName")
' Make local data and backup directories
'objShell.Exec("md c:\SQL_Databases\DATA")
'objShell.Exec("md c:\SQL_Databases\BACKUP")
' Copy this Repository.bak to the SQL_Databases DatabaseName.bak
fso.CopyFile currentpath &
"\Repository.bak","c:\SQL_Databases\BACKUP\DatabaseName.bak"
' Restore
objShell.Exec(currentpath & "\osql.exe -S" & WshNetwork.ComputerName &
"\DatabaseName -E -Q ""restore database DatabaseName from disk =
'C:\SQL_Databases\BACKUP\DatabaseName.bak'""")
All I want to do is reproduce one of my SQL Server databases AS IS on
several client workstations by way of an MSDE installer.
Any help gratefully appreciated !
Thanks,
Mike
xposted to closely related groups: .sqlserver.msde, .sqlserver.security,
.sqlserver.setup
--
Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><
. ,
.:/
. ,,///;, ,;/
. o:::::::;;///
quote:

>::::::::;;\\\

''\\\\'" ';\
';\314546 HOW TO: Move Databases Between Computers That Are Running SQL Server
http://support.microsoft.com/?id=314546
304692 INF: Moving SQL Server 7.0 Databases to a New Server with BACKUP and
http://support.microsoft.com/?id=304692
Thanks,
Kevin McDonnell
Microsoft Corporation
This posting is provided AS IS with no warranties, and confers no rights.|||"Kevin McDonnell [MSFT]" <kevmc@.online.microsoft.com> wrote in message
news:clkWql2wDHA.2900@.cpmsftngxa07.phx.gbl...
quote:

> 314546 HOW TO: Move Databases Between Computers That Are Running SQL

Server
quote:

> http://support.microsoft.com/?id=314546
> 304692 INF: Moving SQL Server 7.0 Databases to a New Server with BACKUP

and
quote:

> http://support.microsoft.com/?id=304692

Hi Kevin and Joseph,
Many thanks for your replies relating to my difficulties with the orphaned
users that arise when restoring a backup on a different server.
Using the sp_change_user_login stored procedure worked perfectly.
Thanks again for your advice, and please accept my apologies for the slight
crosspost.
Best Regards,
Mike
Liddle Feesh
*fap fap fap fap*
<>< <>< <>< <>< ><>
<>< <>< <>< <>< <>< <><
. ,
.:/
. ,,///;, ,;/
. o:::::::;;///
quote:

>::::::::;;\\\

''\\\\'" ';\
';\sql

Monday, March 26, 2012

Installing DSO ..

This summary is not available. Please click here to view the post.

Installing DSO ..

Hi,
I am in the process of creating/setting up cubes from an ERP application
(Axapta) across user machines. In some of the machines I noticed an error
message (which I believe) indicates DSO objects not being installed.
A quick look at SQL BOI gave me details of DSO library.
My query is - where can I get hold of this DSO library files?
Can someone let me know please. Many thanks in advance,
Harish Mohanbabu
--
MBS Axapta - MVP
http://www.harishm.com/
> My query is - where can I get hold of this DSO library files?
The DSO library is what Analysis Manager uses to build/manage OLAP
Databases. It should be installed when you install the client tools for
Analysis Services 2000. If there is something wrong with the
registration of the dll the default path is C:\Program Files\Common
Files\Microsoft Shared\DSO\msmddo80.dll. But as far as I know there is
no re-distributable version of this library. The users would need to be
OLAP Administrators to use it anyway.
Regards
Darren Gosbell [MCSD]
<dgosbell_at_yahoo_dot_com>
Blog: http://www.geekswithblogs.net/darrengosbell|||Hi,
You may try to copy the following files
msmddo.dll
msmddo80.dll
msmdint.dll
msmdnet.dll
You could register these com objects by using regsvr32.exe. for example:
regsvr32 "C:\Program Files\Common Files\Microsoft Shared\DSO\msmddo.dll"
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 your issue.
This posting is provided "AS IS" with no warranties, and confers no rights.
--
>From: Darren Gosbell <xxx@.xxx.com>
>Subject: Re: Installing DSO ..
>Date: Tue, 25 Oct 2005 10:20:56 +1000
>Message-ID: <MPG.1dc825762779a60598976e@.news.microsoft.com>
>References: <89CCB5B6-1AE5-4C63-B3D3-37FA2953C0B3@.microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain; charset="iso-8859-15"
>Content-Transfer-Encoding: 7bit
>User-Agent: MicroPlanet-Gravity/2.60.2060
>Newsgroups: microsoft.public.sqlserver.datawarehouse
>NNTP-Posting-Host: cpe-61-9-145-77.vic.bigpond.net.au 61.9.145.77
>Lines: 1
>Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.sqlserver.datawarehouse:2370
>X-Tomcat-NG: microsoft.public.sqlserver.datawarehouse
>
>The DSO library is what Analysis Manager uses to build/manage OLAP
>Databases. It should be installed when you install the client tools for
>Analysis Services 2000. If there is something wrong with the
>registration of the dll the default path is C:\Program Files\Common
>Files\Microsoft Shared\DSO\msmddo80.dll. But as far as I know there is
>no re-distributable version of this library. The users would need to be
>OLAP Administrators to use it anyway.
>
>--
>Regards
>Darren Gosbell [MCSD]
><dgosbell_at_yahoo_dot_com>
>Blog: http://www.geekswithblogs.net/darrengosbell
>

Friday, March 23, 2012

Installing a Named SQL Instance

I am migrating a SQL Instance to an existing SQL 2000 cluster that already
has the default instance installed. There is a large user community that
will be accessing the databases in the 2nd instance and I am trying to find a
way to configure the installation so that they can continue to use the same
ODBC connections. Today, they are configured using a single name (such as
RAVEN). Is it possible to configure the 2nd instance using this single name?
Thanks in advance.
You should be able to create a DNS SRV record to point to the named
instance.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau
"Brian" <Brian@.discussions.microsoft.com> wrote in message
news:9FC76909-7CB6-48E2-A5E5-236F7665A150@.microsoft.com...
I am migrating a SQL Instance to an existing SQL 2000 cluster that already
has the default instance installed. There is a large user community that
will be accessing the databases in the 2nd instance and I am trying to find
a
way to configure the installation so that they can continue to use the same
ODBC connections. Today, they are configured using a single name (such as
RAVEN). Is it possible to configure the 2nd instance using this single
name?
Thanks in advance.
|||I remember doing this on a migration, and i had issues with some clients
trying to access using the new DNS record, it ws solved applying MDAC 2.8.
I hope you don't run in this error but try to check this is you experience
any problem.
"Tom Moreau" wrote:

> You should be able to create a DNS SRV record to point to the named
> instance.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada
> https://mvp.support.microsoft.com/profile/Tom.Moreau
>
> "Brian" <Brian@.discussions.microsoft.com> wrote in message
> news:9FC76909-7CB6-48E2-A5E5-236F7665A150@.microsoft.com...
> I am migrating a SQL Instance to an existing SQL 2000 cluster that already
> has the default instance installed. There is a large user community that
> will be accessing the databases in the 2nd instance and I am trying to find
> a
> way to configure the installation so that they can continue to use the same
> ODBC connections. Today, they are configured using a single name (such as
> RAVEN). Is it possible to configure the 2nd instance using this single
> name?
> Thanks in advance.
>
|||I assumed he was using current MDAC, but that's a good point.
Tom
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
SQL Server MVP
Toronto, ON Canada
https://mvp.support.microsoft.com/profile/Tom.Moreau
"Frivas" <Frivas@.discussions.microsoft.com> wrote in message
news:3DFCE095-1AD3-42E5-B97B-D38570E13B8D@.microsoft.com...
I remember doing this on a migration, and i had issues with some clients
trying to access using the new DNS record, it ws solved applying MDAC 2.8.
I hope you don't run in this error but try to check this is you experience
any problem.
"Tom Moreau" wrote:

> You should be able to create a DNS SRV record to point to the named
> instance.
> --
> Tom
> ----
> Thomas A. Moreau, BSc, PhD, MCSE, MCDBA, MCITP, MCTS
> SQL Server MVP
> Toronto, ON Canada
> https://mvp.support.microsoft.com/profile/Tom.Moreau
>
> "Brian" <Brian@.discussions.microsoft.com> wrote in message
> news:9FC76909-7CB6-48E2-A5E5-236F7665A150@.microsoft.com...
> I am migrating a SQL Instance to an existing SQL 2000 cluster that already
> has the default instance installed. There is a large user community that
> will be accessing the databases in the 2nd instance and I am trying to
> find
> a
> way to configure the installation so that they can continue to use the
> same
> ODBC connections. Today, they are configured using a single name (such as
> RAVEN). Is it possible to configure the 2nd instance using this single
> name?
> Thanks in advance.
>
|||Named Instance support was introduced in MDAC 2.6. If you have to use an
earlier MDAC stack, you must alias the named instance using the client
network utility on each client.
Geoff N. Hiten
Senior Database Administrator
Microsoft SQL Server MVP
"Frivas" <Frivas@.discussions.microsoft.com> wrote in message
news:3DFCE095-1AD3-42E5-B97B-D38570E13B8D@.microsoft.com...[vbcol=seagreen]
>I remember doing this on a migration, and i had issues with some clients
> trying to access using the new DNS record, it ws solved applying MDAC 2.8.
> I hope you don't run in this error but try to check this is you experience
> any problem.
> "Tom Moreau" wrote:

Sunday, February 19, 2012

Installation error: "Login failed for user 'sa'."

Hi everyone, I need some help.

I am trying to install a clean copy of SQL 2005 onto this server. It goes along fine until installing the "SQL Server Database Services" when I then get:

SQL Server Setup could not connect to the database service for server configuration. The error was: [Microsoft][SQL Native Client][SQL Server] Login failed for user 'sa'. Refer to server logs and setup logs for more information. For details on how to view setup logs, see "How to View Setup Log Files" in SQL Server Books Online.

There did used to be SQL installed on this server, but we un-installed it. What do I need to do now to install a fresh copy of SQL?

Thanks!
-tim
Have you tried installing a named instance? Try that rather than the default instance to see if it works. If it does, then you likely have some issue with the old installation.
Tim

Installation Error

to I keep getting the following error "SQL Server Setup was unable add user NT AUTHORITY\NETWORK SERVICE to local group SQLServer2005DTSUser" everytime i try to load SQL 2005. How can i stop this to be able to complete the install?

Here are a couple of things to try:

1. Check the installation log files, located at %Program

Files%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files for more

details on the error. (Search for the text string "value 3" to get to the failed log)

2. Try to add the service manually to the local groups using the Computer Management Admin tool. Then re-run setup.

Thanks,
Sam Lester (MSFT)

Installation Error

to I keep getting the following error "SQL Server Setup was unable add user NT AUTHORITY\NETWORK SERVICE to local group SQLServer2005DTSUser" everytime i try to load SQL 2005. How can i stop this to be able to complete the install?

Here are a couple of things to try:

1. Check the installation log files, located at %Program

Files%\Microsoft SQL Server\90\Setup Bootstrap\LOG\Files for more

details on the error. (Search for the text string "value 3" to get to the failed log)

2. Try to add the service manually to the local groups using the Computer Management Admin tool. Then re-run setup.

Thanks,
Sam Lester (MSFT)