Viewing 15 posts - 2,356 through 2,370 (of 8,731 total)
Almost missed the fact that firstname wasn't part of the view. It's a good thing I double checked.
August 5, 2016 at 6:35 am
sqlenthu 89358 (8/4/2016)
August 4, 2016 at 2:11 pm
For accurate replies, post DDL and sample data. For performance problems, follow this article to know what we need: http://www.sqlservercentral.com/articles/SQLServerCentral/66909/
This has small changes that might not be relevant, but I...
August 4, 2016 at 2:02 pm
mw112009 (8/4/2016)
Done! Works!Thanks
Do you understand how it works? The article should explain it clearly, but you can post any questions after reading it.
August 4, 2016 at 1:34 pm
robert.sterbal 56890 (8/4/2016)
August 4, 2016 at 1:32 pm
This should be handled in the front end, the query should only return the values aggregated in the smallest unit fo measure (hours in this case, apparently).
August 4, 2016 at 1:24 pm
robert.sterbal 56890 (8/4/2016)
mysql is now owned by oracle.
Is that a problem? The site I posted seems to to be active.
August 4, 2016 at 1:17 pm
If the database is not going to grow back, you could certainly shrink it. Remember to leave enough space for future growth.
The backups don't include free space, so you shouldn't...
August 4, 2016 at 1:04 pm
You could do it with the following method: http://www.sqlservercentral.com/articles/comma+separated+list/71700/
DECLARE @sql NVARCHAR(MAX);
SELECT @sql = ( Select 'ALTER TABLE ' + TABLE_SCHEMA + '.' + table_name
...
August 4, 2016 at 11:30 am
One last thing. Try to stay away from scalar functions, they'll only slow you down. I'm not talking about coding time, but real processing time once the system is live.
August 4, 2016 at 11:22 am
skippyV (8/4/2016)
Luis Cazares (8/4/2016)
August 4, 2016 at 11:18 am
Assign it to a variable and then use sp_executesql
Here's another link: https://technet.microsoft.com/en-us/library/ms175170(v=sql.105).aspx
August 4, 2016 at 11:14 am
I've never needed them, but you could always go to http://forums.mysql.com/ or http://stackoverflow.com/
August 4, 2016 at 11:12 am
Here's an example:
CREATE TABLE CheckTest(
CharDate varchar(25)
)
GO
ALTER TABLE CheckTest ADD CONSTRAINT CK_CharDate CHECK( CharDate = CONVERT( varchar(10), CONVERT( datetime, CharDate, 101), 101));
GO ...
August 4, 2016 at 11:07 am
skippyV (8/4/2016)
There are no indexes and no primary or foreign keys.
...
Size wise:
tbA has 1.2 million records
...
August 4, 2016 at 10:58 am
Viewing 15 posts - 2,356 through 2,370 (of 8,731 total)