Viewing 15 posts - 61 through 75 (of 15,381 total)
I have never found a use for the CHOOSE function. Has anybody used this in production for anything? If so I would be curious to hear about the situation in...
January 20, 2020 at 1:58 pm
There are actually 2 different, but related, errors:
The date is included in the literal;
the time contains a letter "p" that is not recognised;
therefore, answers 2 and 3 are equally...
January 9, 2020 at 2:11 pm
Unexpected gifts from nowhere... I now have a second "Ice Breaker/Litmus Test" question for interviews. No need to pile on folks. I'm just a little gob-smacked that...
January 7, 2020 at 3:06 pm
As mentioned by Jeff tbl-ing is really setting up an environment for bad things. What happens when you have a table tblEmployee and you need to make some changes but...
December 10, 2019 at 2:32 pm
use this for POSTGRESQL:
-- Start
This really isn't helpful. This code is POSTGRE but this is a sql server forum.
December 9, 2019 at 5:31 pm
Often times around here we get the "urgent" request which will be followed up with a response asking for clarity about the details of what they actually want. And so...
December 4, 2019 at 3:52 pm
Sharing the error message would be helpful. The code as posted is perfectly valid.
November 25, 2019 at 6:01 pm
Nice question, but you should end the statement with a semicolon, so that the next statement will work if it contains a cte, too!
He did but the semicolon is...
November 22, 2019 at 2:19 pm
You could try this STRING_SPLIT function I'm in the process of writing and give me some feedback.
It's like SQL Server's STRING_SPLIT function but will work with SQL 2012...
November 12, 2019 at 2:48 pm
Sorry , I was in a hurry and looking out for solutions and couldn't respond immediately.
Here is what I'm trying to do . There is a table called Locations...
November 12, 2019 at 2:13 pm
Hi Guys ,
I have column with Values like 1111\123132\34342323\1212. I used the above code to split it . But this doesn't work. The code returns blank. Can you please...
November 11, 2019 at 5:12 pm
Not to worry Steve. We appreciate all the work you do for the site. And this QOTD was quite interesting.
November 8, 2019 at 3:48 pm
I have to agree this is an execution error and not a syntax error. Even simpler would be to Parse the query. That checks for syntax errors regardless of objects...
November 8, 2019 at 2:55 pm
laurie-789651 wrote:INFORMATION_SCHEMA views are perhaps not so much in vogue as they were:
Links are not accessible 🙂
He changed his URLs a few months ago. That article is now here....
October 31, 2019 at 3:36 pm
SELECT 'CREATE VIEW ' + tb.TABLE_SCHEMA + '.vw' + tb.TABLE_NAME + ' AS SELECT '+
(SELECT STUFF((SELECT ',t.' + vp.Column_Name FROM information_schema.columns vp
WHERE vp.Table_Name=tb.TABLE_NAME and vp.Table_Schema=tb.TABLE_SCHEMA FOR XML PATH('')), 1,...
October 31, 2019 at 2:07 pm
Viewing 15 posts - 61 through 75 (of 15,381 total)