Display List Of Databases In App_Data Folder
May 16, 2007
Hi All,
The web site I'm working on will allow admin users to create a new database for each new client. I'm hoping to be able to keep all of the databases in the local App_Data folder, but I'm finding that I can't even find a way of generating a list of the databases in the App_Data folder.
The code I have is:Dim serverConn As New ServerConnection(".SQLEXPRESS")
serverConn.LoginSecure = True
serverConn.ConnectTimeout = 30
serverConn.Connect()
Dim sqlServer As Server = New Server(serverConn)
For Each db As Database In sqlServer.Databases
ListView1.Items.Add(db.Name)
NextThis does populate a list of databases, but not the ones in the App_Data folder - just those attached directly to the server.Any help on this will be greatly appreciated as it's starting to drive me nuts!Thanks,Paul
View 3 Replies
ADVERTISEMENT
Sep 19, 2007
I dont alot about sql server 2005(Express edition). For debugging purposes i want to copy the whole app_data folder(.mdf & .log files) on the production server to another folder on the same machine(or sometimes to a network folder). So when i copy and try to paste this App_data folder to a new location, i get this error message
"cannot copy ASPNETDB: it is being used by another person or program. close any programs that might be using the file and try again."
After reading the above message, i close visual web developer, stop the website in IIS and stop the SQLExpress service on the server and try again but still get the same message.
So how can i make sure that all the programs accessing these database files are closed such that i'm able able to copy them to a different location.
View 2 Replies
View Related
Apr 27, 2007
Greetings, Salutations, and Howdy
I'm using VWD on the local box and WS 2003/SQL Express on the remote box.
The first time I upload the site, the upload works great. Later after uploading updates, new pages, etc. the upload still works great.
BUT.....when I try to upload anything in the App_Data folder, I get a copy error, access denied.
On a pre-existing site with App_Data ....How do you upload the App_Data folder or it's contents to the remote server?
Thanks^2
View 6 Replies
View Related
Nov 10, 2007
HI,
I found that we can keep .mdf file in App_Data folder and use the same database in our application.
so my questions are .
1.the database which is kept in app_code will work only with Sql Server Express Edition.
2.what will be my connection string in web.config.
If any one can help out that will be appreciate and put some more light about using the data base in this way.
or any article link will also appreciated.
Thanks in Advance.
Rafeeq
View 1 Replies
View Related
Jan 30, 2006
hi,I noticed that visual studio automatically creates ASPNETDB.MDF file in app_data folder, what is this folder for
View 3 Replies
View Related
Feb 10, 2006
I'd be interested to know what the recommended methods are of implementing a SQL database using VS2005 standard and SQLExpress.
I previously used VS2003 and MSDE which allowed me to create a .sql script to create and populate a database.
Correct me if I'm wrong, but it now appears that in VS2005 the preferred way of doing this is to create a SQLExpress database in the App_Data folder. This is fine, except that I can't seem to connect to this 'detached' database using SQLCMD when I need to run my .sql scripts to create the tables.
When I used MSDE, I used a command similar to the following:
osql -E -S(local)etsdk -dMyDatabase
Which connected to the 'MyDatabase' database. Now, with VS2005, if I create MyDatabase.mdf in the App_Data folder how would I connect to it using SQLCMD? I've tried:
sqlcmd -E -S(local)SQLEXPRESS -dMyDatabase.mdf
but this just tries to open a database in the SSQL.1MSSQLData folder.
I guess I'd like to store the database in the App_Data folder as it keeps everything together and will be easier when deploying a site to a remote host.
Thanks,Wayne.
View 3 Replies
View Related
Feb 17, 2007
Hi,
I have developed an application on the Intranet, but what I have done is dealing with the database directly using MS SQL Server 2005 server. But I have seen some people or videos where they create the database on "App_Data" folder.
I am going to develop online application on Internet this time, I should develop it offline on my machine. So, I have 2 questions foe now:
1) What is the right way to create MSSQL 2005 database? in "App_Data" or in MSSQL 2005 server?
2) When creating database in "App_Data" folder, is it going to be created automatically or shown on my MSSQL 2005 server?
Thanks,
View 3 Replies
View Related
Jun 11, 2007
I have a vb.net 2005 application and i created a SQL Server 2005 db inside my App_Data folder and I need to know how to connect to this database so that I can query it from my vb code. thanks
View 2 Replies
View Related
Feb 28, 2008
Hello!
I have created my self a person website in VS2008 using Linq and ahev downloaded a copy of sql express to use as my database when working on it at home.
I have just noticed, now I am trying to upload it to a server that my sql express is automatically creating the database in my app_data folder, this is causing me problems, as I don't want it to do this. I want it to be able to point it at a full version of SQL server.
Is there some setting I have missed? Of how can I stop tis automatic creation of the database?
Thanks
Bex
View 1 Replies
View Related
May 15, 2006
I am using visual web developer with sqlserver2005 express edition. When I try to create a database in the App_Data folder through solution explorer I get the following error message:
Failed to generate a user instance of Sql Server due to a failure in starting the process for the user instance. The connection will be closed.
I am unable to create the database. Can anyone help in solving this problem?
Regards, Sandy
View 1 Replies
View Related
Mar 21, 2006
I am workin on a website for me and my friend. I want to host it at a hosting company. In asp.net 2.0 projects are build with the App_data folder, which can stores data source such as a SQL Server 2005 database. But when i want to host the site at a hosting company, will the database goed into this folder?
View 1 Replies
View Related
May 15, 2006
I am using sql server 2005 developer edition with service pack 1I have uninstalled sql express.How Could I create new database by the help of app_data folder without sql server express.That is when i right click on app_data folder and try to make a new database it give me the following error.Connections to SQL Server files (*.mdf) require SQL Server Express 2005 to function properly. Please verify the installation of the component or download from the URL: http://go.microsoft.com/fwlink/?LinkId=49251I don't want's to install sql server express and want's the functinality of creating a new database via App_Data folder.What Can do ?
View 2 Replies
View Related
May 30, 2007
Hi
I am trying to create a sql server database in the app_data folder of visual studio 2005. It keeps telling me I need the express version. Can I not use the developer version
Thanks
View 4 Replies
View Related
Jan 15, 2008
On my VWD 2005 Express, I have installed 2 SQL Server 2005 Express databases in the App_Data folder.I kind of remember these 2 databases were installed from Wrox web site or a zip file. Now we still useSQL Server 2000 databases for our ASP.net applications. I have downloaded the SQL Server 2005 Express.These 2 databases in the App_Data folder seem to work fine although I can not see them from theManagement Studio Express.
My question is: How do I 'manually' create a new SQL Server 2005 database into the App_Data folder?
TIA,Jeffrey
View 2 Replies
View Related
Jan 9, 2007
Hi all,
I have a stand-alone Windows XP Pro PC that has SQL Server Express (SSE) and Visual Web Developer Express (VWDE) programs. The Microsoft "pubs" Database is installed in the SQL Server Management Studio Express (SSMSE). I created a website in my VWDE program. I need the .mdf file of the pubs Database in the App_Data folder of website of my VWDE project. I think that User Instance in my SSE is established. I have studied Xcopy Deployment (SQL Server Express) and User Instance for a quite a while and I still do not know where and how to use Xcopy to get the mdf file of the pubs database into the App_Data folder of the website of my VWDE project. Please help and give me the detailed key steps/instructions about where and how to get the .mdf file of the pubs database into the App_Data folder of the website of my VWDE project via Xcopy.
Thanks in advance,
Scott Chang
View 6 Replies
View Related
Jan 6, 2007
Hi all,
I have read/studied (i) Working with Databases in Visual Web Developer 2005 Express in http://quickstarts.asp.net/QuickStartv20/aspnet/doc/data/vwd.aspx, (ii) Xcopy Deployment (SQL Server Express) in http://msdn2.microsoft.com/en-us/library/ms165716.aspx, (iii) User Instances for Non-Administrators in http://msdn2.microsoft.com/en-us/library/ms143684.aspx, and (iv) Embedding SQL Server Server Express in Applications in http://msdn2.microsoft.com/en-us/library/ms165660.aspx. I do not understand the concepts and procedures to do Xcopy and User Instances for non-administrators completely-I do not know how to connect to databases and create database diagrams or schemas using the Database Explorer. I have a stand-alone Windows XP Pro PC. I have created a ChemDatabase with 3 dbo tables in the SQL Server Management Studio of my SQL Server Express and a website of my VWD Express application with an App_Data folder. I am not able to proceed to use Xcopy and user instance to bring the 3 dbo tables of ChemDatabase to my App_Data folder. Please help and give me some detailed procedures/instructions to bring the 3 dbo tables of ChemDatabase (or ChemDatabase itself) from the SQL Server Management Studio Express to the App_Data folder of the website of my VWD Express project?
Thanks in advance,
Scott Chang
View 3 Replies
View Related
Aug 19, 2006
I've started with the development of a website which will use a sql server 2005 database. I want to use the asp.net membership and roles functionality. In the end the website will be hosted by a hosting company.
What is the best way to store the database? In the App_data folder or outstide the App_data folder?
Second, do hosting companies support placing sql server databases stored into the App_data folder?
View 1 Replies
View Related
Jun 15, 2004
Hi all,
I have built a Disaster Recovery Site for my DB.on periodic basis, trn files from production server reach DR server and DR setup will apply them locally.
If the flow is smooth then no issues, if one of the file does not reach DR
the entire setup will halt for the want of the file and I dn't have any means to
know which file is missing.
Both my production and DR site located remotely behind firewalls, i.e i can't
physically access the servers or remotely login to the server.
Can anyone tell me how to see the contents in a folder in the server using
SQL query .
Any help is highly appreciated
Thanks and Regards
Srinivas Varanasi
View 4 Replies
View Related
Mar 20, 2008
Problem:
like in .net or any other language,we can get the file list in a specified folder
How we can do this through sqlserver (stored procedure or any thing else)
I want to show the file name list(by providing the path of any folder on system) in sql query analyser by running any script for that
Thanks........
View 1 Replies
View Related
Jul 20, 2005
Hello, I just installed SQL Server 2000 on my home computer and amconnecting to a remote SQL server over the Internet. I can log intothe server just fine and see 7 folders including the 'Databases'folder. I can open up all of the other 6 folders but for some crazyreason when I double click on the 'Databases' folder, I can't open it!The hourglass appears and Enterprise Manager basically locks up. Doesanyone know what's going on?????Please email response to Join Bytes! as well as posting togroup.Thanks,Navin
View 1 Replies
View Related
Nov 13, 2007
Hi,
newbie to sql2005. I am trying to write a VB.NET program to list all ssis packages we have stored in a file folder (not in MSDB) where both SqlServer and ssis servers are located. These packages currently running on daily basis by automated jobs with no problem.
I have found the following link on the web that includes VB.Net program. If you scroll down under Example (SSIS Package Store) , you'll see a VB.NET program that I am trying to get it to work for me but keep getting error message like "Cannot find folder......"
http://msdn2.microsoft.com/en-us/library/ms403343.aspx
My goal is to:
1. List all ssis packages stored in the file systems (.dstx)
2. List DB source and distination providers(tables in/out) in a ssis package
3. List properties for DB providers
4. List FlatFile & Excel file provider properties in a ssis package.
My assumption, but not sure, is that I may need to register this file folder (where packages are located) to the SqlServer if that is not done already. Any command or sys table in Sql2005 to figure this out?
I would appreciate any help on this in advance.
Thank You.
View 4 Replies
View Related
Jun 28, 2007
I'm working through the SSIS tutorial, and am on lesson 2.
This says
"Double-click Foreach File in Folder to reopen the Foreach Loop Editor.
Click Collection.
On the Collection page, select Foreach File Enumerator."
The drop down only contains
foreach ado enumerator
foreach ado.net schema_rowset.enumerator
foreach from variable.enumerator
foreach nodelist.enumerator
foreach smo.enumerator
How do I get the "foreach file in folder" to appear in the drop down list?
Gary
View 3 Replies
View Related
Aug 11, 2005
Can I change the folder that the databases reside in for my installation of SQL Server? I would like to have them in a folder on another drive, but I can't seem to find where the path is configured.Any help is appreciated.
View 4 Replies
View Related
Oct 10, 2006
I have set up a Database Maintenance Plan that does a nightly backup of all of my databases (about 12 of them) to a network folder. The plan works for about 95% of the job, but most nights there will be at least 1 database which will fail with the following error...
BackupDiskFile::RequestDurableMedia: failure on backup device '\myfileserverBackupSQLDatabaseDatabaseNameD atabaseName_db_200610081749.BAK'. Operating system error 64(The specified network name is no longer available.).
I know that this is not a permission or storage problem, because it works for most of the job. And a database that fails one night, may work fine the next night only to have a DIFFERENT database fail that night, and sometimes all databases work 100%.
Is there a way to fix this problem? And if not, is there a way to be notified of which specific database in the maintenance plan is failing. The message on the job itsself is very non-descriptive and I have to manually search the logs to find out which databases were successful & which where not. It is very time consuming. Any help with this would be greatly appreciated.
View 5 Replies
View Related
Nov 20, 2007
I have a parameter consisting of a Year-Month hierarchy. The drop down parameter list appears as:
2007
1
2
3
4
5
6
7
8
9
10
11
12
2008
1
I have two questions:
Can I get the month names to appear instead of number?
When the parameter is selected the Parameters!DateShippedYearMonth.Label displays the month ONLY. How can I see the Year AND Month that was selected?
Thanks.
View 6 Replies
View Related
Aug 16, 2007
Hi
In SQL Server 2000 & 2005
How to Display list of Tables & S.Ps & Views in a Database?
Please advise
Thanks
View 4 Replies
View Related
May 15, 2007
I've added an SqlDataSource control to my web page and selected "Configure Data Source" on it. This brings up a "Choose Your Data Connection" wizard, and it asks you to select from a dropdown list of presumably pre-existing connection strings in my web.config file. However none of my connection strings will display in that dropdown list. The only thing i can do is hit the "Create New Connection" button and this adds yet another connection string to my web.config file. I've already ran through the wizard once, created a new connection string, but when i run through the wizard again, even the new connection string - the one created by the last wizard will not appear in the dropdown list. Any suggestions? Jason
View 3 Replies
View Related
May 29, 2015
I would like to display different addresses in the same list:
I have the query for married couples working, Also, I have a separate query of non-married people working.I would like to create a separate datasets for unmarried people in the same report.-Is there way to setup another the second data set without duplicating the fields from the first datasource. I tried to use alias on the second datasets and it did not work okay.
View 3 Replies
View Related
May 4, 2007
What is the best approach to handle this situation? I have three different databases, which has it's own stored procedure. I need to call them all at page load and piece together the data. The common demoninator is the date.
2007
JAN
FEB
MAR
APR
row 1
50
60
89
63
row 2
44
21
62
46
2006
JAN
FEB
MAR
APR
row 1
60
90
65
41
row2
984
650
452
762
Row 1 and Row 2 come from two different databases and stored procedures.
How can I query the data and present it as it's shown above?
Thank you!
View 10 Replies
View Related
Oct 20, 2006
I need to get records from multiple databases.
In my main database, I have a list of databases related to seperate business units.
For each of those databases, I need to get a list of values from a table (the table exists in each database).
Basically
foreach database in a list
Do a Lookup
end
Possible?
View 4 Replies
View Related
Aug 21, 2006
hello anybody now
i need to find how many Databases in my local SQL server (programatically).i know i have 8 databases is there but i need to print each and every database.
can anybody help me.
thanx
kiran.
View 6 Replies
View Related
Apr 6, 2015
I written a proc to display the list of Indexes But I needed to print the database where the objects do belong to. How I should write the Dynamic script to add the database Id? I thought to use derived table kind of stuff, but unable to find a solution.
ALTER PROC [dbo].[USP_INDEXCHECK]
AS
DECLARE @sql NVARCHAR(max)
DECLARE @DB VARCHAR(max)
DECLARE databasecursor CURSOR FOR
[Code] .....
View 2 Replies
View Related
Jun 7, 2006
When you use sql 2005 management studio to connect to a sql 2005 server, you can deny view on any database and one user will not be able to see any database that he/she does not own.
However, what about if this person uses sql 2005 management studio to connect to a sql 2000 server. Since sql 2005 management studio does not call the store procedure sp_MSdbuseraccess, it will display all the database in the server.
It does not seem like I can use "deny view on any database to username" on a sql 2000 server.
Does anyone have any idea what I need to do in order to not show all the database when I use sql 2005 management studio to connect to a sql 2000 server box?
Thank you.
View 3 Replies
View Related