Showing posts with label create. Show all posts
Showing posts with label create. Show all posts

Friday, March 30, 2012

Installing MSDE using VS.NET

Hi all,
I want to create setup/Installer project in Visual
Studio.NET 2003 that will detect MSDE. If MSDE already
installed then setup will not install MSDE , If not then
setup will install MSDE.
So please tell me have will i installed MSDE
using /Installer project in Visual Studio.NET 2003.
Thx in Advance
Amit
Hi Amit,
You can download MSDE toolkit, that is a plug-in to Microsoft Visual Studio
that automates the process of creating an integrated package with both the
application and the MSDE database, from
http://www.microsoft.com/downloads/d...403-c4ba-4d98-
bb0b-2c9d6414071f&DisplayLang=en
This toolkit will help you in customizing and designing a setup for MSDE
that can be integrated with your application.
HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Thank you ashish great link. I installed on my system
working fine .
My next question is how i can add my database file in MSDE
using same VS.Net installer.
Amit

>--Original Message--
>Hi Amit,
>You can download MSDE toolkit, that is a plug-in to
Microsoft Visual Studio
>that automates the process of creating an integrated
package with both the
>application and the MSDE database, from
>http://www.microsoft.com/downloads/details.aspx?
FamilyID=6e9a7403-c4ba-4d98-
>bb0b-2c9d6414071f&DisplayLang=en
>
>This toolkit will help you in customizing and designing a
setup for MSDE
>that can be integrated with your application.
>HTH
>Ashish
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>.
>
|||Hi Amit,
You can go through the following technical article that helps in designing
classes for MSDE installation.
http://msdn.microsoft.com/library/de...us/dnmsde/html
/msdedepl.asp
According to that you can use the "AfterInstall" event to add the database
to the MSDE server.
According to my understanding, you will have to include the database files
in your setup and extract it to the desired location, and then execute the
"attachdb" function or the sp_attach_db stored procedure from the object.
HTH
Ashish
This posting is provided "AS IS" with no warranties, and confers no rights.
|||Hi Ashish,
Thank you my installation nightmare is over.
But i have still one problem.
I am using trusted connection to connect my web site with
MSDE database.
In command line i use
osql -S myserver\Instancename -E connected successfully.
while connecting with my website it will give following
error.
"Login failed for user "servername\ASPNET"
i also use SQL connection in which i provide user id and
password but the result is same an error occurs.
"Login failed for user "sa". Reason: Not associated with
trusted SQL server Connection"
please tell me where i am wrong.
Thanks
Amit

>--Original Message--
>Hi Amit,
>You can go through the following technical article that
helps in designing
>classes for MSDE installation.
>http://msdn.microsoft.com/library/default.asp?
url=/library/en-us/dnmsde/html
>/msdedepl.asp
>
>According to that you can use the "AfterInstall" event to
add the database
>to the MSDE server.
>According to my understanding, you will have to include
the database files
>in your setup and extract it to the desired location, and
then execute the
>"attachdb" function or the sp_attach_db stored procedure
from the object.
>HTH
>Ashish
>This posting is provided "AS IS" with no warranties, and
confers no rights.
>.
>
|||Hi Amit,
The user servername\ASPNET is the default user name that the ASP.NET process
runs as within the operating system. It is configured in the machine.config
file. By default, it has no access to your databases.
You have three basic options:
1. Grant appropriate database access to the ASPNET user.
2. Use impersonation on the site - configured in your web.config file (ie
impersonate the windows user that the end user is connecting as - not great
for public sites of any type)
3. Have your application log on as a specific user and grant that user
access to the database.
HTH,
Greg Low (MVP)
MSDE Manager SQL Tools
www.whitebearconsulting.com
"Amit" <anonymous@.discussions.microsoft.com> wrote in message
news:213c01c42794$69f54020$a101280a@.phx.gbl...[vbcol=seagreen]
> Hi Ashish,
> Thank you my installation nightmare is over.
> But i have still one problem.
> I am using trusted connection to connect my web site with
> MSDE database.
> In command line i use
> osql -S myserver\Instancename -E connected successfully.
> while connecting with my website it will give following
> error.
> "Login failed for user "servername\ASPNET"
> i also use SQL connection in which i provide user id and
> password but the result is same an error occurs.
> "Login failed for user "sa". Reason: Not associated with
> trusted SQL server Connection"
>
> please tell me where i am wrong.
>
> Thanks
> Amit
>
> helps in designing
> url=/library/en-us/dnmsde/html
> add the database
> the database files
> then execute the
> from the object.
> confers no rights.
sql

