Tuesday, January 06, 2009 Register   Login   
   You Are Here: Discussions      
 SQL Community Portal
  
 Recently Submitted Articles
  
 Recent SQL Clinic Articles
  
 SQL Server Discussion Forums
 
  SQL Server Forums  Discussions  SQL Server Best...  Hard work with GUID. Help me!
Previous Previous
 
Next Disabled
New Post 8/23/2008 9:25 PM
Unresolved
User is offline Joe Cole
1 posts
No Ranking


Hard work with GUID. Help me! 
I created two tables:
Table1 has fields: author_id (uniqueidentifier), author_name (char).
Table2 : book_name (char), author_id (the primary key from Table1).
I inserted into Table1 a record that its author_id was generated by NEWID() function. After that, I inserted into Table2 a record which had author_id was the same as the record in Table1.
To do that, I wrote down the value of author_id from Table1 and I carefully typed it into author_id (Table2).
How could I do to make life easier.
Thank U.
 
Previous Previous
 
Next Disabled
  SQL Server Forums  Discussions  SQL Server Best...  Hard work with GUID. Help me!

  
   Minimize

  
SQL Server 2000 Downloads
 
SQL Server 2000 Reporting Services Downloads
 
SQL Server 2000 Notification Services SP Downloads
 
SQL Server CE Downloads
 
SQLXML 3.0 Service Pack Downloads
 
SQL Server 2000 JDBC Driver
 
MDAC 2.6 Download
 
SQL Server 2000 Tools Downloads
SQL Server 2005 & SQL Server 2000 Best Practices
·    DMV Stats
 
·    Buffer Cache
·    Input/Output
·    Performance
·    Tempdb
·    Wait Statistics
                    
SQL Server 2000 Best Practices




Cancel   Send

 Community Sharing Central