datadude

Is there a table designer for VS2010 database project?

余生长醉 提交于 2019-12-23 09:32:43
问题 Am I missing something here? It seems that the only options to create a new table in a database project in VS2010 is: Create a table object as a file, then create all constraints (defaults) as separate files, then create each index as a separate file, and primary key as a separate file and on and on... Or Create the entire table schema using the table designer in SSMS and then use the schema compare tool to create a single monolithic file of SQL statements for each element of the table and

Why does Schema Compare in Visual Studio 2010 show differences when there are none?

怎甘沉沦 提交于 2019-12-09 03:18:52
问题 I had hoped that Visual Studio 2010 would have brought some improvements to the Schema Comparison function. I suspect there are some, but I can't get something basic working. I've sucked in a schema from a SQL Server 2005 database. Then to assure things were working, I did a schema compare choosing the database as the source and my schema project as the target. They were in synch. When you filter to view only "Non-skip Objects", no objects are listed. This tells me that the schemas do indeed

VS 2010 build database project receive SQL04151

半腔热情 提交于 2019-12-01 02:50:57
I just started working with the Visual Studio 2010 Premium database project. I must say it does indeed rock. One thing I can't figure out is how to avoid the SQL04151 warning Procedure: [dbo].[MyProc] has an unresolved reference to object [MyDatabase].[dbo].[MyItem]. Did I miss a simple step somewhere? All I can find online involves tempdb. I need to substitute [MyDatabase].[dbo].[MyTable] with [$(DatabaseName)].[dbo].[MyTable]. This cleared up the warnings. Thanks for your help. In your [dbo].[MyProc] procedure you reference [MyDatabase].[dbo].[MyItem] which is probably not part of your DB

VS 2010 build database project receive SQL04151

和自甴很熟 提交于 2019-11-30 22:39:29
问题 I just started working with the Visual Studio 2010 Premium database project. I must say it does indeed rock. One thing I can't figure out is how to avoid the SQL04151 warning Procedure: [dbo].[MyProc] has an unresolved reference to object [MyDatabase].[dbo].[MyItem]. Did I miss a simple step somewhere? All I can find online involves tempdb. 回答1: I need to substitute [MyDatabase].[dbo].[MyTable] with [$(DatabaseName)].[dbo].[MyTable]. This cleared up the warnings. Thanks for your help. 回答2: In

Does wrapping nullable columns in ISNULL cause table scans?

冷暖自知 提交于 2019-11-28 10:00:19
Code analysis rule SR0007 for Visual Studio 2010 database projects states that: You should explicitly indicate how to handle NULL values in comparison expressions by wrapping each column that can contain a NULL value in an ISNULL function. However code analysis rule SR0006 is violated when: As part of a comparison, an expression contains a column reference ... Your code could cause a table scan if it compares an expression that contains a column reference. Does this also apply to ISNULL, or does ISNULL never result in a table scan? Yes it causes table scans. (though seems to get optimised out

Does wrapping nullable columns in ISNULL cause table scans?

和自甴很熟 提交于 2019-11-27 03:22:16
问题 Code analysis rule SR0007 for Visual Studio 2010 database projects states that: You should explicitly indicate how to handle NULL values in comparison expressions by wrapping each column that can contain a NULL value in an ISNULL function. However code analysis rule SR0006 is violated when: As part of a comparison, an expression contains a column reference ... Your code could cause a table scan if it compares an expression that contains a column reference. Does this also apply to ISNULL, or