Wednesday, March 28, 2012

INSTALLING MSDE

I followed all instructions, then I got an example from microsoft on creating a database, it isjust a visual basic example, it has a button create database and it says sql server not found but i can see it on the tray that it is running and using the web interface i can see the databases so i dont know why doesnt the microsoft created example doesnt work.
Thank youShell out to a DOS prompt and type in
osql -L
This will provide you a list of the SQL servers you have access to.

Now, compare this server name to the name of the server in the connection string you are using.

Do they match?

If they match, please provide the connection string you are using and the exact error message you are getting.

Terri

Monday, March 26, 2012

Installing and Uninstalling Express Edition

Hi guys,

I'm trying to create a all-in-one installation package for my application which make use of the SQL 2005 Express edition. It seems that there's no way to roll my application MSI installation with the database engine, the only ways around this problem is to use a bootstrap exe to launch the sql setup before or after my main application's MSI. This works fine during installation and I have modified the original .NET framework bootstrapper to do just that.

The problem comes when uninstalling my application. Since the uninstall process is all done through the MSI engine, how would I take the sql instance with me during my application's uninstall? Since the sql engine is also based on MSI technology, I won't be able to do that during the removal step of my application's MSI, right? Any one know any "clean" ways around that? Besides not letting users uninstall my application directly from Add/Remove program and force them to call another exe simular to my installation bootstrap?

I'm considering to use 3rd party tools like InstallShields, but even them are recommending people to stay with the MSI technology which is where the problem is. I'm running out of ideas really fast...

Thanks in advance!

William

Hi,

Since my initial posting, I've been working on the command to uninstall a named instance of SQL Server 2005. I though it would help once I get my problem above solved, as it seems to be the next logical step.

