CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > starter_kits_and_source_projects.classifieds_starter_kit Tags:
Item Type: NewsGroup Date Entered: 7/14/2006 7:54:52 PM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 13 Views: 17 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
14 Items, 1 Pages 1 |< << Go >> >|
nwind
Asp.Net User
Database Woes7/14/2006 7:54:52 PM

0/0

I am unable to get any version of MS SQL to accept the database.  I have tried the 2000 version, the 2005 version, the desktop engine and even tried Access.  I cannot attach the database without the .ldf file, which isn't there.  It will not import to SQL, Access or even Excel.  How are all of you people getting the database into a database server?

Feeling dumb here!

 

justin0501
Asp.Net User
Re: Database Woes7/14/2006 10:48:11 PM

0/0

Run the scripts in Query Analyzer
nwind
Asp.Net User
Re: Database Woes7/17/2006 6:26:09 PM

0/0

I absolutely cannot connect to the database.  Running the three stored procedures produces no errors but no tables either.  Is there any sort of setup instructions for this other than the index.html which really says nothing?  I cannot get to the default.aspx since my database contains no data. 

justin0501
Asp.Net User
Re: Database Woes7/17/2006 6:41:32 PM

0/0

Did you create the Classifieds database by running the scripts?

You also have to create the aspnet database by running the aspnet_reqsql utility. If you cannot you will need your host to create that for you.

If you have those created are you getting any error message?

 

nwind
Asp.Net User
Re: Database Woes7/17/2006 8:12:39 PM

0/0

I am the host!  I have no idea what to do with this program though I desperately want to use it.  From the point of unzipping it there isn't a clue what to do.  I cannot get any of my MS database programs, not the desktop engine, not Sequel Server 2000, not Sequel Server 2005 to recognise the classifiedsdb.mdf as any sort of valid file.  I have run the three .sql files in the 2005 query analyzer.  They give no errors but neither do they do anything except indicate that they are finished running.  I am completely baffled by what the connection string should look like, the one that is in the web.config doesn't appear to be even close.

So many people seem to be using this, I can't believe I am having so much trouble.  I use database connections from both ASP.NET and PHP all the time, but this one really has me buffaloed!

justin0501
Asp.Net User
Re: Database Woes7/17/2006 10:56:39 PM

0/0

So you do not even have any database created yet?? What version of SQL do you have installed?

I dont think you should worry about the Connection String in the web.config until you actually get your databases created.

There should be 2 sql scripts that you need to run:

Classifieds-add and Classifieds-categories

If you run the Classifieds-remove you are deleting your database, stored procs, views...etcc..

So bascially create a new database is SQL Server, and then run those two scripts and then check to see if the tables, stored procs, views etc are there.

After that you then need to create the aspnetdb by running the aspnet_regsql utility. You can create those tables and stored procs in the same database if you want to, but in any case no matter how you do it you have to run that aspnet_regsql utility.

Then once you get your databases created, then you can worry about the connection string which is quite easy to modify to point to your database(s).

nwind
Asp.Net User
Re: Database Woes7/18/2006 7:24:48 PM

0/0

I now have the database installed and appearing to be happy but still cannot connect.  I have two physical servers so am trying on each of them to see whether I can get either to fly.  Both are IIS machines with ASP.NETv2.0.  The first is using MSDE with SQL 2000 client tools.  The second has a full install of MS Sql 2005.  At this point I am having the same problem on both:  error 26, error locating server/instance.  In the webconfig file, I used the full local path the database and the sa username and password.

Your help is very much appreciated!

 

Pat

justin0501
Asp.Net User
Re: Database Woes7/18/2006 10:14:18 PM

0/0

Now that could be a connection string issue. Try the following connection strings:

<add name="classifiedsConnection" connectionString="Data Source=SERVER;Database=CLASSIFIEDSDB;User ID=USERID;Password=PASSWORD;Trusted_Connection=False" providerName="System.Data.SqlClient=" />
<remove name="LocalSqlServer"/>
<add name="LocalSqlServer" connectionString="Server=SERVER;Database=ASPNETDB;User ID=USERID;Password=PASSWORD;Trusted_Connection=False" providerName="System.Data.SqlClient" />

nwind
Asp.Net User
Re: Database Woes7/19/2006 11:17:54 PM

0/0

Again, I sure appreciate your effort but there seems to be no way to connect to this database. I even added a copy on a 2000 Sequel install.  In all cases, I can create an ODBC connector that connects to the database successfully, either on the local machine or from a remote machine, but there I cannot get the program to admit it exists!  Talk about frustration!
justin0501
Asp.Net User
Re: Database Woes7/19/2006 11:38:50 PM

0/0

Are you getting any specific error messages? Post the messages if you are.

I'm not sure what else it could be. If SQL is configured correctly and the databases are setup the connection strings I posted should be correct as those are the ones that I use and they work fine for me

nwind
Asp.Net User
Re: Database Woes7/20/2006 9:21:15 PM

0/0

Things are definitely better today (on the 2005 box with the database local).  It is now only complaining about not finding stored procedures.  It is correct, they are not there.  I will search the forums for that one!
scokim
Asp.Net User
Re: Database Woes7/20/2006 10:20:41 PM

0/0

You can consider Backing up the local db and then Restoring the .Bak file onto the server. The stored procedures will follow.
nwind
Asp.Net User
Re: Database Woes7/21/2006 3:15:42 PM

