Viewing 15 posts - 16 through 30 (of 75 total)
Yes, that could be an advantage of having GUID columns as primary and foreign keys on a database.
Never thought of that.
One other advantage of GUIDs could be when you need...
November 18, 2015 at 2:27 am
Thanks for all your inputs.
I agree with the numeric clustered index, it would be my choice if it was me who created this table.
But this table is in another database...
November 16, 2015 at 3:42 am
Thanks for your opinion.
I also think that a second table is better than using the same table keeping sevral rows with NULL values.
November 3, 2015 at 6:34 am
Grant Fritchey (11/13/2014)
sql.querying (11/12/2014)
Even between two different databases in the same instance?
It depends. One thing that the optimizer takes into account is foreign key constraints. Since you can't have those...
November 18, 2014 at 7:52 am
Good point, the one that you mentioned. Thanks!
November 13, 2014 at 6:16 am
Even between two different databases in the same instance?
November 12, 2014 at 8:55 am
Thanks for sharing your experience!
I think I will use another database with some similar tables to where I will move some data.
If required I will allow to query these archived...
November 6, 2014 at 3:15 am
Do you usually use:
1 - table partitioning? (just suitable for Enterprise version)
2 - move old data to another table in the same database on another filegroup with different schema?
3 -...
November 3, 2014 at 10:19 am
Thanks!
The site you refer has codes in xml format files which I can import to Sql Server tables.
Regards!
October 14, 2014 at 2:01 am
GilaMonster, thanks for your tip.
Regards
October 10, 2014 at 4:06 am
Now you should also look at the size difference between the two tables to see if there is much difference.
Sorry, but I didn't understand what you mean. The table is...
September 25, 2014 at 2:53 am
Thanks for yours answers.
I thought the search by int column was faster, so meanwhile I also performed some tests on a table with a million records.
The values of columnString were...
September 24, 2014 at 3:46 pm
Your query should work, but I don't think you can use timestamp as a datetime column http://msdn.microsoft.com/en-us/library/ms182776%28v=sql.105%29.aspx
As far as I know, timestamp is to store rowversion, not datetime...
September 17, 2014 at 12:23 pm
I think you can use boolean logic as the following:
WHERE
( @PARAMETER = 'GT30' AND [ColumnDate] <= DATEADD(DAY,-30,GETDATE()) )
OR
( @PARAMETER = 'LT30' AND [ColumnDate] BETWEEN DATEADD(DAY,-30,GETDATE()) AND GETDATE() )
OR
( @PARAMETER =...
September 16, 2014 at 5:19 pm
Viewing 15 posts - 16 through 30 (of 75 total)