Click here to Skip to main content
16,012,508 members
Home / Discussions / Database
   

Database

 
AnswerRe: join 2 tables from 2 different databases Pin
Stephen McGuire18-Aug-06 4:25
Stephen McGuire18-Aug-06 4:25 
AnswerRe: join 2 tables from 2 different databases Pin
S Douglas19-Aug-06 20:14
professionalS Douglas19-Aug-06 20:14 
QuestionDTS Package Parameter Passing Pin
dioey17-Aug-06 22:33
dioey17-Aug-06 22:33 
QuestionGet table details in SQL 2005 Pin
Vipul Mehta17-Aug-06 18:29
Vipul Mehta17-Aug-06 18:29 
AnswerRe: Get table details in SQL 2005 Pin
Colin Angus Mackay17-Aug-06 20:08
Colin Angus Mackay17-Aug-06 20:08 
QuestionSqlDependency and which rows actually changed? Pin
rpheaney17-Aug-06 14:56
rpheaney17-Aug-06 14:56 
AnswerRe: SqlDependency and which rows actually changed? Pin
Stephen McGuire18-Aug-06 9:46
Stephen McGuire18-Aug-06 9:46 
QuestionQuestion on SQL syntax Pin
leckey17-Aug-06 8:17
leckey17-Aug-06 8:17 
I am trying to move some records from table A to table B.
This is what I have thus far:
declare<br />
@PartID varchar(50),<br />
@SectionNumber varchar(50),<br />
@TopWidth float,<br />
@BottomWidth float,<br />
@boltDiameter float,<br />
@pickOrder int<br />
<br />
Select * from SSVLStandardBracingDesign<br />
set @PartID = SSVLSTandardBracingDesign.PartID<br />
set @SectionNumber = SSVLStandardBracingDesign.SectionNumber<br />
set @TopWidth = SSVLStandardBracingDesign.TopWidth<br />
set @BottomWidth = SSVLStandardBracingDesign.BottomWidth<br />
set @boltDiameter = SSVLStandardBracingDesign.BracingBoltDiameter<br />
set @pickOrder = SSVLStandardBracingDesign.PickOrder<br />
<br />
<br />
insert into BracingKits (PartID, SectionNumber, topWidth, bottomWidth, boltDiameter, pickOrder, <br />
S3TL29, S3TLVL, S3TLUL, S3TLMD, S3TLHD, S3TLVH, S3TLUH,S3R, S4TL,S4A, [1200TLWD],[1800TLWD], [1800SRWD],<br />
[2400SRWD],[3600SRWD] , [4400SRWD])<br />
VALUES (@PartID, @SectionNumber, @TopWidth, @BottomWidth, @boltDiameter, @PickOrder,<br />
0,1,0,0,0,0,0,0,0,0, 0, 0,0,0,0,0)


I need to set my variables to values from the table. I tried using commas but that didn't work, and my multiple set statements do not work.

What is the correct syntax?

Thanks!
AnswerRe: Question on SQL syntax Pin
Paul Conrad17-Aug-06 8:28
professionalPaul Conrad17-Aug-06 8:28 
GeneralRe: Question on SQL syntax Pin
leckey17-Aug-06 8:50
leckey17-Aug-06 8:50 
GeneralRe: Question on SQL syntax Pin
Ennis Ray Lynch, Jr.17-Aug-06 9:06
Ennis Ray Lynch, Jr.17-Aug-06 9:06 
GeneralRe: Question on SQL syntax [modified] Pin
Jon Sagara17-Aug-06 10:07
Jon Sagara17-Aug-06 10:07 
AnswerRe: Question on SQL syntax Pin
Eric Dahlvang17-Aug-06 8:34
Eric Dahlvang17-Aug-06 8:34 
AnswerRe: Question on SQL syntax Pin
unclepaul17-Aug-06 10:10
unclepaul17-Aug-06 10:10 
QuestionSQL Log File - how to remove / reduce Pin
BSRK17-Aug-06 3:12
BSRK17-Aug-06 3:12 
AnswerRe: SQL Log File - how to remove / reduce [modified] Pin
Stephen McGuire17-Aug-06 7:20
Stephen McGuire17-Aug-06 7:20 
AnswerRe: SQL Log File - how to remove / reduce Pin
Eric Dahlvang17-Aug-06 8:13
Eric Dahlvang17-Aug-06 8:13 
QuestionHow do I get an SQL query to return 2 values as 1? Pin
Red_Wizard_Shot_The_Food17-Aug-06 1:58
Red_Wizard_Shot_The_Food17-Aug-06 1:58 
AnswerRe: How do I get an SQL query to return 2 values as 1? Pin
i.j.russell17-Aug-06 2:39
i.j.russell17-Aug-06 2:39 
QuestionSome Interview Question , Dammmmmmmm Urgent Plz Pin
VishalSharmaDev17-Aug-06 0:02
VishalSharmaDev17-Aug-06 0:02 
AnswerRe: Some Interview Question , Dammmmmmmm Urgent Plz Pin
Paul Conrad17-Aug-06 6:55
professionalPaul Conrad17-Aug-06 6:55 
AnswerRe: Some Interview Question , Dammmmmmmm Urgent Plz Pin
Colin Angus Mackay17-Aug-06 20:06
Colin Angus Mackay17-Aug-06 20:06 
Questionindexing table in SQL2005? Pin
TintinV3ck16-Aug-06 22:50
TintinV3ck16-Aug-06 22:50 
AnswerRe: indexing table in SQL2005? Pin
i.j.russell17-Aug-06 3:10
i.j.russell17-Aug-06 3:10 
QuestionTransaction Log Pin
wasife16-Aug-06 18:38
wasife16-Aug-06 18:38 

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.