Viewing 15 posts - 1,906 through 1,920 (of 49,552 total)
I don't think that's what the error's saying. If you tried to create a foreign key constraint that already existed (their names have to be unique, you can have multiple...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 10:46 am
Ideally, formatting for display done where and when the data is displayed, not in the database. The database should care about the data, not it's visual representation.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 7:07 am
chrisn-585491 (1/11/2017)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 7:00 am
ThomasRushton (1/11/2017)
You could also use
SELECT FORMAT(10.500,'N1')
Although FORMAT is extremely slow compared to CONVERT.
https://sqlperformance.com/2015/06/t-sql-queries/format-is-nice-and-all-but
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 5:45 am
Yes, if the clustered index is changed, all nonclustered indexes are rebuilt with the new clustered index key in them.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 4:44 am
I really would like to attend Bits this year (hint, hint)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 3:29 am
Backup the DB on 2005, copy the backup to the 2012 server, restore it.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 3:06 am
Put the part that has the column that may not exist in dynamic SQL
EXEC ('<sql statement here>')
That error is indeed a parse-time error, the entire batch gets parsed before anything...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:50 am
http://sqlinthewild.co.za/index.php/2010/09/14/one-wide-index-or-multiple-narrow-indexes/
Hidden indexes?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:19 am
Andrew..Peterson (1/10/2017)
I'll look into. No problems with replication, but with lots of tables, it adds more administrative work that is desired.
Set it up once (selecting all tables is a...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:16 am
rjjh78 (1/10/2017)
Thank you for your reply. I have 2008 installed and was trying to apply SQL Server 2008 R2 Service Pack.
That'll work about as well as trying to...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:14 am
Rechana Rajan (1/11/2017)
If that is the case the lookup for noncluster index will change to new cluster key right?
???
Also if i explicitly specify the cluster key in a nonclustered index...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:10 am
bsbabu2008 (1/10/2017)
that means SQL Server 2008 R2 is the last edition for 32 - bit ?
No.
SQL 2012 had a 32-bit version, so did SQL 2014. The only version that doesn't...
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 11, 2017 at 2:09 am
Rechana Rajan (1/10/2017)
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 10, 2017 at 3:39 am
4-part naming requires a linked server, the first part being the linked server name.
Without linked servers, you're not going to be able to directly query another server from this one.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
January 10, 2017 at 2:25 am
Viewing 15 posts - 1,906 through 1,920 (of 49,552 total)