Deploying Applciation Built On SQL Server Express

Nov 3, 2005

hi all,

Can any one clarify me the doubt in deploying the application build with SQL Server Express 2005 as database and Vb.Net 2005 as frontend with the same setup made for delopying application. will the server installation and database creation can be made automatic.

If this is possible then what are the steps in doing so and the files to be included while enbeding with vb.net setup.

thanks

harsh

View 2 Replies


ADVERTISEMENT

Deploying Multi-user Sql Express Database To SQL Express Server

Jul 10, 2007



Okay, I've read massive topics on ClickOnce, and embedded database applications, etc, etc.



I need a handful of good suggestions how I can create a deployment package, to get my sql express database onto a SQL Express server.



The database will need to be multi-user, because I am also developing a WinForms application to connect to the SQL Express database.



I'm thinking I need to use some automated scripting features, to generate scripts for the database once I am done (unless you have a better suggestion).



After that, I need to know what to do with those scripts, and how can I create a setup / deployment packages to run those scripts against a SQL Express server.



The other alterntative obviously is to copy my sql express database, and run an attach command. This will work the first time, only because this will have been the first deployment of this database.



Please keep in mind when answering this question, that I will not be embedding the database, and as far as I understand ClickOnce is a feature for use with embedded databases or user instance databases (not sure).



Daniel Crane

View 6 Replies View Related

Unattended (Silent) Install SQL Server Express How Do I Specify A The Built In System Account???

Aug 15, 2006

When doing a unattended install of Microsoft SQL Server Express, I have a problem specifing the service to installed to be run under the as local system account.

I'm using: SQLACCOUNT & SQLPASSWORD parameters but it just won't work.

As default SQL Server is installed using the NETWORK SERVICE account, this causes the database to be read-only. What I want is to specifiy in the script that the service should run under the LOCAL SYSTEM account instead. This must also be OS-language independent.

I've tried:

SQLACCOUNT=NT AUTHORITYSYSTEM
SQLACCOUNT=NT AUTHORITYLOCAL SYSTEM
SQLACCOUNT=NT AUTHORITYLOCAL SERVICE
SQLACCOUNT=SYSTEM

SQLACCOUNT=BUILT-INSYSTEM


etc.

and even some different SID as:

S-1-5-18
S-1-5-19

All with no password with the SQLPASSWORD parameter:

SQLPASSWORD=

I still getting the same error while validating the service account.

Is there someone else who knows what I'm doing wrong?

Best regards,

Mattias

View 5 Replies View Related

Built Database With SQL Server Management Studio Express, How Can I Quikly Add Test Data?

Apr 13, 2006

I've built my SQL Server Express database with SQL Serevr Management Studio Express, and now I want to enter some seed data to assist in building tha app around it. I cannot find an option to manage the data in SQL SMSX, like I used to with Enterprise Manager.
I don't want to have to write an app just to get test data in. Seems like this should be a common need. Am I missing something obvious here? Can't find any reference to this in a search of the forums.
Please help.
 

View 1 Replies View Related

Deploying With Sql Server Express

Mar 16, 2006

I have developed a windows mobile 5.0 application that is currently syncing with sql server 2005. I want to deploy the application with sql server express for the client. What do I need to do to make this work?

Thank you.

View 6 Replies View Related

Deploying SQL Server 2005 Express

Feb 1, 2006

Hello
1.) Is there any solution for integrating the deployment of the sql server express into the setup project of my vb 2005 app ? 'Cause it is too much to install the framework... then the sql server and then the app....... Any help would be appreciated!

Thx

View 1 Replies View Related

Deploying Windows App And A Sql Server Express Database

Apr 29, 2008

Hi there. I've created a windows forms app that connects to a sql server express database. now that it's working on my box, i need to install the entire solution on the end user's machine.
what's the best way to move the database? I found this article:
http://msdn.microsoft.com/en-us/library/ms165716.aspx
but i'm wondering if anyone can give me some insights based on your own experience.
I'm using ms visual studio 2005 and sql server express 2005.
I'm hoping that all i'll really have to do is copy everything over to the new machine and then edit my connection string in the .exe.config file for my app.

Thanks in advance for your help.

View 5 Replies View Related

How To Create An Installer For Deploying Sql Server Express

Jul 19, 2007

Hi,



I have created an installer for deploying Sql Server Express. My installer will start the process of installing Sql Server Express. However the installation of SqlServer Express will fail because it says another installer is currently running (which is my installer). Is there anyway to work around this problem?



