Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 host_name problem

Author  Topic 

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-08-05 : 07:28:24
while iam execution test sp host name is getting inserted but from front end some execution error is coming.can any one help how to handle?

Create procedure as test
as
begin
set nocount on
insert into user_access_report(report_name,userid,access_date)
select 'Travel Expenses Report',host_name(),getdate()
set nocount off
end

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-05 : 08:23:35
What is the error you are getting?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-08-05 : 08:33:50
" Error Executing Sql Statement" error is thrown

quote:
Originally posted by madhivanan

What is the error you are getting?

Madhivanan

Failing to plan is Planning to fail

Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-05 : 08:39:16
quote:
Originally posted by sent_sara

" Error Executing Sql Statement" error is thrown

quote:
Originally posted by madhivanan

What is the error you are getting?

Madhivanan

Failing to plan is Planning to fail




How did you execute this from front end?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-08-05 : 09:49:24
front end ERP

quote:
Originally posted by madhivanan

quote:
Originally posted by sent_sara

" Error Executing Sql Statement" error is thrown

quote:
Originally posted by madhivanan

What is the error you are getting?

Madhivanan

Failing to plan is Planning to fail




How did you execute this from front end?

Madhivanan

Failing to plan is Planning to fail

Go to Top of Page

sent_sara
Constraint Violating Yak Guru

377 Posts

Posted - 2008-08-06 : 01:10:37

quote:
Originally posted by sent_sara

front end ERP

quote:
Originally posted by madhivanan

quote:
Originally posted by sent_sara

" Error Executing Sql Statement" error is thrown

quote:
Originally posted by madhivanan

What is the error you are getting?

Madhivanan

Failing to plan is Planning to fail




How did you execute this from front end?

Madhivanan

Failing to plan is Planning to fail



Go to Top of Page

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-08-06 : 02:25:42
Can you post the code on how you are calling the procedure?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -