Viewing 15 posts - 31 through 45 (of 256 total)
This is weird. I was in a hurry so I did not explain the situation properly. I had a variable that I defined as varchar(3000), but today it turned out...
June 26, 2012 at 11:23 am
Hello All,
I ended up doing this and it worked:
AND ',' + @EmployeeId + ',' LIKE '%,' + CAST(e.ID AS varchar(10)) + ',%'
Thank you all for your...
June 19, 2012 at 12:12 pm
I am passing a string of comma delimited Ints to the stored procedure. Now I need to see whether e.Id is IN those INTs.
From the response I got from you...
June 19, 2012 at 8:39 am
I figured out the solution. It was very simple but my brain was not working:
Set @Mth1 = DATENAME(month,@StartDate)
and then use @Mth1 in my dynamic query.
May 17, 2012 at 2:56 pm
I want to select as:
select ISNULL(AVG(month1),0) AS 'JULY'
but 'JULY' depends on a variable @StartMonth
May 17, 2012 at 2:14 pm
I created a variable table and inserted all record in it. Then I used pivot to spread it out across. Problem resolved.
April 20, 2012 at 2:08 pm
I have too many tables. If I use "generate script" then it will create the table creation script as well. I don't want to create the scripts for creating the...
March 21, 2012 at 7:59 am
All of you must be wondering, what is this person talking about? It was my silly mistake. I tried running the SP using a long string
of comma delimited string...
March 1, 2012 at 9:32 am
Ah! stupid me. The query actually had top 1000. When I took that out, the records were there. Thanks for your time.
February 27, 2012 at 9:25 am
Select * from databasename.dbo.tableA
Thanks.
February 27, 2012 at 9:23 am
I am running just this insert statement manually. There are no triggers on either tables.
Thanks.
February 27, 2012 at 9:15 am
Besides triggers, I can also use function. right?
January 27, 2012 at 8:57 am
Hi Jason,
I also thought of doing it in 2 selects and join the results, but wanted to try doing it in single select.
Thanks for your time.
January 17, 2012 at 2:20 pm
Viewing 15 posts - 31 through 45 (of 256 total)