Viewing 15 posts - 2,686 through 2,700 (of 8,731 total)
joe-584802 (6/14/2016)
Thanks for the improvement Lynne, I'm guessing table valued functions are more efficient than in-line scalar valued functions?
Inline table valued functions are more efficient. Multi-statement table valued functions are...
June 14, 2016 at 1:44 pm
Avoid that. User defined scalar functions in SQL Server are known for giving performance problems. They're slow and they prevent parallelism.
EDIT: Took too long to reply, I just want to...
June 14, 2016 at 1:26 pm
I expect that Lynn's option can be simplified without errors.
DECLARE @Sample TABLE(
SomeDate datetime,
HarvestYr int
);
INSERT INTO @Sample
VALUES
...
June 14, 2016 at 11:26 am
Change your UNION to a UNION ALL, unless you want to eliminate duplicates.
UNION will need to add a sort which is expensive.
If your queries have adequate indexes, I'd go with...
June 14, 2016 at 8:58 am
HookSqlDba7 (6/14/2016)
Luis Cazares (6/14/2016)
June 14, 2016 at 8:35 am
I don't see what's the problem. The developer should be able to read, at least in non-production environments to create stored procedures which would be deployed to production to apply...
June 14, 2016 at 8:06 am
Sean Lange (6/14/2016)
Luis Cazares (6/14/2016)
People are given answers with an article that explains the solution, but won't bother reading and keep posting saying...
June 14, 2016 at 7:41 am
Ed Wagner (6/14/2016)
Grumpy DBA (6/14/2016)
TomThomson (6/14/2016)
HallowSanctify
Redeem
Guilt
June 14, 2016 at 7:09 am
Sometimes I just want to post RTFA(rticle).
People are given answers with an article that explains the solution, but won't bother reading and keep posting saying they don't have the...
June 14, 2016 at 7:08 am
angelreynosog (6/13/2016)
Recently it made a change where I work on the database. There are currently 2 database and I have to make an inquiry . Follows , I have...
June 13, 2016 at 1:53 pm
I wonder what would happen if you find "23 hundred Someplace Rd". That's a real possibility if you have free text fields.
June 13, 2016 at 12:32 pm
Douglas is right. Even if the definitions are the same, you need to use the defined table-type.
On a different topic, you might want to change your splitter function to prevent...
June 13, 2016 at 12:23 pm
How are you validating your input? What happens if someone sends "Seocnd"? Would you expect "thirty-five" or "thirty five"?
Be careful as this might be a problem.
June 13, 2016 at 11:18 am
A mapping table would be the best option in SQL Server. A function would be an option in a procedural language such as C#.
June 13, 2016 at 10:37 am
Steve Jones - SSC Editor (6/13/2016)
ALTER TABLE mytable add mycol int
and there already be a mycol...
June 13, 2016 at 8:48 am
Viewing 15 posts - 2,686 through 2,700 (of 8,731 total)