The reason why I would like to create an installer for the installation of Sql Server Express is because I would like to configure the SqlServerExpress without the user fiddling with the ini file.



Thanks

View 1 Replies View Related

Built-in Data Types In SQL Express: Best Practices?

Jul 21, 2006

Greetings,



I think these should be rather simple questions, yet I spent a number of hours last night digging through the forums here and msdn and couldn't find any satisfactory answers. Basically, there tend to be types of information that are commonly saved in most databases, like names, addresses, phone numbers, email addresses, etc...and there are a variety of built in data types in SQL Server. What are the best built in datatypes for some of the common entries in a sql database. Also, there are a number of character based types and I am curious why one would be more useful in certain situations than another. Why is there char( ), nchar( ), varchar( ), nvarchar( ) and text datatypes? Why so many? Also, what is the "text" datatype and when is it most likely to be used? There is very little about the text type that I can find in the msdn or SQL Server docs...aside from the fact that it's text. On top of all this, there's numerous binary types as well. I'm really not getting the reason behind all these different basic types and why I would want to use one over the other in any specific instance.



TIA,

Mark



View 14 Replies View Related

Problem When Trying To Deploy A Web Site Built With Asp.net 2.0 And Using SQL EXPRESS

Jun 6, 2006

Hi,

Plz help!

I built a web site using IIS and ASP.NET 2.0.

My web site has a log on screen and I only configured it with one user without any roles. This web site uses the SQL EXPRESS.(I Have 2 databases: 1 for the security required by the application and the other for my application. for the connectionstring I used a windows authentication security with an instance = true.)

Everything went well on my PC.

When I tried to deploy the web site on another PC, there was a big problem.

When I tried to login with the same user I created, then I have a problem.

The password is incorrect(Why? I don't know).

Maybe there is a problem with the IIS or with the SQL SERVER.

pLZ HELP!!

View 1 Replies View Related

Deploying SQL Express 2005

Jun 28, 2006

Hello,
I work for a company that manages computers and their software using Active Directory. One of our packages requires SQL Express 2005, and so far I've been unable to find a good resource online. All I need to do is find a .msi file or a batch script that will install it. Thanks!

View 1 Replies View Related

Deploying SQL Express With ASP.Net Application

Jul 6, 2007

I have a small ASP.Net application developed in VS 2005 that I would like to deploy with SQL Express.

I have included the MDF file in the Application and added SQL Express as a pre-requisite for the Setup and Deployment project.

It installs SQL Express but when it tries to connect I receive:
"This is not a valid login Cannot open user default database. Login failed. Login failed for user 'NT AUTHORITYSYSTEM'."

I don't seem to have any options using the "prerequisite options in VS 2005 in terms of command line deployment parameters.

Likewise I would prefer to attach the database to the instance (because I need to write a connection string from a PDA using RDA and I have zero clue how to do RDA directly back to the file).

Thanks for any help!

View 1 Replies View Related

Deploying SQL Express Throughout The Organization/Enterprise

May 17, 2007

What are some recommended methods for deploying SQL Express throughout an entire organization? It appears that Active Directory/GPO deployment is out of the equation.



Thanks,

Shane

View 5 Replies View Related

Deploying SQL Express Database Files With ClickOnce App Using OLE

Jan 18, 2008



I've written a ClickOnce app that deploys a Sql Server Express data file (.mdf) and log file (.ldf) along with the other application files. SQL Express SP2 is a prerequisite for this app. After the applicaiton installs and starts up it copies these files to a specific folder and attaches them by calling the AttachDatabase() method of a Microsoft.SqlServer.Management.Smo.Server object.

This method works fine using Windows XP, however when I run it on Windows Vista I get the following exception:

Microsoft.SqlServer.Management.Smo.FailedOperationException: Attach database failed for Server 'localhostSQLEXPRESS'. ---> Microsoft.SqlServer.Management.Common.ExecutionFailureException: An exception occurred while executing a Transact-SQL statement or batch. ---> System.Data.SqlClient.SqlException: Unable to open the physical file "C:WashMasterDatabasewasshmaster.mdf". Operating system error 5: "5(Access is denied.)".

This exception occurs when I try to programmatically attach the database.

I've searched through the MSDN forums for a solution and I've only found two suggestions:

1.) Create all database connections using a User Instance.
2.) Create the database (using SQL) in the target folder, rather than copying it over from the deployment folder.

I don't like the idea of using User Instances because my entire data access layer is currently written using Ole and I would rather not rewrite it if I don't have to. I cannot find any way to use User Instances with Ole.

