Viewing 15 posts - 271 through 285 (of 1,156 total)
Right-click the database --> reports --> standard reports --> disk usage by table
March 18, 2008 at 9:10 am
Good thought - but grouping by Commissiontype will now go back to putting the gross and the net on separate lines. How about...
SELECT TransactionID,
...
March 18, 2008 at 9:07 am
You can also right click the database in SSMS, choose Reports, and look for one that matches your needs. There are a number of standard reports that might help.
These reports...
March 18, 2008 at 8:58 am
Another solution, very similar to Matt's except this one filter to only get the records that have a gross or net = G or N.
SELECT TransactionID,
...
March 18, 2008 at 8:53 am
Something like this should help.
CREATE TABLE #temp (
table_name sysname ,
row_count int,
...
March 18, 2008 at 8:35 am
Yeah. I just found out about it a few weeks ago :). It has the equivalent options to Tasks --> generate scripts.
March 18, 2008 at 8:19 am
hi,
plz check this query and find out y its not running .where is the fault
select 'my details'=addressline1 +or+'city' from person.address
This entire statement is wrong.
I believe you want something...
March 18, 2008 at 7:25 am
You need to use the count aggregation with a case statement.
declare @t table(
SID int identity(1,1),
SDate DATETIME,
FID int,
PID int,
PNO int,
TypeCode int
)
insert into @t (SDate,FID,PID,PNO,TypeCode)
select '01/03/08', 1,...
March 18, 2008 at 7:19 am
Triggers are supposed to be transparent. If your goal is to determine what DML action occured and base your code logic on what happened, I would suggest that you...
March 18, 2008 at 6:59 am
What percentage of the total number of records is 12 months? This will allow me to better determine how to delete the data.
You have plenty of options here. You...
March 17, 2008 at 10:16 pm
No real reason other than separating the logic so that it was obvious - yep, they could be in one select statement
Cool. I was just curious. You...
March 17, 2008 at 9:47 pm
Got the above from this author. Have to give credit where it is due 🙂
http://www.sqlservercentral.com/scripts/Administration/61766/
March 17, 2008 at 9:31 pm
You can query sysobjects.
SELECT o.name AS [Table Name], i.rowcnt AS [Row Count]
FROM sysobjects o, sysindexes i
WHERE i.id = o.id
AND indid IN(0,1)
AND xtype = 'u'
AND o.name <> 'sysdiagrams'
AND o.name =...
March 17, 2008 at 9:30 pm
Happycat59,
Just curious why you chose to do a subquery with a union all when you have the same group by in both queries. You could have done something like...
March 17, 2008 at 9:22 pm
Well for a lack of better terms you messed your new instance up. You have to put the SQL 2005 install disk in and rebuild the system databases.
This link...
March 17, 2008 at 8:17 pm
Viewing 15 posts - 271 through 285 (of 1,156 total)