Viewing 15 posts - 1,651 through 1,665 (of 13,838 total)
This, maybe
Select Itemcode,Itemname,ItemGroup
from tbl1
where (itemgroup is null and @ItemGroup is null) or (itemgroup is not null and @ItemGroup is...
December 15, 2021 at 2:27 pm
Hi
Error is coming Invalid column HCode
Thanks
Still no question.
December 15, 2021 at 11:22 am
Hi
(Select Case (select count(*) from tbl1 T where T.num = T0.num ) when 0 then HCode=STUFF ( ( SELECT ', '+ CAST(A0.[aCode] AS VARCHAR(MAX)) FROM O A0 INNER JOIN...
December 15, 2021 at 11:14 am
Hi Phil
In this example i have one select statement . I want to stuff on a condition.
Suppose if Field1 has value 'Y' then above select statement should be used
else...
December 15, 2021 at 9:56 am
Hi Phil
Can u pls share some example
Thanks
Given the limited amount of information you have provided, that is not easy. You mentioned using a 'UNION ALL' condition, but there is...
December 15, 2021 at 9:09 am
This probably is not going to give you the results you want. Instead, you should include a STUFF() for each individual SELECT.
December 15, 2021 at 8:44 am
There are precisely zero temp tables contained in your code.
CREATE TABLE #T (SomeCol INT)
, for example, is how test tables are created.
If you want to use them in your code,...
December 14, 2021 at 10:04 am
The information we need to help, at a minimum:
Once we have these, there may be requests for...
December 14, 2021 at 10:01 am
Why are you putting parentheses around some of your variable names? I'm not sure that they're needed.
December 13, 2021 at 5:56 pm
So, when i used $dbname instead of Master, does it assume that the database should exist? is that why it was failing?
Thank you
Correct. It was trying to run the...
December 13, 2021 at 3:16 pm
Try this command instead:
invoke-sqlcmd -ServerInstance $server -Database master -Username $sqlusername -Password $sqlpassword -Query $sql
December 13, 2021 at 2:51 pm
What is the default database for the login which you are using? Is it master?
Can you give us the full command you are trying, sanitised if necessary?
December 13, 2021 at 2:14 pm
Thanks, Jeff. Truly appreciate your help with this!
--snip
I am just curious as to what procedure you will be using. I was digging around a bit and I came across...
December 12, 2021 at 3:48 pm
Can you provide DDL and sample data for dbo.ConvoHrs, rather than asking people to use guesswork?
December 11, 2021 at 7:32 am
Viewing 15 posts - 1,651 through 1,665 (of 13,838 total)