I also don't like the idea of creating the database using SQL because it is fairly large.

Here are my questions:

1.) Can User Instances be used with Ole?

2.) Can I somehow programmatically set the permissions of the copied data and log files so that SQL Express can access them without error?

3.) Is there a better method for doing what I'm trying to do or am I destined to have to either rewrite in data access layer so I can use User Instances or create my large database rather than copy it to the target directory?

Thanks.

View 4 Replies View Related

Problem Deploying SQL Express Database To Hosted Environment

Nov 2, 2007

I have a web app that uses two SQL Express databases. One of the databases is the membership database. I am deploying the app to a hosted environment. Here is my connection string:


<add name="Akamojo_APSNETDB" connectionString="Data Source=.SQLExpress; AttachDBFileName=|DataDirectory|Akamojo_ASPNETDB.mdf; Initial Catalog=Akamojo_ASPNETDB; Integrated Security=true; User Instance=true"/>


Here is the error that I get:

Could not open new database 'Akamojo_ASPNETDB'. CREATE DATABASE is aborted.
Cannot attach the file 'e:hostingmemberakamojoTournamentLogApp_DataAkamojo_ASPNETDB.mdf' as database 'Akamojo_ASPNETDB'.
File activation failure. The physical file name "c:inetpubwwwrootTournamentLogApp_DataAkamojo_ASPNETDB_log.LDF" may be incorrect.
The log cannot be rebuilt when the primary file is read-only.

The mdf file is not read only. In the hosted environment the database is on the E drive. In my dev environment the database is on the C drive. From the error message, it appears that when it tries to build the log file it is trying to build it on the C drive in a path that doesn't exist in the hosted environment.

Any help is greatly appreciated.

-Darrell

View 1 Replies View Related

Deploying SSRS In SQL Express Edition With Advanced Services

Aug 4, 2007

Hello, I am having a difficult time with a complicated task. I have developed numerous SSRS reports for my application and want to deploy these reports with my application. The application uses SQL Express Edition with Advanced Services. I have written an installer to automate this process, but my problem is getting the SSRS reports that I developed on my server incorporated into the ReportServer database created during the install of SQL Express Edition with Advanced Services. I have read numerous good posts and articles regarding the rsconfig.exe and rskeymgmt.exe utilities, but I am having problems. The main problem seems to be dealing with the encryption key. I have done a restore of the ReportServer database using a backup of the ReportServer database I used to develop my SSRS reports. This worked well with the exception that I can't seem to get past an error message stating that reportiong services has not been initialized. Keep in mind, I need an automated way to do this. Anyway, I have tried using rskeymgmt to restore a backed up copy of the encryption file that I took from the server where I developed the reports. I get an error message that scale-out deployment is not supported in this version or something like that. I can't delete the encrypted data because then the connection information for my shared data source is deleted also. Again, please keep in mind I need all of this to occur behind the scenes during an install without end-user intervention.

Anyways, sorry for such a long post. I would appreciate any help anyone may be able to provide.

Tim

View 3 Replies View Related

Problems Deploying Express Database App In Common App Data Path

Jan 28, 2008

Hello,
I would like to deploy a per-machine Express database as part of my VS2005 C# desktop application. The deployment must work with both XP and Vista from the same setup files. I'm not using One-Click installation. I don't want my users to have to configure Express with the Surface Area Configuration tool.

