Deploy Website With Create User From SQLExpress To SQL 2005

Apr 13, 2007

I'm brand new to web and ASP programming, but experienced with VB/VB.NET and SQL Server 2000 programming.  I followed a tutorial and built a little website that lets you create a user login, login and change your password.  I built this in Visual Studio 2005 using VB code and my understanding is that the site uses a SQLExpress database.  There's an aspnetdb.mdf and .ldf file in the App_Data folder.

 I want to deploy the website to a web server that is hosting SQL Server 2005, not express.  Can someone be explicit about steps to take in order to do that?  I've been trying a number of things in the web.config file, but I cannot seem to make a connectionstring that works.  I also don't know what to do with the .mdf and .ldf files from the development server--I'm thinking they should not be deployed.  Thanks for anything.

 

View 1 Replies


ADVERTISEMENT

How To Create Multiple Personal Tables On The Fly For Each Registered User Of A Website Using VWD And SQL 2005 Express?

Aug 13, 2006



Hello all,

Being still a relative newcomer to SQL Server (people may say I'm trying to take on too much being somewhat inexperienced once they read about the problem I'm trying to tackle, but alas...) I'm running into the following problem: I need to create tables in my user database on the fly (using Stored Procedures) so that each table can be created many times in the database but only once for every user. The tables should be named something like "username.Table1", "username.Table2" etc. as opposed to "dbo.Table1". I then want to use the stored procedure from .NET/C# in my web application, so that i can create the complete set of usertables for each of my clients.

Now, I tackled the stored procedure part (that is, it creates all the tables I need with all the parameters I want) and am able to use it from my web application (which took some time to learn but proved quite easy to do), but I cannot seem to get it coupled to the current user (instead of the dbo). Every time I trie, the tables are created as dbo.Table1 and when I try to create a new set, it gives a warning ("table with name such and so already exists..."). I made sure to log in as an authenticated user (using forms authentication) before trying to create the tables but this gives the aforementioned result.

What am I doing wrong? I use Visual Web Developer Express, SQL Server 2005 Express and IIS version 5.1

Please help :-D

Greetingz,

DJ Roelfsema

View 2 Replies View Related

Can I Use SQL Server 2005 Standard To Create And Host Db For Website?

Dec 28, 2005

Hi guys,

   I am just wondering what's the difference of sql server 2005 standard and enterprise editions. can I use SQL server 2005 to host a database for a website?

 

  Thanks!

  Daren

 

View 3 Replies View Related

How Can I Deploy My My Sql Database Files Of My Website

Aug 3, 2006

Hi all,

How can I deploy my website sql database files, which I have done using Visual web developer. (Visual Studio .net 2005)

Connection srting all these are different in this VWD.

<connectionStrings>

<add name="GoalConnectionString1" connectionString="Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|Database.mdf;Integrated Security=True;User Instance=True"

providerName="System.Data.SqlClient" />

</connectionStrings>

View 1 Replies View Related

Possible To Deploy Website Applications Using MDF Database File?

Nov 26, 2007

Hi,A quick question, is it possible to deploy a website on a shared hosting environment which attaches to a MDF database file stored in the App_Data folder? 

View 1 Replies View Related

Cannot Deploy Reports To Default Website Get Error Msg..

Mar 29, 2007

Cannot deploy reports to default website get error msg..

'A connection could not be made to the report server http://localhost/ReportServer'

additional information:
The request failed with http status 400: Bad Request. (Microsoft reporting Services Designer)

View 6 Replies View Related

Deploy Sqlexpress Through SMS

Jan 10, 2008

Is it possible to deploy sqlexpress to several computers trought SMS (Systems Managements Server)?
Do i need a special version to deply? Do i need to use some specific parameters?

I havent found much information regarding this and would be greatful for all the information i can get. I very new to SMS!

Kind Regards
/Anders

View 1 Replies View Related

SQL Server Error - Trying To Deploy Personal Website Package

Apr 20, 2007

