Viewing 15 posts - 12,796 through 12,810 (of 15,381 total)
This looks like Year, Month, Day? You have 112 as your year.
But more importantly WHY not use datetime datatypes. And if you MUST separate out the portions WHY varchar...
March 12, 2012 at 11:26 am
These types of questions are designed to test your knowledge of the subject. The response is not a single answer but should start a discussion between you and the interviewer....
March 12, 2012 at 11:10 am
pallvi.pathania (3/12/2012)
HI Lowell,I am looking for the changes, I would not want to overwrite the SPs if there were some additional functionalities in few databases.
Regards
PAllvi
That is what I was guessing...
March 12, 2012 at 10:56 am
Lowell (3/12/2012)
There are two issues to look at...are two procs EXACTLY the same , character for character, or...
March 12, 2012 at 10:47 am
could you just determine the checksum of the text column from sys.syscomments. Then in your rollout script you just include that in your check to determine if the current database...
March 12, 2012 at 10:44 am
Not 100% sure this is what you are looking for since you sample output had nothing to do with the original data.
Something like this?
select rooky.rid,cooky.nid,nooky.nname,cooky.total,isnull(
(
select top 1 x.total from cooky...
March 12, 2012 at 10:42 am
CraigIW (3/12/2012)
Sorry, I'm a bit tired. You are right about the ISNULL. It is there as the column is nullable, but the expressions are equivalent.
The UDF is...
March 12, 2012 at 10:31 am
Conceptually this is challenging. Do you specify the target and compare the others against that? If you are rolling out sprocs to a hundred db's what do you need to...
March 12, 2012 at 10:26 am
Excellent job with ddl and sample data. However each time I read your description of the desired output I am more confused than I was after the previous reading.
Can you...
March 12, 2012 at 10:19 am
I agree with Eugene. Insert with OUTPUT will accomplish exactly what you are looking for.
create table #abc
(
col1 int identity,
col2 varchar(10)
)
create table #bbb
(
col1 int,
col2 varchar(10)
)
insert #abc (col2)
output inserted.col1, inserted.col2 into #bbb...
March 12, 2012 at 9:54 am
Charmer (3/12/2012)
Charmer (3/12/2012)
it was previously created by some one....Now i changed it as you guys told that there would be...
March 12, 2012 at 9:37 am
CraigIW (3/12/2012)
You suggest swapping
ISNULL(ManualSales.ManualSale,0) = 1
for
AND ManualSales.ManualSale = 1
AND ManualSales.ManualSale IS NOT NULL
but I don't think these are logically equivalent? The original would include NULL but...
March 12, 2012 at 9:03 am
Charmer (3/12/2012)
Sean Lange (3/12/2012)
March 12, 2012 at 8:15 am
I have to agree with Jessie here....WHY are you passing sql as a parameter???? I am going to take a guess that you will now execute the sql passed as...
March 12, 2012 at 7:53 am
Viewing 15 posts - 12,796 through 12,810 (of 15,381 total)