Viewing 15 posts - 1,066 through 1,080 (of 1,132 total)
<When I load new users in ...non-current values are then removed from the table and inserted into a history table).
>
If this is the real process, try changing the order of...
August 24, 2005 at 4:12 pm
To combine multiple rows into a single row, you need to use an aggregate function, which in this case would be MAX.
Here is complete example, but look at the end...
August 24, 2005 at 3:50 pm
This is a common problem and a solution with source code is available at http://www.sqldts.com/default.aspx?246
August 23, 2005 at 4:50 am
Gregory Larsen has some SQL which you could adapt in an article titled "Identifying Long Running SQL Server Agent Jobs" at
http://www.databasejournal.com/features/mssql/article.php/3500276
August 3, 2005 at 2:28 pm
This is a bug. See http://support.microsoft.com/kb/826161
SYMPTOMS
After you install MS03-031: Cumulative Security Patch for SQL Server, when you make changes to a standard SQL Server login by using Enterprise Manager,...
July 8, 2005 at 1:20 pm
Although you appear to have Erland Sommarskog's, you must read them in detail. Here are some rule of thumb:
Transaction must be initiated by the client and not in database...
June 21, 2005 at 1:20 pm
Add the following to the "where" to exclude rows that are statistics (sysindexes.status & 64) = 0
Regarding your logic for indexes that are a physical implimentation of primary...
June 16, 2005 at 12:40 pm
What you are attempting to perform is frequently called a pivot.
This can be done in SQL by using a case statement inside of a sum.
select FacilityID
, SUM( CASE WHEN DateHired...
June 14, 2005 at 1:54 pm
If you mean, the login account for each of the SQL Services, this information is in the registry. Try this script:
set nocount on
set xact_abort on
DECLARE @RegistryPath varchar(200)
,@NamedInstanceIndchar(1)
,@InstanceNamevarchar(128)
,@SQLServerSvcAccountvarchar(128)
,@SQLAgentSvcAccountvarchar(128)
,@DTCSvcAccountvarchar(128)
,@SQLSearchSvcAccountvarchar(128)
,@SQLServerStartUpvarchar(128)
,@SQLAgentStartupvarchar(128)
,@DTCStartupvarchar(128)
,@SQLSearchStartupvarchar(128)
create TABLE...
June 14, 2005 at 1:46 pm
This is a bug within SQL Server.
Microsoft can tell you how to fix this problem which is to update the sysfiles table to change the file growth from KB to...
June 9, 2005 at 6:16 am
In my previous posted, te create table statements for the versions has the identity property specified. This is incorrect and only the core table should have the identity property.
June 9, 2005 at 6:07 am
I have successfully implimented this type of historical schema but with a slightly different approach such as:
-- The CORE table
create table Partys
( PartyId integer identity(1,1)
, EffectiveDt datetime...
June 9, 2005 at 6:04 am
Are you aware that any user can change their own default database ?
If you have tracing enabled, the hostname, SQL login name, Windows login and program can be captured.
June 1, 2005 at 11:35 am
Does the error appear in the windows event log under applications?
When running RAISERROR, are you including the "with log" option?
May 20, 2005 at 10:20 am
Try this:
SelecttblEquipment.EquipNumber
,Licenses.LicenseNumber
fromtblEquipment
join(selectEquipNumber
,MIN(LicenseNumber)
fromtblLicenses
group byEquipNumber
) as Licenses ( EquipNumber , LicenseNumber )
on Licenses.EquipNumber = tblEquipment.EquipNumber
May 20, 2005 at 10:10 am
Viewing 15 posts - 1,066 through 1,080 (of 1,132 total)