Viewing 15 posts - 1,426 through 1,440 (of 13,849 total)
Something like this. Calling your table 'table' is a really bad idea, because 'table' is a reserved word - that is why I have surrounded it with square brackets and...
May 4, 2022 at 3:03 pm
Honestly, I don't end up with the #t, ct etc.
I tried to replace anything regarding my data but didnt work
Sorry
Please post what you tried and I will try to...
May 4, 2022 at 2:40 pm
Here is one way. (For future reference, please note how I set up sample data in a form which can be cut & pasted directly into SSMS.)
DROP...
May 4, 2022 at 2:07 pm
Are you trying to get something like this? (Untested and probably has error!)
SELECT pcx = SUM(IIF(tab.status = 'X', 1, 0)) * 100.0 / COUNT(1)
...
May 4, 2022 at 1:21 pm
Welcome to the forum.
You need to tell us what the source data looks like in order for us to tell you how to achieve the result.
Alternatively, be more specific with...
May 4, 2022 at 1:12 pm
The error message seems self-explanatory. Can you post here the parameter text which is resulting in the error?
Edit: why are you trying to modify the parameter name and not its...
May 4, 2022 at 12:59 pm
Arrays do not exist in SQL Server, But strings can still be split and referenced by their ordinal ('ItemNumber' in the following).
This code relies on the existence of the legendary...
May 3, 2022 at 1:58 pm
Jeff, that's a rather useful link, thanks for posting.
May 2, 2022 at 6:12 pm
Can't seem to get original file to process gets errors listed above.. sample file will process.
Any thoughts or suggestions?
Thanks again
I have some suggestions:
May 2, 2022 at 2:57 pm
Would you please explain the required logic a little more?
May 1, 2022 at 3:41 pm
Is this failing locally, in VS, on the server, or everywhere? Have you installed both 32- and 64-bit versions of the driver?
April 30, 2022 at 1:08 pm
This should be done in the presentation layer (Excel, SSRS, PowerBI etc).
April 29, 2022 at 6:54 pm
Try this
SET @query
= N'select * into #FinalResult from
(select Name, ' + @cols
+ N' from (select name,quantity,itemname from...
April 29, 2022 at 7:03 am
Have you tried using SELECT INTO?
April 28, 2022 at 11:22 am
Try this:
SELECT
q1.success
, q1.timestamp
, q1.date
, q1.base
, q1.rates
, q1.unit
, q2.USD
, q2.XAG
FROM
...
April 27, 2022 at 9:05 am
Viewing 15 posts - 1,426 through 1,440 (of 13,849 total)