Since the database cannot go in C:Program Files because of Vista ACL issues, I am using COMMONAPPDATACompanyNameAppName as the install path for the database and other user writable application files. In XP this expands to C:Documents and SettingsAll UsersApplication DataCompanyNameAppName and in Vista it is C:ProgramDataCompanyNameAppName. Neither of these paths have write privileges for unprivileged users, so the install program needs to change the write permissions at install time. Right now I am using SetACL ( http://setacl.sourceforge.net/ ), to do that and the install goes fine with write permissions on the companyName folder and it's children for all users.

But I can't connect to the mdf file in my COMMONAPPDATACompanyNameAppName folder. If I am the administrator/installer it works fine, but as an unprivileged user I get different errors, but mostly "Could not login user ...". For debugging, I have also tried installing the database in the "AppFolder" directory (which for my app in both Vista and XP is C:Program FilesCompanyNameAppName) and using "User Instance=true" in the connection string, and the connection is made but (at least on XP) the unprivileged user cannot write to the database because the folder lacks write privileges for that user.

I suppose one thing I could do would be to change the folder/file permissions in the AppFolder, but I am reluctant to do that because I have read that Microsoft does not guarantee that the "Compatibility" feature in Vista for the Program Files directory will be available in future releases/service packs.

So is there a way to do a simple installation/db connection for a per-machine database located in a COMMONAPPDATA path?

Thanks for your help.

View 13 Replies View Related

SQL Server 2000 Extended SP Built Using .NET 1.1 (Is It Possible?)

May 20, 2008



Hello Pros,

I have a .NET 1.1 component that I want to use as an extended stored procedure in SQL Server 2000. Is this possible? FYI, I read in many sources (e.g. MSDN blogs) that creating extended stored procedures can only be done using a low level language such as C/C++.

I am wondering if it's possible to expose this component as a COM component using the .NET interop library, then register it with SQL Server 2000, and finally be able to consume it from TSQL?

Help please,

Yousef

View 1 Replies View Related

Enumerate SQL Server Built-in Functions

Oct 4, 2006

Hi

I am trying to build a tree similar to the one in SQL Server Management Studio for the system functions in the SQL language.

I would like to group them by type (e.g. string functions) and display information about the parameters and return types, etc.

Is there a way to get these programmatically? I would like to avoid typing them out by hand.

Thanks

Chris

View 6 Replies View Related

SQL 2012 :: Built A Separate Server Just For SSIS

Mar 18, 2015

Has ever built a separate server just for SSIS and how did you do it?

View 2 Replies View Related

Need Help To Built A Client-server Inventory Software

Oct 23, 2006

Hi everyone,
I am a novice programmer. I want to develop a Inventory software using
C# 2005, which will run on a LAN environment. There will be three machine
which will store and retrive data from a common database. Which version
of SQL server is appropiate for this ? Is it possible to provide the
networking facilily using MS Access ? I don't know how to configure SQL
Server for this. Please help me.
Thank You.

View 4 Replies View Related

Is It Enought To Copy The .MDF File To The Server When I Use The Built-in 2.0 User Management?

Jan 23, 2006

Hello,
Sorry my newbie question, but I didn't find how to install my ready asp2.0 application (VS2005) to the target Win2003 server. I use SQL Express 2005 both in my dev machine and the Win2003 server. I simply copied all the .aspx and .mdf file there and I made a virtual directory in the server's IIS. My application works corretly without the database, but when I try to log-in it says: wrong user name or password. With Management Studio Express I made a SELECT to see my built-in users (I added these users in my dev machine before the deploying), and I found them correctly. But when I try to log-in via my application it seems as if it would be empty. Then I made a simply page with createUserWizard to try adding new users in the server but the SQL said: the database is read-only (in the IIS I enabled all rights (eg. read, write, run)).
Is there a special way to deploy my SQL file or the whole application? Sorry, I am not enough familiar with it

View 3 Replies View Related

SQL Server Admin 2014 :: Get Value Of Global Built-in Field (ReportFolder) In SSRS?

Sep 16, 2015

I need to grab the value of the ReportFolder built-in global filed to a particular report on Report Manager, i.e., the full path to a particular report, when the user runs/executes the particular report, SSRS. Once I get this I need to process the path and get the Parent folder to the report and pass that to a stored procedure to do some business logic.

View 0 Replies View Related

Tutorial And Demos For All SQL Server 2005 Built-in Data Mining Algorithms

May 11, 2007

Hi, all experts here,

Thank you for your kind attention.

Could please any of you give me some advices for if there are tutorials and demos avaiable which cover all the SQL Server 2005 data mining built-in algorithms?

That will be great to hear from any of you shortly. Thanks a lot in advance.

With best regards,

Yours sincerely,

View 8 Replies View Related

Using MatLab Built-in Statistical Functions Inside SQL Server Stored Procedure

May 17, 2007

Hi everybody,



I would like to use MatLab built-in statistical functions (beta, gamma, normal, etc.) from inside a SQLServer stored proceudre. Does anyone know if possible? (Of course, If so, where can I get documentation for doing this?)



Thanks in advance!



JorgeHG.

View 5 Replies View Related

What Advanced Features Can Be Built With Code In SQL Server 2005 Reporting Services?

Apr 16, 2007

Hi, all experts here,

Thank you very much for your kind attention.

As we know the limited features on SQL Server 2005 Reporting Services, but we can build advanced features for it with coding on it. Would please any experts shed me any light on it in a summary like what advanced features could be added with coding on SQL Server 2005 Reporting Services?

Thanks a lot in advance for your kind help and advices. And I am looking forward to hearing from you.

With best regards,

Yours sincerely,

View 3 Replies View Related

SQL Server 2008 :: Usage Of Built-in Functions On Columns Ignores / Excludes Indexes On That Column?

May 25, 2015

Somewhere i read..that in SQL Server...usage of Built-in Functions on Columns, makes query optimizer to ignore indexes on that column...!

So lets say we have table EMP with Emp_id and Emp_Name....

Also we have Non-Clustered index on Emp_Name.

So following query would NOT use Non-Clustered index on Emp_Name column.

SELECTLEFT(emp_name, 3) as emp3
FROMdbo.EMP

Is this true? i am using SQL Server 2008.

View 4 Replies View Related

Deploying SQL Server On To A CD

Sep 2, 2005

Hi Well this is my first post on this forum, in fact I have not even used SQL Server yet!

My question is.... I have been asked to produce an application which will be a VB6 application with an SQL Server database behind it. I would like to be able to put the application along with the database on to a CD and run them directly from the CD once it is distributed. So the question I guess is can this be done with SQL Server i.e. can a table be exported in a format which will allow it to be queried in a standalone fashion? Maybe I have not explained myself properly but I welcome any questions which will help clarify my problem.

Thanks Red

View 1 Replies View Related

Problem Deploying Site Developed With Sql Ex. To Server Running Sql Server 2005.

Apr 10, 2006

Can someone show me, or direct me, to a source,  that shows me how, and what to change,  when deploying a website from a development server running Sql Ex to a production server running Sql server 2005.  I can’t get the sites to run under Sql server 2005.
 
They work in Sql Ex. what must I change?  The connection string, to what format?  and what else?  I attached the dB to Sql 2005 and browsed the content in the Sql manager.  But can’t get the aspx pages to work on the server.
 
Help please

View 6 Replies View Related

SQL Server ---- Deploying A WebSite

Jun 25, 2007

Since from using my local host to view my website, I am assuming I already have SQL Server installed on my computer? Is it possible to have users access my website files directly onto there own computer, say if they type my ip address or domain name into their address bar?  What I am actually wanting to do is to host my website from my home computer... Any ideas, or good slash easy to understand articles on how to do this?

View 8 Replies View Related

Deploying To Server And Other Questions...

Jul 13, 2007

Guys,
Let me first give you a little bit of background...

One of my goals for this year is to migrate all DTS packages to SSIS, those DTS packages are used across the company by different groups/users.

Since I'm still not that familiar with SSIS and like many here, was well used to the enterprise manager view (all DTS packages on 1 single place), I'm unsure on how to structure my SSIS packages in a way that I could break it down by group let's say.
The way that I'm doing right now is: I'm creating a solution for each group and creating the SSIS packages (.dtsx) relative to that group inside each solution, that's pretty easy. Now, the next thing that I'll have to figure out (and hope you guys can help) is how to deploy them structured this way and how to handle these packages to my end users. Basically, how do I handle "Group A" all of their SSIS packages? Will they have to open the package in debug mode on VS every time they need to execute a package?

Thoughts on this?

View 3 Replies View Related

Deploying Reports To Another Server

Oct 16, 2007



I have installed SSRS on my local machine with all default settings. Report manager and report server and reportserver data base and reportservertempDB all are in my local machine. Now I have already created few reports. but now the company wants to deploy them to the main server. Now can I do this? Do I have to chage the report configuration settings. Does it effect to my current reports?
If this is possible, can anyone tell me how to do this please?

Thanks

View 4 Replies View Related

Deploying App To 2003 Server With SQL2005

Feb 19, 2007

I devloped this app with vs2005 and SQL 2005 express, everything seems to work fine, when I deploied the app to my web server I got a few different error messages that I worked through but now stuck on this one. i am sure it is something with SQL 2005 server. is there anywhere that has a good check list for doing things right in asp and SQL deployment?
here is the error message i am getting from debugging.
The SELECT permission was denied on the object 'Categories', database 'Blog', schema 'dbo'. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Data.SqlClient.SqlException: The SELECT permission was denied on the object 'Categories', database 'Blog', schema 'dbo'.
Source Error:
Line 33:             SqlConnection connection = CreateConnection();Line 34:             SqlCommand command = CreateCommand(connection, query, parameters);Line 35:             SqlDataReader reader = command.ExecuteReader(CommandBehavior.CloseConnection);Line 36: Line 37:             Type datatype = factory.GetDataType(); 
Source File: c:InetpublogplankroadApp_CodeUtilitiesSqlDatabase.cs    Line: 35

View 1 Replies View Related







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