Viewing 15 posts - 1,666 through 1,680 (of 13,849 total)
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
As TangoVictor mentions, there are other possibilities.
One is to keep the filename exactly as it is and instead modify your 'subsequent processing' tasks to use a variable file name. This...
December 10, 2021 at 11:09 am
but when I copy and paste them in Excel and calculate the numbers they are identical to when I sum them in SQL.
In Excel, you see the incorrect...
December 9, 2021 at 4:25 pm
SELECT ItemCode from T1 UNION SELECT ItemCode from T2
December 9, 2021 at 3:53 pm
Hi Phil,
Nice to hear from you. I will try this. I hope you have a great holiday and stay safe!
Thank you very much! If you have trouble getting this...
December 9, 2021 at 3:52 pm
Viewing 15 posts - 1,666 through 1,680 (of 13,849 total)