After using FTP to transfer my site to Dotster, I get an error upon running the site. Here are the source error and stack trace respectively:
Line 5:  void Application_Start(object sender, EventArgs e) {Line 6:  SiteMap.SiteMapResolve += new SiteMapResolveEventHandler(AppendQueryString);Line 7:  if (!Roles.RoleExists("Administrators")) Roles.CreateRole("Administrators");Line 8:  if (!Roles.RoleExists("Friends")) Roles.CreateRole("Friends"); 
[SqlException (0x80131904): An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)]
The host provider says I must create the database [on their server] using their on-line utility, Is this true? Or do I need to configure the server to allow remote connections? If the latter is true, how is it accomplished?
Thanks in advance.... any help is appreciated.
 

View 4 Replies View Related

SQL Login Control Works From Dev Environment But When I Deploy The Website It Errors

Mar 27, 2006

An error has occurred while establishing a connection to the server.  When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
 
-This is the error that is being generated once the site is hosted. If I run my code from my machine and access my remote sql 2005 database it works fine. It is when I try to login from my URL directly that I get the error. Any thoughts?
Thanks.
 
John

View 2 Replies View Related

User Login Box Appears On Trying To Deploy SSRS 2005 Project To Report Manager

Dec 1, 2007



Hi
I have picked up the same problem that quite a few folks have identified.

I have created a SSRS Solution and have a report which I am trying to deploy to the Report Manager.
The project 'builds' locally but when I try to deploy it, a User Login Box pops up.

Has any one been able to ascertain what causes the problem and how does one go about resolving the problem.
I am using Window Authentication on WIndows XP SP2 with SQL Server 2005 Developers Edition and Visual Studio 2005 Professional
I have not 'tinkered' with IIS,.

Any help would be greatly appreciated.
regards Steve

View 7 Replies View Related

How To Create, Install And Deploy Dts File For Sqlserver 2000 And Dtsx File For 2005 ?

Apr 24, 2007

Hi,



I am looking for tutorials about how to create dts et dtsx files.

Thanks for your help.



Arioule.

View 1 Replies View Related

Deploy Fails Telling Me The User Don't Have Permissions, But The User Listed Isn't Me!

Aug 8, 2007

I'm trying to deploy a project that I deployed yesterday just fine, but today I get the following error:


------ Deploy started: Project: Point Reports, Configuration: Debug ------

Deploying to http://reporting.companyname.com/reportserver

Deploying data source '/Data Sources/Srv24.FieldResponse2_1'.

The permissions granted to user 'DOMAINharley.p.bartman' are insufficient for performing this operation.

Deploy complete -- 1 errors, 0 warnings

This seems like a basic permission issue, except I'm not logged in as the user listed! I've never logged into my computer as the user. I did log in to the reporting services website yesterday as that user, but since have rebooted my machine and logged into bothe my computer and the reporting services website as me. Yesterday this report deployed fine. Today, this error message. I've even tried creating a new project and just creating a simple datasource and deploying just that, but still this message! Where is Visual Studio storing and reusing this user name during my deploy process???

View 4 Replies View Related

Help:SQLExpress User Instance Fails For Normal User; Works For Administrator

Jan 22, 2008

I'm using the RTM version of Visual Studion 2008 and SQLServer Express.

Logged in as an administrator, I can create a connection to an mdf file and all is well.

As a normal user, attempting to create a connection gives the message "sqlservr.exe has stopped working A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."

I have tried this with UAC turned on and turned off. The result is the same. In Services I can see that SQLEXPRESS is running, but each time I try to connect, I get the "stopped working" message.

For existing database programs that have the .mdf file stored in the project folder, I can run the program in the VS IDE on my XP machine and on my Vista machine as administrator, but not as a normal user.

I'm not looking for a workaround to make this work once, but the cause and solution to the problem. This is for an introductory VB textbook and we must be able to move a database program from one machine to another and make it work. Everything I have read says that SQLExpress should be able to do that.

Can anyone help me with this?

Judy Fraser

View 26 Replies View Related

User Authentication DB For ASP.NET V2.0 Website