It seems that from MSDN (http://support.microsoft.com/default.aspx/kb/909967), there isn't a way to automate this process neither. The command ARPWrapper.exe don't have (or I couldn't fine) parameter to specify the named instance I'm trying to remove. The switch "/REMOVE" just brings up a window letting user choose their instance to remove. Anyone knows if such a way exists?

As I've said before, I'm trying to package my .NET application with SQL Server 2005 Express Edition into one. So that users can install and uninstall from one place with minimal user intervention. It seems to be such a common task, but it's certainly not too intuitive.

William

|||I too want to have the ability to uninstall a named instance of SQL Server 2005 Express SP2 from the command prompt in silent mode? You were you able to find a solution?sql

Wednesday, March 21, 2012

Installed SQLServer Express.....now what?

Hi

I've succesfully installed Visual C# and I've made a couple of example projects. I now want to try and create a database and see if I can make a C# application that talks to it.

So I've installed SQL Server Express. I was hoping I could open it up and get started with creating tables etc. Instead, my Start menu shows:

Microsoft SQL Server 2005

>>>Configuration Tools

>>>>>>SQL Server Configuration Manager

>>>>>>SQL Server Error and Usage Reporting

>>>>>>SQL Server Surface Area Configuration

Where do I go now? Is there some configuring to do before I can start making tables and storing data? Or, have I misunderstood what SQL Server is about?

Thanks


Rich

For one thing, VS provides tools that allow you to create databases and then fill them with all kinds of database goodness. (i.e. Tables, Views, Stored Procedures, you name it.) They pretty much give you everything you need.

If you want to use the SQL Tools to do this, you'll need to download SQL Management Studio Express, which you can get from the SQL Express download page. Once you install SSMSE, you'll see another item on your Start menu.

Mike

Monday, March 12, 2012

Installation problems

I have installed MSDE locally on Windows XP Pro, just for
testing SQL Server CE 2.0 on a PocketPC.
I know that one other application can create and access
data tables,
but osql does not work at all, except for the statement
osql -E -Q "SELECT * FROM syslogins"
I assume that 'Pubs' is a default database that is
supposed to be installed. How can I verify that?
hi Nils,
Nils wrote:
> I have installed MSDE locally on Windows XP Pro, just for
> testing SQL Server CE 2.0 on a PocketPC.
> I know that one other application can create and access
> data tables,
> but osql does not work at all, except for the statement
> osql -E -Q "SELECT * FROM syslogins"
what kind of error are you reported with?
if your login account has been granted database access to master database
and have read permission on system table (bad :D) you should be able to
query it, else you will be reported with something like
Server: Msg 230, Level 14, State 1, Line 1
SELECT permission denied on column 'password' of object 'syslogins',
database 'master', owner 'dbo'.

> I assume that 'Pubs' is a default database that is
> supposed to be installed. How can I verify that?
the Pubs and Northwind sample database are not installed by MSDE in order to
limit it's distribution size, so you have to download them separately at
http://msdn.microsoft.com/library/de...ionutility.asp
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
|||I found another useful hint by you: I will try that!
MSDE installs by default disabling network protocols to prevent external
mailcius attacks...
you have to manually enable them, bot at install time providing the
DISABLENETWORKPROTOCOLS=0
parameter to setup.exe boostrap installer and/or later using the Server
Network Utility (svrnet.cn.exe) to enable the desired/required network
protocol (usually TCP/IP)
Andrea Montanari (Microsoft MVP - SQL Server)
"Andrea Montanari" wrote:

> hi Nils,
> Nils wrote:
> what kind of error are you reported with?
> if your login account has been granted database access to master database
> and have read permission on system table (bad :D) you should be able to
> query it, else you will be reported with something like
> Server: Msg 230, Level 14, State 1, Line 1
> SELECT permission denied on column 'password' of object 'syslogins',
> database 'master', owner 'dbo'.
>
> the Pubs and Northwind sample database are not installed by MSDE in order to
> limit it's distribution size, so you have to download them separately at
> http://msdn.microsoft.com/library/de...ionutility.asp
> --
> 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
>
>

Wednesday, March 7, 2012

installation microsoft SQL 2000 and service pack at the same time

Are thre any way to create an installation CD to install
SQL 2000 at service pack 3 performing only one setup
process.
Thanks in advanceSee the other replies.
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Marino Prandini" <marino_prandini@.hotmail.com> wrote in message
news:022501c3ae97$863857c0$3101280a@.phx.gbl...
> Are thre any way to create an installation CD to install
> SQL 2000 at service pack 3 performing only one setup
> process.
> Thanks in advance
>|||LOL.
That was supposed to be "See replies to your other thread."
--
Tibor Karaszi, SQL Server MVP
Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
"Tibor Karaszi" <tibor.please_reply_to_public_forum.karaszi@.cornerstone.se> wrote in message
news:ecCkeEqrDHA.2880@.tk2msftngp13.phx.gbl...
> See the other replies.
> --
> Tibor Karaszi, SQL Server MVP
> Archive at: http://groups.google.com/groups?oi=djq&as_ugroup=microsoft.public.sqlserver
>
> "Marino Prandini" <marino_prandini@.hotmail.com> wrote in message
> news:022501c3ae97$863857c0$3101280a@.phx.gbl...
> > Are thre any way to create an installation CD to install
> > SQL 2000 at service pack 3 performing only one setup
> > process.
> >
> > Thanks in advance
> >
>