0/0

There are many stored procedures there, to be sure, but the one it is complaining about is dbo.GetAdsByRandomOrder and it really is not there. 
leon_lia
Asp.Net User
Re: Database Woes9/27/2006 3:34:12 AM

0/0

Great, thanks very much

with your suggestions, i could see "Classifieds Online" lah,

With db SQL Server 2000

step1. create db classifieds
step2. execute script classifieds-add.sql
step3. execute script classifieds-categories.sql
step4. create db aspnet
step5. execute aspnet_regsql point to db aspnet
step6. modify Web.config file as below
    <connectionStrings>
        <!--
        <add name="classifiedsConnection" connectionString="Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\classifiedsdb.mdf;Integrated Security=True;User Instance=True" providerName="System.Data.SqlClient"/>
        -->
        <add name="classifiedsConnection" connectionString="Data Source=localhost;Database=classifieds;User ID=sa;Password=sa;Trusted_Connection=False" providerName="System.Data.SqlClient=" />
        <remove name="LocalSqlServer"/>
        <add name="LocalSqlServer" connectionString="Server=localhost;Database=aspnet;User ID=sa;Password=sa;Trusted_Connection=False" providerName="System.Data.SqlClient" />
    </connectionStrings>

That's all, then run the site from Visual Studio, thx
14 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
Sams Teach Yourself ASP.NET in 21 Days Authors: Chris Payne, Pages: 1104, Published: 2002
International Migration and Security: Opportunities and Challenges Authors: Elspeth Guild, Joanne van Selm, Pages: 280, Published: 2005
The Complete Idiot's Guide to the Perfect Resume Authors: Susan Ireland, Pages: 416, Published: 2003
Fixing Access Annoyances: How to Fix the Most Annoying Things about Your Favorite Database Authors: Phil Mitchell, Evan Callahan, Pages: 357, Published: 2005
Oracle Database 10g RMAN Backup & Recovery Authors: Matthew Hart, Robert G. Freeman, Pages: 666, Published: 2006

Web:
Database woes: some features will be offline for a few hours ... Science & Law Blog: DNA Database Woes and the Birthday Problem DNA Database Woes and the Birthday Problem. The Los Angeles Times has reported that "A discovery leads to questions about whether the odds of people sharing ...
Php form to Mysql database woes Please help one newbie php form to mysql database woes.
SEL: Google Blogger Database Woes February 21, 2006. Google Blogger Database Woes. Greg Linden reports on Blogger database problems that Blogger asked its users to fix: ...
Case Orange » Database Woes Database Woes. By Spencerian | April 26, 2007 - 1:42 pm. Posted in Category: Drifting Debris. Update: The wiki is back online as of 4:45 PM ET. ...
Database woes - Blog de Humpty Database woes. Why oh why must Microsoft release such a shoddy management tool for SQL Server 2005? The tool I'm referring to is, of course, the "wonderful" ...
Database Woes :: Forum :: Indexhibit Database Woes. withmitdesign UNITED STATES 2008-10-16 22:21:11. Hello All,. So I 've been trying to work on a problem for a friend's website. ...
stuff: Rockbox database woes on the sansa; tagtool Rockbox database woes on the sansa; tagtool. Adding songs to the sansa with rockbox currently still has to be done via the original firmware (OF). ...
Database Woes - ASP.NET Forums I am unable to get any version of MS SQL to accept the database. I have tried the 2000 version, the 2005 version, the desktop engine and even tried Access. ...
Out fox (base)ing your database woes Out fox (base)ing your database woes. Source, Database archive Volume 12 , Issue 5 (October 1989) table of contents. Pages: 65 - 68 ...

Videos:
Information Systems Technology ISY 301 PROJECT 3 "Database Woes"
The National Conference for Database Marketing (NCDM) Join us at NCDM 2008 at the Gaylord Palms Resort in Orlando, Florida on December 8-10! The NCDM 2008 conference will prepare you to plunge into a n...
Aetheris - Ro Aetheris - Ro server http://www.aetheris-games.com Rates 35x25x20x Boss and miniboss card's 1x Transferencias Woes second job con database "a la ant...
Choosing A Company -- Stock Market Fundamentals (18) Choosing A Company -- Stock Market Fundamentals (18) The world changes everyday, especially fast in the stock market. Companies rise and fall depend...




Search This Site:










ibuyspy live sites?

visual studio 2005

dnn 3.x and events+c#

data access in a pa

problem migrating anonymous profile containing a datatable

an attempt to attach an auto-named database for file <file string> failed....but only due to new sse install

saving datagrid to an excel file in web server's hd

rss pubdate timezone problem

writing error mesages

no solution or project file...how can i restore?

tips for split the html code to functions.

cart update bug

back button causes masterpage width to change

using "role" option in web.config

help with either <a onclick or <asp:image imageurl

is it possibe to deploy website from vwd 2005?

port translation (iis runs on 81, firewall translates from 80)

checking if value is int (number)

basic help needed with populating a repeater

generate pronounceable passwords

microsoft.web.ui.webcontrols - treeview is ambiguous

connecting to localhost when not online

zero dnn startup times

control that will allow selection and drag and drop

design view in vs.net 2003

login function problems

what is a forms authentication ticket version number used for?

had any one had this error...

app_code folder

strange problem - cant see pictures

 
All Times Are GMT