Viewing 15 posts - 91 through 105 (of 139 total)
Yes, i already know that handling with bit logic but thought was if anything OR any setting already available to control such behaviour.
Anyways, thanks for your response.
Cheers 🙂
June 28, 2011 at 2:03 am
So there is no setting OR option available to avoid these messages???
Actual procedure logic is quite complex and messages gives detail of each row in the results table. so i...
June 27, 2011 at 3:26 pm
HI,
Please check this simple logic
CREATE proc dbo.test
as
begin
SET NOCOUNT ON
if 1=1
begin
print 'counting objects'
select count(1) from sys.objects
print 'printed successfully'
end
else
print 'Invalid request'
select count(1) from information_schema.routines
end
----DROP PROC dbo.test
And its printing following in messages
counting...
June 27, 2011 at 10:10 am
Hi,
Its easier with Common table Expression. Hopefully, this will work for you.
USE tempdb
GO
SET LANGUAGE us_english
DECLARE @s-2 datetime
DECLARE @e datetime
SELECT @s-2 = '2011-05-20', @e =...
June 20, 2011 at 8:22 am
Hmmm...
1: I have tested this with network paths and on local and works fine with me. May be you dont have necessary permission to read the file from network locations.
2:...
June 17, 2011 at 5:48 am
Hi,
I have used the example metioned above. Hopefully, this will give you some idea to solve your problem. Ofcourse we can change/extend this simple logic further.
USE tempdb
GO
IF OBJECT_ID('#main_table') is not...
June 17, 2011 at 5:13 am
Hi,
which version of SQL server you have?
Do you know xp_cmdshell and sp_ListFiles ?
You may find following article helpful
Cheers
June 17, 2011 at 3:58 am
Cleanliness (and Silence) is narrow minded...
Music is Multi-tasking...Might not easy for every human like computers
So it all depends you belong to which class and more specially what is your job...
December 9, 2010 at 9:49 am
Only lesson, i got from this question is to read the comments more carefully (run twice...) and thats why its just another dodge question.
December 8, 2010 at 7:30 am
Hello,
I hope you are fine.
Can you continue replying to this? as i believe no one else will touch this anymore.
Thanks and Cheers.
November 23, 2010 at 3:10 am
Kindly try the following. In future, try putting sample script will help you get the answer back more quickly. thanks.
create table #tmp1
(
col1 varchar(4),
col2 varchar(4),
col3 varchar(4),
col4 varchar(4),
ColDate datetime default getdate()
)
INSERT INTO...
November 19, 2010 at 10:21 am
I think NTILE could fix things. Try the following please.
;
WITH cteRank AS (
SELECT Col4,
NTILE() OVER ( ...
November 19, 2010 at 9:51 am
Do you want to schedule/run different SQL server agent job on different or same time ?
Kindly explain a bit more your scenario.
November 19, 2010 at 9:45 am
thanks Elliott,
I am getting a lot from your experience.
First thing, in replication, can we really stop just deletion without effecting replication overall? is there any specific property/method to handle this...
November 15, 2010 at 2:53 pm
Again thanks Elliott,
Well first thing in my scenario, as i said keep the most required records in Live. So steps i want to perform here are
1. Prepare a staging table...
November 13, 2010 at 2:13 pm
Viewing 15 posts - 91 through 105 (of 139 total)