Nov 26, 2007

I have created a website using Visual Studio 2005 that runs in ASP.NET v2.0. In the debugging mode of VS2005 the site works just great and I use the ASPNETDB.MDF database to hold all of my user authentication data. Since I have deployed the website over to a remote server the authentication no longer works. I can access the first page of my website that is a login page but as soon as I attempt to log in with a valid user I receive an error message as below:

An error has occurred while establishing a connection to the server. When connecting to SQL Server 2005, this failure may be caused by the fact that under the default settings SQL Server does not allow remote connections. (provider: SQL Network Interfaces, error: 26 - Error Locating Server/Instance Specified)

I copied all of my files in the website folder over to the corresponding folder on the remote server. I then installed MS SQLServer Express on the remote server. I'm suspect the problem is something to do with that ASPNETDB.MDF file. Please can somebody help? Is there anything else I need to do for the website to work as it did on my local machine? I have given the NETWORK SERVICES user full access on the website folder.

View 1 Replies View Related

How To Create User Defined Functions In Sql Server 2005

Mar 17, 2008

 Hi ,      how to create user defined functions in sql server 2005 to retrive data from multiple tables in asp.net....... Thank U! 

View 4 Replies View Related

Create New User On MS SQL 2005 Professional Edition Problem

May 26, 2006

Hi Everyone,Can you please kindly tell me how to create a new user on the MS SQL 2005 Professional edition for accessing the existing database called VCalendar?thanks for your time and help!Jiimmy

View 13 Replies View Related

Create User Roles In Reporting Server 2005

Jan 30, 2007

Hi,

I would like to create the folders Sales, Orders and Credit under the Home folder.
The Sales folder contains a set of reports that should be accessible to a group of users, similarly Orders folder contains a set of reports that should be accessible to a group of users.
I do not have facility to create user groups in SQL Reporting Service. I create a user group in my machine (from Control Panel) but Reporting service is not able to view this group.
I am able to add individual users to a folder, but I would like to check if I can create a group and then add users to this group.

Any help in how to resolve this issue.



Cheers,

View 3 Replies View Related

Deploying A Website With User Authentication - Getting Errors

Nov 26, 2007

I have built a site that uses form-based authentication. Am I correct in assuming that the users and passwords will be stored in the SQLServer database in the aspnetdb.mdf file?  The website works great and the authentication works how I want it to.  However, I've tried to copy over the file onto a remote machine. The first page is a login screen and this is displayed without any problems but as soon as I attempt to log in I get an error message of:An error has occurred while establishing a connection to the server.  When
connecting to SQL Server 2005, this failure may be caused by the fact that under
the default settings SQL Server does not allow remote connections. (provider:
SQL Network Interfaces, error: 26 - Error Locating Server/Instance
Specified)I'm wondering if this is something to do with the fact I installed SQLServer Express edition on the remote machine. The website works no problem on the local machine in debug mode of Visual Studio 2005 (Professional Edition).  I followed instructions to enable remote connections on SQLServer Express from a Microsoft support doc.  If anybody can point me in the right direction I'll be very grateful as I've hit a wall here.

View 3 Replies View Related

First Time User That Can't Find Answer. Need Online Website.

Jan 15, 2007

HI! Thank you for even looking at this question.

I need to get a website up and running for a small group of people. I've had SQL Server for a while, but didn't have any use for it. It came with Visual Studio 2005, which gave me a little know how on scripting. Now, I have Visual Web Developer and what I need to make a web page. I just need to know how to configure all my settings to allow my website to be viewed online by anyone with an internet connection. I'm a person that understands detailed or simple directions, but I can not seem to find directions online. Now, I know what your thinking, but I've never attemped anything like this before. So, please, HELP! I need and want to learn as much as possible.

Thank you, tecfreak213

P.S. also, how do I change or get a web address? Thanks.

View 1 Replies View Related

SQLEXPRESS CREATE DATABASE

Jun 3, 2005

Why does:

View 9 Replies View Related

