Wednesday, March 28, 2012
running a script to create a database in MSDE
sp3 on a user machine. I need to create a database on the
users machine, how do I incorporate the SQL script to
create the database? Do I call the script within the
setup.ini file? Any sample anywhere I can take a look at?
Thank you,
Randers
hi Randers,
Randers wrote:
> I've been able to create a CD where it installs MSDE 2000
> sp3 on a user machine. I need to create a database on the
> users machine, how do I incorporate the SQL script to
> create the database? Do I call the script within the
> setup.ini file? Any sample anywhere I can take a look at?
> Thank you,
> Randers
unfortunately is not that easy as you are trying to do... nothing from the
box...
you can perhaps run oSql.exe to execute your DDL sql script, or a home built
app of yours you pass the path to your script and execute it via an
ADO/Ado.Net connection, or have a look at
http://msdn.microsoft.com/msdnmag/is...baseinstaller/ for
a custom made database installation task...
another approach is relying on tools such as
http://www.red-gate.com/sql/sql_packager.htm
or you could redistribute a full backup of your database made on your
distribution environment and, via osql.exe and/or a home built app of yours
relying on ADO/Ado.Net connection restore it on the destination instance...
the very same path could be performed using the .Mdf and .Ldf detached
database files and reattache them using sp_attach_db system stored
procedures...
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.10.0 - DbaMgr ver 0.56.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
Friday, March 23, 2012
RunCommands problem in Setup.lst
install my MSDE SP3 at the end of the installation. So I've placed the
following command in the setup.lst under [RunCommands]
MSDERelA\setup.exe InstanceName="TaShel" SAPWD "sa" SecurityMode="SQL
MSDERelA is a folder on my setup cd containing the MSDE files.
I can use the same command to run it from the command prompt but the command
is not running during the setup process.
If anyone could shed some light on this problem of mine.
Thanks
Dorji
hi Dorji,
Dorji wrote:
> Im trying to create a setup cd using office setup wizard. I want the
> setup to install my MSDE SP3 at the end of the installation. So I've
> placed the following command in the setup.lst under [RunCommands]
I'm not prepared about office setup wizard... try asking in the Office ng
hyerarchy...
BTW...
MSDERelA\setup.exe InstanceName="TaShel" SAPWD "sa" SecurityMode="SQL
=
MSDERelA\setup.exe InstanceName="TaShel" SAPWD="sa" SecurityMode=SQL
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.14.0 - DbaMgr ver 0.59.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
Tuesday, March 20, 2012
Run simultaneously msde 2000 instance and one of 2005 express, possible?
I got on my developer computer one instance of msde 2000. I want to test sql server express 2005, can I install it without "scrap" my other instance of 2000?
Strange question maybee, but it's what I wanna do!
Thanks all!
You can run these side by side as long as you give them different instances names.
Mike
|||Thanks Mike, I was waiting for an answer like that to launch the setup! :PBye
Friday, March 9, 2012
run both enterprise and msde on same box
on the same box?
I am working on an application that will include MSDE, and I'd like to
test it on my developing machine that is already running Enterprise. I
could just shut off Enterprise, but the MSDE needs to be a subscriber,
so they both need to be running.
Thanks,
-Casey
hi,
C Williams wrote:
> Is it possible to run both MSDE and enterprise edition (sql server
> 2000) on the same box?
> I am working on an application that will include MSDE, and I'd like to
> test it on my developing machine that is already running Enterprise. I
> could just shut off Enterprise, but the MSDE needs to be a
> subscriber, so they both need to be running.
yes, it can be done..
up to 16 instances can be installed on the very same machine, resources
permitting :D
Andrea Montanari (Microsoft MVP - SQL Server)
http://www.asql.biz/DbaMgr.shtmhttp://italy.mvps.org
DbaMgr2k ver 0.16.0 - DbaMgr ver 0.61.0
(my vb6+sql-dmo little try to provide MS MSDE 1.0 and MSDE 2000 a visual
interface)
-- remove DMO to reply
Wednesday, March 7, 2012
run a query against another server
I used to import using Enterprise Manager tables from our corp servers into my local MSDE to work with.
I have managed to create the required tables in SQL Exprerss and can see I have a connection to my local server (SQL Express) and my corp server.
When I query sys.servers I only see SQL Express and not the corp one. How do I run a select query that selects from the corp and inserts into the local. I have all the insert fields etc but it errors stating the corp database is not in sys.serevrs?
Thanks
hi,
you have to define a "linked server"..
select the Server Objects->Linked Servers node in SSMSE in your local connection server... add a linked server pointing to the corp server providing the appropriate credentials..
you can then query the linked server providing the 4 part naming of the object like
SELECT * FROM linked_server_name.database_name.schema_name.object_name;once you have the connection working, you can then INSERT SELECT into your local database..
regards
|||Hi, I tried this but get errors?I can connect in server explorer within VS.NET 2005 Pro IDE and get the following information:
Provider=
.NET Framework Data Provider for SQL Server
Connection String=
Data Source=Virtue;Initial Catalog=orbital;Integrated Security=True
I do not get an option to choose this provider in the combobox on the New Linked Server page?
So I get this error?
TITLE: Microsoft SQL Server Management Studio Express
"The linked server has been created but failed a connection test. Do you want to keep the linked server?"
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)
The OLE DB provider "SQLNCLI" for linked server "VIRTUE" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "VIRTUE".
OLE DB provider "SQLNCLI" for linked server "VIRTUE" returned message "Invalid authorization specification".
OLE DB provider "SQLNCLI" for linked server "VIRTUE" returned message "Invalid connection string attribute". (Microsoft SQL Server, Error: 7399)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=7399&LinkId=20476
|||
hi,
pachjo wrote:
Hi, I tried this but get errors? I can connect in server explorer within VS.NET 2005 Pro IDE and get the following information:
Provider=
.NET Framework Data Provider for SQL ServerConnection String=
Data Source=Virtue;Initial Catalog=orbital;Integrated Security=TrueI do not get an option to choose this provider in the combobox on the New Linked Server page?
this information is relative to the "Add connection" wizard in the Server Explorer, isn't it?
actually the .NET Framework Data Provider for SQL Server is SQL Native Client and, in my installation, it is obviously available in SSMSE as well as SQLNCLI..
So I get this error?
TITLE: Microsoft SQL Server Management Studio Express
"The linked server has been created but failed a connection test. Do you want to keep the linked server?"
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.Express.ConnectionInfo)The OLE DB provider "SQLNCLI" for linked server "VIRTUE" reported an error. Authentication failed.
Cannot initialize the data source object of OLE DB provider "SQLNCLI" for linked server "VIRTUE".
OLE DB provider "SQLNCLI" for linked server "VIRTUE" returned message "Invalid authorization specification".
OLE DB provider "SQLNCLI" for linked server "VIRTUE" returned message "Invalid connection string attribute". (Microsoft SQL Server, Error: 7399)For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=7399&LinkId=20476
did you provide the correct credential info for the remote server?
regards
|||Well I can connect no problem through server explorer and accerss the data. I used the same connection string from there and tried various things such as:Linked Server = Virtue
Provider=SQL Native Client
Product Name=Virtue (not sure what to put here?)
Data source=Virtue
Connection String=Data Source=Virtue;Initial Catalog=orbital;Integrated Security=True
Catalog=blank
I am unsure what I am doing wrong here?
|||
hi,
Linked Server: network name of the remote SQL Server instance
Provider = SQL Native Client
Product Name = Provider = SQL Native Client
then you can go on bypassing the additional info of the "General" tab of the "Add linked server" dialog...
in the "Security" tab select the appropriate mapping or specify a specif SQL Server login (Be made using this security context)..
regards
|||This is really getting me down as I am getting no where
I set the details as above and tried entering my nt logon details in various ways to include/omit the domain name but still no joy!
What I dont get is within VS.NET it connects straight away without bother and I can acces the tables! ?
|||HI,
OK I am sort of there, but not completely?
I have created a connection to the remote server and created a linked server to it using the same coalation as the remote.
But when I create the tables, import the date all is well until I try to run a script and I get a coaltion conflict?
The remote is SQL_Latin1_General_CP1_CI_AS but I get an error complaining about
Latin1_General_CI_AS?
When I look at the remote and the linked they both say SQL_Latin1_General_CP1_CI_AS so I don't know where SQL_Latin1_General_CI_AS is coming from?
Help anyone....
|||Oh...hold the phone!
I think I have found it?
The local database has the wrong coalation so.......I will start again ;-)