Click here to Skip to main content
15,908,842 members
Home / Discussions / Database
   

Database

 
AnswerRe: SQL Server script to find table dependencies Pin
Eddy Vluggen13-Apr-12 1:30
professionalEddy Vluggen13-Apr-12 1:30 
GeneralRe: SQL Server script to find table dependencies Pin
Mycroft Holmes13-Apr-12 4:25
professionalMycroft Holmes13-Apr-12 4:25 
GeneralRe: SQL Server script to find table dependencies Pin
Mycroft Holmes13-Apr-12 0:49
professionalMycroft Holmes13-Apr-12 0:49 
GeneralRe: SQL Server script to find table dependencies Pin
jujiro13-Apr-12 2:01
jujiro13-Apr-12 2:01 
GeneralRe: SQL Server script to find table dependencies Pin
Mycroft Holmes13-Apr-12 4:22
professionalMycroft Holmes13-Apr-12 4:22 
GeneralRe: SQL Server script to find table dependencies Pin
jujiro13-Apr-12 4:55
jujiro13-Apr-12 4:55 
GeneralRe: SQL Server script to find table dependencies Pin
Mycroft Holmes13-Apr-12 12:54
professionalMycroft Holmes13-Apr-12 12:54 
Questioncan not get union recordset from two Sql Server2K store procedure Pin
Zhenjie Fu11-Apr-12 22:28
Zhenjie Fu11-Apr-12 22:28 
There are two store procedure on same DB server:
create procedure usp_A
as
declare @ShiftName as datetime
select @ShiftName=getdate()
select * from LineConfig where Cur_PlanQty_0=0
GO

create procedure usp_B
as
select * from LineConfig where Cur_PlanQty_0=1
GO
I use follow sql want to get the union record sets
select * from openrowset('sqloledb','trusted_connection=yes','abc.dbo.usp_A')

U N I O N ALL

select * from openrowset('sqloledb','trusted_connection=yes','abc.dbo.usp_B')

get the follow error message:

Could not execute query against OLE DB provider 'sqloledb'. The provider could not support a required property. The provider indicates that conflicts occurred with other properties or requirements.
OLE/DB provider returned message: Multiple-step OLE DB operation generated errors. Check each OLE DB status value, if available. No work was done.


if I remove the usp_A the local variable operation sentence:
select @ShiftName=getdate()
the error message disappear.

if I add new sentence such as:
declare @ShiftValue as varchar(10)
the same error message display again.
AnswerRe: can not get union recordset from two Sql Server2K store procedure Pin
Eddy Vluggen12-Apr-12 9:02
professionalEddy Vluggen12-Apr-12 9:02 
GeneralRe: can not get union recordset from two Sql Server2K store procedure Pin
Zhenjie Fu12-Apr-12 22:31
Zhenjie Fu12-Apr-12 22:31 
GeneralRe: can not get union recordset from two Sql Server2K store procedure Pin
Eddy Vluggen13-Apr-12 7:25
professionalEddy Vluggen13-Apr-12 7:25 
QuestionSQL Top n By Group Pin
Richard.Berry10011-Apr-12 16:47
Richard.Berry10011-Apr-12 16:47 
AnswerRe: SQL Top n By Group Pin
Corporal Agarn12-Apr-12 3:08
professionalCorporal Agarn12-Apr-12 3:08 
GeneralRe: SQL Top n By Group Pin
Richard.Berry10012-Apr-12 6:39
Richard.Berry10012-Apr-12 6:39 
GeneralRe: SQL Top n By Group Pin
Corporal Agarn12-Apr-12 6:50
professionalCorporal Agarn12-Apr-12 6:50 
GeneralRe: SQL Top n By Group Pin
Richard.Berry10012-Apr-12 7:10
Richard.Berry10012-Apr-12 7:10 
QuestionI have a problem in a SSIS solution !!! Pin
ma.amer11-Apr-12 2:30
ma.amer11-Apr-12 2:30 
AnswerRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 3:15
mvePIEBALDconsult11-Apr-12 3:15 
GeneralRe: I have a problem in a SSIS solution !!! Pin
ma.amer11-Apr-12 3:24
ma.amer11-Apr-12 3:24 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 14:38
mvePIEBALDconsult11-Apr-12 14:38 
GeneralRe: I have a problem in a SSIS solution !!! Pin
ma.amer24-Apr-12 13:02
ma.amer24-Apr-12 13:02 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult24-Apr-12 13:29
mvePIEBALDconsult24-Apr-12 13:29 
AnswerRe: I have a problem in a SSIS solution !!! Pin
Mycroft Holmes11-Apr-12 12:50
professionalMycroft Holmes11-Apr-12 12:50 
GeneralRe: I have a problem in a SSIS solution !!! Pin
PIEBALDconsult11-Apr-12 14:39
mvePIEBALDconsult11-Apr-12 14:39 
QuestionWeird character conversion Pin
fd975010-Apr-12 22:21
professionalfd975010-Apr-12 22:21 

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.