How Do I Add ASPNET User To SQLExpress DB?

Sep 1, 2006

I am going though the ASP.NET QuickStart tutorials.  One of the lessons is to add a datagrid.  I am able to do that with VWD and am able to connect to the database in VWD.  However when I try to execute the application I get a "Login failure" message because the user pcName/ASPNET cannot login. How do I add the ASPNET user to the SQLExpress database?  There don't seem to be any administration tools that were installed with SQL Server Express 2005. Thanks in advance for the help!

View 3 Replies View Related

How To Add Aspnet User To Sqlexpress

Apr 15, 2007

Hi guys
 
I am trying to add aspnet user to sqlexpress. I am able to select the asp.net however when I click on OK button,
it is asking me to enter a name for it. COuld you tell me what name I should enter? I tried computernameaspnet didn't help?
 is there better way to do this?
 thanks for your help
Cemal

View 1 Replies View Related

SqlExpress Create Unique Column

May 2, 2006

Hi, can anyone guide me on how to create a unique field with SqlExpress and VC#.net?

I know how to create primary key with identity, however I need to create another unique column for "email". I have search high and low for a solution but found none, the closest i got is unique constraint which I've not idea what's that.

Please help, else I have to always do a duplication check before inserting new records.

Many thanks.

View 6 Replies View Related

SQLExpress, User Instance And Detach

Feb 17, 2006

Basically I need to know how to detach a db from a user instance of SQL Express from inside a VS2005 windows forms application.

The application is project oriented and the design calls for each project to be stored in its own separate .mdf file. When the user wants to switch projects the application will detach the current database and attach a different one, containing the data for the desired project.

I have this working fine with the default (.SQLEXPRESS) db instance, but I am having a problem getting the code to work with a SQL Express user instance (also part of the specification).

I am using the SMO library to do the Detach, and this works fine with the default instance, but for the user instance I am unable to connect to the necessary (user) instance of the db server.

I have tried selecting the instance name from dm_os_child_instances on the default instance and using the dynamically generated instance name to create the Server object. I get a good instance name, but when I create the Server object, the connection fails. I have also tried issuing "sp_detach_db" on the user instance, but this fails because the db is in use.

Any ideas would be greatly appreciated...

View 3 Replies View Related

Enabling ASPNET User To Access SQLEXPRESS

May 28, 2005

Im getting ASP.Net 2.0 Beta 2 setup on my home machine to kick around
with.  Im assuming this error means i have SqlServer Express
mis-configured for integrated security.  if so, how do i go about
making sure that the ASPNET user has at least read access to the
Database?
 Error Message wrote:
Server Error in '/Kinetic' Application.

Cannot open database "aspnetdb" requested by the login. The login failed.Login failed for user 'GAMESASPNET'.



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: Cannot open database "aspnetdb" requested by the login. The login failed.Login failed for user 'GAMESASPNET'.

Source Error:




Line 13: protected void Page_Load(object sender, EventArgs e)Line 14: {Line 15: Membership.CreateUser("jeff", [password], [email]);Line 16: }Line 17: }







Source File: c:InetpubKineticDefault.aspx.cs    Line: 15

View 3 Replies View Related

A Few SQLExpress Usage Questions (user Setup Related)

Dec 31, 2007

Hello

I have a windows application that connects to a SQLExpress database hosted on a shared server. The client machines will run an interface software and interact with the info within SQL The SQL database isn't huge (50 megs) and all of the info is text. The interface application isn't too complex either, it was designed using VB.net05. I have a few setup questions:

1 - Is it best to use Windows or SQL authentiaction? Currently I am using Windows authentication and I have a user group setup on the DNS that is setup as a user for the SQL database. That has worked so far, but I've only had a few users logged in at one time so far. My plan was to add all DNS accounts that will use the software to the DNS user group, thus giving them access to the SQL database.

2 - I know this gets asked a TON, but I am interested in knowing how many users I should be able to support using the current setup. I have the one user acount setup for the DNS user group. The SQL table is not huge and it is all reading and writing text. The server is running Windows Server 03 and is a couple years old (not sure of exact specs).

