|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
Could someone give me a tutorial on how to use the MS SQL Function NewID()? Thanks!
![]() |
|
#2
|
|||
|
|||
|
Insert into TableName values(newId(), 1, 2, etc)
The newid() will give you an key that looks like: {8F71E963-2A02-4550-A1F0-58D172DB4862}. This key is unique to all other keys and will never be generated again by the same computer. The table column has to be type uniqueidentifier. |
![]() |
| Viewing: Dev Shed Forums > Databases > MS SQL Development > NewID() Function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|