Fitness.com
Advertisement

Go Back   Sports Forum > Community > The Pub

The Pub

Grab a beer, sit back and relax.


» Current Poll
Best 5 club teams in history of Football:
Liverpool 1977-1978 - 100.00%
1 Vote
Real Madrid 1956-1960 - 0%
0 Votes
Juventus 1985 - 0%
0 Votes
Milan 1989-1990 - 100.00%
1 Vote
Ajax 1971-1973 - 0%
0 Votes
Santos 1962-1963 - 0%
0 Votes
Torinho 1940's - 100.00%
1 Vote
Ajax 1995 - 0%
0 Votes
Flamengo 1981 - 100.00%
1 Vote
Benfica 1961-1962 - 100.00%
1 Vote
Total Votes: 1
You may not vote on this poll.
» Stats
Members: 48,179
Threads: 84,969
Posts: 1,031,302
Top Poster: Fitnessdotcom (3,317)
Welcome to our newest member, pacman77
If you register for free, you will be able to post threads, vote on polls and lots more. If you have problems with the registration or logging in, please contact the administrator.

Reply
 
LinkBack Thread Tools Display Modes
Old 11-30-2007, 08:45 AM   SQL help? Post #1
Junior Member
 
Join Date: Jan 1970
Posts: 4
Rep Power: 0
NHR-57 is infamous around these parts
Default SQL help?

I've seen people have luck with these types of threads before so I figured I'd give it a try.

We have a database at work in SQL Server Enterprise I think it's called, in which several of the entries (not sure that's the proper English term) are exactly alike, nothing unique about them. We need to edit them now though (making them unique in the process), but we can't get this to work. I am told that this is because the program doesn't know which entry we want to edit.

I have absolutely no SQL knowledge, and the one who is supposed to, is... not knowledgable enough apparently. So what would be the easiest way to change the entries?
NHR-57 is offline   Reply With Quote
Old 11-30-2007, 08:47 AM   SQL help? Post #2
Junior Member
 
Join Date: Jan 2003
Posts: 0
Rep Power: 0
Rcjuk is infamous around these parts
Default

Download yourself SQL Management Express Studio and edit the tables from in there.
Rcjuk is offline   Reply With Quote
Old 11-30-2007, 08:57 AM   SQL help? Post #3
Junior Member
 
Join Date: Jan 1970
Posts: 4
Rep Power: 0
NHR-57 is infamous around these parts
Default

Sorry about that. That's the program we are using now, in which it doesn't work.
NHR-57 is offline   Reply With Quote
Old 11-30-2007, 09:00 AM   SQL help? Post #4
Junior Member
 
Join Date: Jan 2003
Posts: 0
Rep Power: 0
Rcjuk is infamous around these parts
Default

So, right click and open table and edit the entries (rows) from in their.
Rcjuk is offline   Reply With Quote
Old 11-30-2007, 09:02 AM   SQL help? Post #5
Junior Member
 
Join Date: Mar 2002
Posts: 19
Rep Power: 0
Lufbra Bantam is infamous around these parts
Default

Not sure what the differences in the express edition are but in the SQL Server Enterprise Manager I just go to the design table view, add a new column whose data type is int, set Identity to Yes, Identity Seed to 1 and Identity Increment to 1. That worked on a test table with indistinguishable rows...
Lufbra Bantam is offline   Reply With Quote
Old 11-30-2007, 09:03 AM   SQL help? Post #6
Junior Member
 
Join Date: Jan 1970
Posts: 4
Rep Power: 0
NHR-57 is infamous around these parts
Default

That's what we've been trying to do, but we get an error message for the rows that are not unique.
NHR-57 is offline   Reply With Quote
Old 11-30-2007, 09:04 AM   SQL help? Post #7
Junior Member
 
Join Date: Jan 1970
Posts: 4
Rep Power: 0
NHR-57 is infamous around these parts
Default

Quote:
Originally posted by Lufbra Bantam:
Not sure what the differences in the express edition are but in the SQL Server Enterprise Manager I just go to the design table view, add a new column whose data type is int, set Identity to Yes, Identity Seed to 1 and Identity Increment to 1. That worked on a test table with indistinguishable rows...
Not sure I understand that, but sounds like it might work. I'll tell the SQL expert :thup:
NHR-57 is offline   Reply With Quote
Old 11-30-2007, 01:53 PM   SQL help? Post #8
Senior Member
 
Join Date: Jul 2003
Posts: 172
Rep Power: 6
postal postie is on a distinguished road
Default

its common practice to make all tables have a unique key. usually called the ID.

can't you go in through the back and manually change them rather tahn doing SQL code?

actually just as Rcjuk says
postal postie is offline   Reply With Quote
Old 11-30-2007, 02:10 PM   SQL help? Post #9
Junior Member
 
Join Date: Jan 1970
Posts: 4
Rep Power: 0
NHR-57 is infamous around these parts
Default

Yeah, the tables were supposed to have unique IDs, but Access for some reason (probably due a mistake by the person who set the database up though) decided to give the same ID to a lot of rows so the key became unusable.

We couldn't edit them manually, but Lufbra Bantam suggestion worked perfectly. :thup:
NHR-57 is offline   Reply With Quote
Reply

Go Back   Sports Forum > Community > The Pub

Bookmarks

Thread Tools
Display Modes


More threads of NHR-57
Thread Date Forum Replies Last Post
SQL help?
SQL help?: I've seen people have luck with these types of...
11-30-2007 The Pub 8 11-30-2007 02:10 PM

Other threads in forum The Pub
Thread Date Thread Starter Replies Last Post
The Aldi Medion PC deal is back.
The Aldi Medion PC deal is back.: The deal, £629.99, this Sunday. I remember...
11-29-2007 Tony Robertson 16 11-29-2007 10:41 PM
"My Penis is like a Mountain"
"My Penis is like a Mountain": Forgigive the title, but this is not a bragging...
11-23-2007 cms186 24 11-25-2007 10:48 AM
jayne rooney
jayne rooney: been watchin sky sports news today on/off since 4...
11-10-2007 victoria park 2006 21 11-10-2007 01:05 PM
Lyon - Rangers
Lyon - Rangers: Just wanted to congratulate Rangers on another...
10-02-2007 Rob Gray 49 10-03-2007 09:56 PM
Need help finding bank document
Need help finding bank document: I have been searching Google for a document. I...
09-19-2007 Mole_J 2 09-19-2007 11:57 PM

» Online Users: 32
1 members and 31 guests
peaceworld
Most users ever online was 2,128, 07-21-2008 at 07:27 PM.

All times are GMT +1. The time now is 10:00 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
Fitness.com | Weight Loss | Training & Fitness | BodyBuilding | Chinese | Spanish | French | Germany | Italian | Friend Codes |
You are viewing SQL help?.