Thanks for any help, I am still learning my way around SQL and it's great to have such a vast amount of support for the product.

Happy New Year!

Paul

View 1 Replies View Related

Creating A User In SQLExpress With SQL Server Management Studio Express

Dec 14, 2005

I have created a user in SQL Server Management Studio Express. However,

View 1 Replies View Related

SQLEXPRESS Backup File Losing NETWORK SERVICE User When Copied

Mar 11, 2008

I'm using the methods of the Microsoft.SqlServer.Management.Smo namespace within a .NET application to create a backup file from a SQLEXPRESS database. I can then restore the database from that backup device using methods in the same namespace. Here is a snippet from the restore code:


srv = New Server("MYPCSQLEXPRESS")

db = srv.Databases("washmaster")

Dim bdi As New BackupDeviceItem(BackupFileName, DeviceType.File)

Dim recoverymod As RecoveryModel

recoverymod = db.DatabaseOptions.RecoveryModel

rs.NoRecovery = False

rs.Devices.Add(bdi)

rs.Database = "washmaster"

rs.ReplaceDatabase = True

srv.KillAllProcesses("washmaster")

rs.SqlRestore(srv)


This works great as long as I used one of the backup files that I created directly on the disk. However, my application has a utility that allows the user to copy the backup files onto another drive, such as a CD or a thumb drive and when I try to restore from the copy of the backup, I get the following exception:

....Cannot open backup device..[filename]...Operating system error 5(Access is denied.)

The reason I get this error is that the "NETWORK SERVICE" account was removed from the file permissions when the file was copied.

How can I copy a backup to another drive and preserve the "NETWORK SERVICE" account? If I can't do that, is it wise to try to add the account back to the file before using it to restore or is there a better way?

Thanks,
SJonesy

View 3 Replies View Related

Deploy Reporting Service 2005 Runtime With VisualStudio 2005

Jan 8, 2008


How can deploy Reporting Service 2005 runtime with VisualStudio 2005?
The reason here goes...

I have completed my project in VS2005. Now I am trying to make package. But here, i do not know how to deploy Reporting Service (My Report files) to Customer's Server with Setup or any other runtime solution.
thanks

any replay will be appreciated.


View 4 Replies View Related

Is It Possible To Run A Website With Sql 2005 Workgroup?

Dec 3, 2007



I am a very beginner in setting sql server 2005.
I was not sure if sql 2005 workgroup edition supported online database when I compared on MSN comparison chart.
Does workgroup edition only work in local computers?
Can I install 2005 workgroup edition on a windows server and run a business website requiring database?Thanks in advance.

View 1 Replies View Related

What Is The Best Way To Move My ASPNETDB.MDF From SQLExpress 2005 To Full SQL Server 2005

Apr 12, 2007

Hi,
I have an ASPNETDB.MDF (asp.net membership/profile db) that was generated for SQL Express, it has user information I need to keep.
I have SQLExpress and full SQL Server 2005 running on the server. I want to remove SQL Express from the server.
So can I simply do a backup of the SQL Express membership db and restore it to full SQL and change the connection string in my app or
do i need to run the membership wizard on full sql and then do the backup / restore?
Or is there another way.
Thanks
 

View 1 Replies View Related

SQL Server 2005 Express For A Website

Mar 26, 2007

Has anyone used SQL Server 2005 on a production website?  I know that it tops out at 1GB of ram, but it is free.  Any idea how much load it will take before you need to move up to the full version?

View 1 Replies View Related

Using Express 2005 As A Database For A Real Website

Oct 23, 2006

HiI’m abut developing a website that has a 200 megabytes  SQL database ,in my estimation  the maximum online users are 100 users for first year , I want to make shore a SQL express 2005 database  in good enough for my purpose. Another question is how much can I count on a SQL express 2005 database? I mean how much it could be grown and abut security (I mean is it as secure as SQL server?). Thanks.

View 3 Replies View Related







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