Click here to Skip to main content
16,006,493 members
Home / Discussions / Database
   

Database

 
GeneralRe: C# 2.0 Table Adapter Times Out at 30 Sec Pin
GTWebb18-Apr-06 8:59
GTWebb18-Apr-06 8:59 
QuestionHow to restor database Pin
papa198013-Apr-06 21:41
papa198013-Apr-06 21:41 
AnswerRe: How to restor database Pin
albCode13-Apr-06 21:50
albCode13-Apr-06 21:50 
QuestionCreate Table from Trigger Pin
Guinness4Strength13-Apr-06 12:20
Guinness4Strength13-Apr-06 12:20 
AnswerRe: Create Table from Trigger Pin
Eric Dahlvang14-Apr-06 10:53
Eric Dahlvang14-Apr-06 10:53 
GeneralRe: Create Table from Trigger Pin
Guinness4Strength16-Apr-06 13:55
Guinness4Strength16-Apr-06 13:55 
GeneralRe: Create Table from Trigger Pin
Eric Dahlvang17-Apr-06 3:26
Eric Dahlvang17-Apr-06 3:26 
QuestionSQL Newbie question Pin
martin_hughes13-Apr-06 7:32
martin_hughes13-Apr-06 7:32 
Hi all,

In a test database I have two tables, which are joined on a primary key. In the first table, this key is an auto-incrementing field.

Can anyone tell me a SQL (ie generic) way of being able to insert records into the primary table, retrieve the Primary Key value and be able to use that in the secondary table to create a related record?

I have thought about using a second query to return the last record entered, hwoever this seems a bit ugly, and would be prone to error in a multi-user environment.

Thanks,


Martin.
AnswerRe: SQL Newbie question Pin
mastjabs13-Apr-06 9:38
mastjabs13-Apr-06 9:38 
GeneralRe: SQL Newbie question Pin
martin_hughes13-Apr-06 11:25
martin_hughes13-Apr-06 11:25 
GeneralRe: SQL Newbie question Pin
Colin Angus Mackay13-Apr-06 11:33
Colin Angus Mackay13-Apr-06 11:33 
GeneralRe: SQL Newbie question Pin
Frank Kerrigan13-Apr-06 22:19
Frank Kerrigan13-Apr-06 22:19 
GeneralRe: SQL Newbie question Pin
Colin Angus Mackay17-Apr-06 6:01
Colin Angus Mackay17-Apr-06 6:01 
Questionlist all tables names in combobox Pin
valiovalio13-Apr-06 1:24
valiovalio13-Apr-06 1:24 
AnswerRe: list all tables names in combobox Pin
Dinuj Nath13-Apr-06 1:27
Dinuj Nath13-Apr-06 1:27 
GeneralRe: list all tables names in combobox Pin
valiovalio13-Apr-06 3:11
valiovalio13-Apr-06 3:11 
QuestionCan we pass an argument for the top function in sql server 2005 Pin
varmag13-Apr-06 1:05
varmag13-Apr-06 1:05 
AnswerRe: Can we pass an argument for the top function in sql server 2005 Pin
Colin Angus Mackay13-Apr-06 5:15
Colin Angus Mackay13-Apr-06 5:15 
GeneralRe: Can we pass an argument for the top function in sql server 2005 Pin
HimaBindu Vejella14-Apr-06 0:06
HimaBindu Vejella14-Apr-06 0:06 
GeneralRe: Can we pass an argument for the top function in sql server 2005 Pin
Colin Angus Mackay14-Apr-06 0:31
Colin Angus Mackay14-Apr-06 0:31 
QuestionDataAdapter.FillError Pin
Jochen Jonckheere12-Apr-06 22:35
Jochen Jonckheere12-Apr-06 22:35 
QuestionSQL Server 2005 Instalation Error Pin
Areff12-Apr-06 11:05
Areff12-Apr-06 11:05 
AnswerRe: SQL Server 2005 Instalation Error Pin
Dave Kreskowiak12-Apr-06 15:42
mveDave Kreskowiak12-Apr-06 15:42 
AnswerRe: SQL Server 2005 Instalation Error Pin
Luis Alonso Ramos13-Apr-06 12:14
Luis Alonso Ramos13-Apr-06 12:14 
QuestionDynamic ConnectionString for reporting services 2000 Pin
jemig12-Apr-06 9:44
jemig12-Apr-06 9:44 

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.