Click here to Skip to main content
15,796,102 members
Home / Discussions / Database
   

Database

 
AnswerRe: Get check time from separate fields in Microsoft SQL Server Pin
Mycroft Holmes14-Oct-15 2:11
professionalMycroft Holmes14-Oct-15 2:11 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Chris Quinn14-Oct-15 3:30
Chris Quinn14-Oct-15 3:30 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Richard Deeming14-Oct-15 3:47
mveRichard Deeming14-Oct-15 3:47 
GeneralRe: Get check time from separate fields in Microsoft SQL Server Pin
Chris Quinn14-Oct-15 3:50
Chris Quinn14-Oct-15 3:50 
QuestionInsert within Select Statement Pin
indian14313-Oct-15 8:50
indian14313-Oct-15 8:50 
AnswerRe: Insert within Select Statement Pin
Richard Deeming13-Oct-15 9:43
mveRichard Deeming13-Oct-15 9:43 
GeneralRe: Insert within Select Statement Pin
indian14313-Oct-15 9:58
indian14313-Oct-15 9:58 
GeneralRe: Insert within Select Statement Pin
indian14313-Oct-15 11:28
indian14313-Oct-15 11:28 
Or even if I can do it in the following way but I am getting errors in the below query, it is saying its not able to recognize the columns, htge.[Name], htge.[Description]. Can I get those columns into Table variable some how? It will fix all my problems.
DECLARE @MyTableVar table (DocumentListId int, [Name] varchar(max), [Description] varchar(max));
INSERT INTO dbo.DocumentList (CreatedDate,CreatedBy,ModifiedDate,ModifiedBy)
  OUTPUT INSERTED.DocumentListId, 
         htge.[Name], 
         htge.[Description]
  INTO @MyTableVar
SELECT  GETDATE() ,CURRENT_USER,GETDATE(),CURRENT_USER, htge.[Name], htge.[Description]
FROM    OPENROWSET('SQLNCLI', 'Server=xxx;UID=xx;PWD=xxx',
        'SELECT * FROM WEB_WebAdmin.dbo.HealthTopicGroup where HealthTopicGroupId < 45') as htge;

SELECT * frOM @MyTableVar
Thanks,

Abdul Aleem

"There is already enough hatred in the world lets spread love, compassion and affection."

AnswerRe: Insert within Select Statement Pin
Mycroft Holmes13-Oct-15 23:55
professionalMycroft Holmes13-Oct-15 23:55 
QuestionSort GetChildRow datarow array Pin
BobW99912-Oct-15 3:58
BobW99912-Oct-15 3:58 
AnswerRe: Sort GetChildRow datarow array Pin
Mycroft Holmes12-Oct-15 14:07
professionalMycroft Holmes12-Oct-15 14:07 
GeneralRe: Sort GetChildRow datarow array Pin
BobW99912-Oct-15 18:34
BobW99912-Oct-15 18:34 
GeneralRe: Sort GetChildRow datarow array Pin
Mycroft Holmes12-Oct-15 18:40
professionalMycroft Holmes12-Oct-15 18:40 
SuggestionNeed to Optimize this Query Pin
Member 1205173712-Oct-15 0:33
Member 1205173712-Oct-15 0:33 
QuestionTimeline for Work Completion Pin
macca249-Oct-15 1:48
macca249-Oct-15 1:48 
AnswerRe: Timeline for Work Completion Pin
CHill609-Oct-15 3:12
mveCHill609-Oct-15 3:12 
QuestionMSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
px058-Oct-15 22:32
px058-Oct-15 22:32 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
GuyThiebaut9-Oct-15 0:04
professionalGuyThiebaut9-Oct-15 0:04 
GeneralRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
px059-Oct-15 0:26
px059-Oct-15 0:26 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
Eddy Vluggen9-Oct-15 2:39
professionalEddy Vluggen9-Oct-15 2:39 
AnswerRe: MSSQL behavior: I need to round instead of truncation when number scale is exceeded Pin
Wombaticus10-Oct-15 9:00
Wombaticus10-Oct-15 9:00 
QuestionSql Server Back-end with Access or Asp.net Front-end Pin
macca248-Oct-15 0:23
macca248-Oct-15 0:23 
AnswerRe: Sql Server Back-end with Access or Asp.net Front-end Pin
CHill608-Oct-15 15:29
mveCHill608-Oct-15 15:29 
AnswerRe: Sql Server Back-end with Access or Asp.net Front-end Pin
Daniel Miller19-Oct-15 15:18
professionalDaniel Miller19-Oct-15 15:18 
Questiondatagrid code Pin
Maristello7-Oct-15 4:47
Maristello7-Oct-15 4:47 

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.