Click here to Skip to main content
15,905,612 members
Home / Discussions / Database
   

Database

 
GeneralStoring Compressed Image Into SQL Server Pin
abdurrahman oğuz14-Mar-08 6:30
abdurrahman oğuz14-Mar-08 6:30 
GeneralRe: Storing Compressed Image Into SQL Server Pin
Rob Philpott14-Mar-08 6:38
Rob Philpott14-Mar-08 6:38 
GeneralRe: Storing Compressed Image Into SQL Server [modified] Pin
abdurrahman oğuz14-Mar-08 22:40
abdurrahman oğuz14-Mar-08 22:40 
GeneralRe: Storing Compressed Image Into SQL Server Pin
Mark Churchill16-Mar-08 1:57
Mark Churchill16-Mar-08 1:57 
Generalinsert user checkboxlist selections in table Pin
C. L. Phillip14-Mar-08 4:26
C. L. Phillip14-Mar-08 4:26 
GeneralRe: insert user checkboxlist selections in table Pin
Mark J. Miller14-Mar-08 6:28
Mark J. Miller14-Mar-08 6:28 
GeneralRe: insert user checkboxlist selections in table Pin
C. L. Phillip14-Mar-08 9:36
C. L. Phillip14-Mar-08 9:36 
GeneralPlease help me move these records to another table... Pin
Support12314-Mar-08 3:10
Support12314-Mar-08 3:10 
hi all,

I am trying to copy the records from one table to another like this...

INSERT INTO [Claims].[dbo].[DocumentData]<br />
           ([DocumentId]<br />
           ,[DocumentData]<br />
           ,[DocumentName]<br />
           ,[ContentType]<br />
           ,[LastUser]<br />
           ,[LastDate])<br />
     VALUES<br />
(SELECT DocumentQueueId, DocumentData, DocumentName, ContentType, AssignedTo, GetDate() FROM DocumentQueue WHERE (AssignedTo = 'nbad\SlabbertH'))


yet i get an error:
Msg 156, Level 15, State 1, Line 14<br />
Incorrect syntax near the keyword 'SELECT'.<br />
Msg 102, Level 15, State 1, Line 14<br />
Incorrect syntax near ')'.


what is the correct syntax for copying the records from one table to another?

After i copied the records to the other table i will truncate the previouse table....

"Many of life's failures are people who did not realize how close they were to success when they gave up." Thomas A. Edison

GeneralRe: Please help me move these records to another table... Pin
soni uma14-Mar-08 3:20
soni uma14-Mar-08 3:20 
GeneralRe: Please help me move these records to another table... Pin
Support12314-Mar-08 3:23
Support12314-Mar-08 3:23 
GeneralRe: Please help me move these records to another table... Pin
soni uma14-Mar-08 3:26
soni uma14-Mar-08 3:26 
GeneralRe: Please help me move these records to another table... Pin
Support12314-Mar-08 3:25
Support12314-Mar-08 3:25 
GeneralFetching records based on Boolean operators Pin
sumit703414-Mar-08 0:41
sumit703414-Mar-08 0:41 
GeneralRe: Fetching records based on Boolean operators Pin
GDMFSOB14-Mar-08 0:48
GDMFSOB14-Mar-08 0:48 
GeneralRe: Fetching records based on Boolean operators Pin
sumit703414-Mar-08 0:55
sumit703414-Mar-08 0:55 
GeneralRe: Fetching records based on Boolean operators Pin
GDMFSOB14-Mar-08 1:07
GDMFSOB14-Mar-08 1:07 
QuestionTable change Watch In SQL 2000 Pin
GDMFSOB14-Mar-08 0:39
GDMFSOB14-Mar-08 0:39 
GeneralRe: Table change Watch In SQL 2000 Pin
sumit703414-Mar-08 1:01
sumit703414-Mar-08 1:01 
GeneralRe: Table change Watch In SQL 2000 Pin
GDMFSOB14-Mar-08 1:08
GDMFSOB14-Mar-08 1:08 
QuestionHow to call Unmanaged Code from SQL CLR. Pin
ivix4u14-Mar-08 0:18
ivix4u14-Mar-08 0:18 
GeneralRe: How to call Unmanaged Code from SQL CLR. Pin
Mark J. Miller14-Mar-08 6:20
Mark J. Miller14-Mar-08 6:20 
GeneralProblem with Cursor Pin
Vimalsoft(Pty) Ltd13-Mar-08 22:19
professionalVimalsoft(Pty) Ltd13-Mar-08 22:19 
GeneralRe: Problem with Cursor Pin
pmarfleet13-Mar-08 22:31
pmarfleet13-Mar-08 22:31 
GeneralRe: Problem with Cursor Pin
Vimalsoft(Pty) Ltd13-Mar-08 22:42
professionalVimalsoft(Pty) Ltd13-Mar-08 22:42 
General[Message Deleted] Pin
Member 387988113-Mar-08 20:31
Member 387988113-Mar-08 20:31 

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.