Viewing 15 posts - 9,511 through 9,525 (of 14,953 total)
If you have any edition of SQL Server, you have a pretty much unlimited license to install SSMS on workstations. Whatever installation media you installed SQL Server with has...
May 15, 2009 at 6:45 am
GilaMonster (5/15/2009)
Flat broken into again last night. Among other things, took the zune that I bought to replace the ipod that they stole last bloody...
May 15, 2009 at 6:37 am
Lynn Pettis (5/14/2009)
Well, since we are showing about where we all live, here is where I live.
I'm here (most of the time).
May 15, 2009 at 6:35 am
You're ahead of me. When I'd been working with database for 4 hours, I didn't even know that it was called "DBA". Or is that "hours" supposed to...
May 14, 2009 at 3:29 pm
mmunson (5/14/2009)
May 14, 2009 at 3:20 pm
Will this do what you need, or am I getting this backwards?
;with
CTEMain as
(SELECT CRM_StatusCodes.TRANSACTION_ID as [Service Order ID]
, CRM_Partners.PARTNER
, CRM_Partners.PARTNER_FCT
, CRM_Partners.DESCRIPTION [Function]
, CRM_StatusCodes.SYSTEM_STATUS as [Confirmation Status]
, CRM_Partners.ADDRESS
, CRM_PartsLabor.DESCRIPTION
, CRM_orders.created_at...
May 14, 2009 at 2:35 pm
You don't have to convert them. SQL 2008 still supports compat 80. Doesn't support 75. It goes back two major versions.
You might, on the other hand, want...
May 14, 2009 at 2:32 pm
Only thing I can think of is restore to the last good point. That's probably your last backup.
May 14, 2009 at 2:27 pm
That won't work. You're selecting a distinct value in an inline sub-query, that means that one row is distinct when compared to nothing at all. That won't prevent...
May 14, 2009 at 2:25 pm
Use row_number(). You can order it by whatever you want, in a sub-query, then filter the way you want in the outer query.
Like this:
;with CTE as
(select GroupNumber, SubGroup,
row_number()...
May 14, 2009 at 2:21 pm
I created a test table:
set nocount on;
go
create table dbo.MyTable (
SSN char(9),
ID uniqueidentifier not null default(newsequentialid()) primary key);
go
insert into dbo.MyTable (SSN)
select top 5000000 null
from dbo.Numbers N1
cross join dbo.Numbers N2;
Then, using the...
May 14, 2009 at 2:16 pm
RBarryYoung (5/14/2009)
GSquared (5/14/2009)
...
This will generate 5-million unique fake SSNs.
set nocount on;
create table...
May 14, 2009 at 2:05 pm
If you base it on time, if you do the query too fast, you'll end up with duplicate values.
On updating it into the primary table, does that have an ID...
May 14, 2009 at 1:39 pm
I guess I'm not clear on what you're using the row number for. I see you limiting it to the first row, but I'm not sure what you're trying...
May 14, 2009 at 1:10 pm
Viewing 15 posts - 9,511 through 9,525 (of 14,953 total)