Viewing 15 posts - 4,951 through 4,965 (of 7,636 total)
I am not in aposition to test it, but this should be cloes:
Select V.[Vendor ID], CY.TotalBags as [Bags Last Year], LY.TotalBags as [Bags This Year]
From Vendors V
Left Join (Select...
November 4, 2008 at 12:21 pm
Peter (11/4/2008)
November 4, 2008 at 8:00 am
If you must do it in triggers (and seriously, you would be much better off using Karl's suggestion of stored procedures), then at least you should not use CONTEXT_INFO which...
November 4, 2008 at 6:47 am
As I said the first time that you asked this question:
clive (10/31/2008)
What is the preferred option, if exists or if @@rowcount.
If @@ROWCOUNT is already set then you should use it....
November 3, 2008 at 9:34 pm
As I said the first time you asked this question:
What is the preferred option, temporary table or derived table.
The general thinking is to prefer derived tables because they leave the...
November 3, 2008 at 9:30 pm
As Jonathan said: "getdate()" needs to be the definition of the column's default value, and not the definition of the column itself.
November 3, 2008 at 1:37 pm
J (11/3/2008)
Jeff, would you please enlighten me as to why CLR is viewed as a bad...
November 3, 2008 at 11:43 am
Here is the VB.net code that I use to do something similar (discussed at http://www.sqlservercentral.com/Forums/FindPost494720.aspx):
Imports Microsoft.SqlServer
Imports Microsoft.SqlServer.Management
Imports Microsoft.SqlServer.Management.Common
Imports Microsoft.SqlServer.Management.Smo
Imports Microsoft.SqlServer.Server
Imports system.Data
Module Util
Public Sub Servers_List(ByVal lstOut As...
November 3, 2008 at 11:39 am
Yes, that is correct. You have to change it in the registry.
November 3, 2008 at 11:08 am
Please provide the DDL's including any keys and indexes for STAGE.DEAL_DETAIL and STAGE.REF_DEAL_STRATEGY.
November 3, 2008 at 11:06 am
Though frankly, what this suggests is that the database that you are switching to with "USE [dbname]" is different from the database where you generated the script from and where...
November 3, 2008 at 10:43 am
Please show us the version that works and the version that does not work. This is usually a matter of detail and we need to see the details.
November 3, 2008 at 10:36 am
OK, that makes more sense then. I have on very rare occasion seen things like this in SQL 2000, but never in SQL 2005 (note, this is a SQL...
November 3, 2008 at 9:04 am
What version of SQL Server? And what is the definition of the [password] column?
November 3, 2008 at 8:36 am
Viewing 15 posts - 4,951 through 4,965 (of 7,636 total)