Click here to Skip to main content
15,911,142 members
Home / Discussions / Database
   

Database

 
AnswerRe: Run a exe file using xp_cmdshell Pin
Reza Raad28-Mar-09 23:38
Reza Raad28-Mar-09 23:38 
QuestionLooking for Batch file for open/close Oracle service Pin
E_Gold26-Mar-09 21:08
E_Gold26-Mar-09 21:08 
AnswerRe: Looking for Batch file for open/close Oracle service Pin
scottgp27-Mar-09 1:55
professionalscottgp27-Mar-09 1:55 
QuestionSimple way to search for all special characters in all fields? Pin
Rafferty Uy26-Mar-09 16:12
Rafferty Uy26-Mar-09 16:12 
AnswerRe: Simple way to search for all special characters in all fields? Pin
Rafferty Uy26-Mar-09 16:42
Rafferty Uy26-Mar-09 16:42 
AnswerRe: Simple way to search for all special characters in all fields? Pin
ed575627-Mar-09 5:40
ed575627-Mar-09 5:40 
QuestionReset auto number in Access Pin
~Khatri Mitesh~26-Mar-09 3:50
~Khatri Mitesh~26-Mar-09 3:50 
AnswerRe: Reset auto number in Access Pin
riced26-Mar-09 5:06
riced26-Mar-09 5:06 
As far as I remember you can't (not used Access for nearly 5 years Smile | :) ).
And why would you want too? Why was it made an Auto number in first place? If there's a good reason then you should not change it. For example, is it a foreign key in some other table?

However here's two possible approaches.
Use a non Auto number(long?) then before inserting a record do a SELECT to get the max in the field, add 1 to result and insert new record with this as value. You have to do this for every insert.

Alternatively, after deleting records, create a another table with same structure, copy records from the table to the new one (but exclude the Auto number field), delete the original table, rename the new one to the proper table name. Now you can insert and Auto number will work. But you would be mad to do this. Smile | :)

Regards
David R

GeneralRe: Reset auto number in Access Pin
Mycroft Holmes27-Mar-09 0:01
professionalMycroft Holmes27-Mar-09 0:01 
GeneralRe: Reset auto number in Access Pin
riced27-Mar-09 0:21
riced27-Mar-09 0:21 
AnswerRe: Reset auto number in Access Pin
Mycroft Holmes27-Mar-09 0:05
professionalMycroft Holmes27-Mar-09 0:05 
AnswerRe: Reset auto number in Access Pin
ed575627-Mar-09 5:26
ed575627-Mar-09 5:26 
QuestionInstalling a SQL Server Management studio Pin
Motajo Tolu26-Mar-09 3:29
professionalMotajo Tolu26-Mar-09 3:29 
AnswerRe: Installing a SQL Server Management studio Pin
Henry Minute26-Mar-09 4:32
Henry Minute26-Mar-09 4:32 
GeneralRe: Installing a SQL Server Management studio Pin
Lambin6-Apr-09 19:10
Lambin6-Apr-09 19:10 
GeneralRe: Installing a SQL Server Management studio Pin
Henry Minute7-Apr-09 0:46
Henry Minute7-Apr-09 0:46 
QuestionHow to make a new server in sql server express 2005??? Pin
ma.amer26-Mar-09 1:45
ma.amer26-Mar-09 1:45 
AnswerRe: How to make a new server in sql server express 2005??? Pin
Eddy Vluggen26-Mar-09 2:17
professionalEddy Vluggen26-Mar-09 2:17 
GeneralRe: How to make a new server in sql server express 2005??? Pin
ma.amer26-Mar-09 3:23
ma.amer26-Mar-09 3:23 
AnswerRe: How to make a new server in sql server express 2005??? Pin
Eddy Vluggen26-Mar-09 3:33
professionalEddy Vluggen26-Mar-09 3:33 
GeneralRe: How to make a new server in sql server express 2005??? Pin
ma.amer26-Mar-09 6:48
ma.amer26-Mar-09 6:48 
GeneralRe: How to make a new server in sql server express 2005??? Pin
Eddy Vluggen26-Mar-09 8:04
professionalEddy Vluggen26-Mar-09 8:04 
QuestionHelp with some XML SQL Statements [modified] Pin
Vimalsoft(Pty) Ltd25-Mar-09 23:21
professionalVimalsoft(Pty) Ltd25-Mar-09 23:21 
QuestionLoad XML file in the sql server 2005 table...... Pin
pranavcool25-Mar-09 18:38
pranavcool25-Mar-09 18:38 
AnswerRe: Load XML file in the sql server 2005 table...... Pin
Mycroft Holmes25-Mar-09 21:41
professionalMycroft Holmes25-Mar-09 21:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.