Viewing 15 posts - 181 through 195 (of 314 total)
Instead of creating database for every user(which sound so absurd) you can create views for every user and grant permissions on the view. If you have multiple databases then how...
September 13, 2006 at 7:01 am
Vandy..I don't see anything wrong in the query but I need one clarification. Is the credit and debit stored as postive value in the database (with another column being an...
September 13, 2006 at 6:47 am
Like you said it was not ordering by sid but was ordering by dbid but was dsiplaying dbid as sid (as is optional)
September 13, 2006 at 6:39 am
Assuming that the work week is Monday to Sunday here is how you can do it.
Declare @date1 datetime
set @date1 ='9/3/2006'
SET DATEFIRST 1
select @date1 as date1,DateAdd(d,-1 * DatePart(dw,@date1)+1,@date1) as WeekBegin
SET DATEFIRST 7
Changing...
September 12, 2006 at 10:46 pm
1.run DBCC OPenTran to see if any open tranasctions are there
2.Change Recover Model to "simple"
3.Do a complete backup.
4.Run DBCC ShrinkDatabase(DBName,10)
5.Change Recover Model to "full"
6.Do a complete backup.
7.Use the backup file...
September 12, 2006 at 7:34 pm
Try this:
Update _FinalTrans set LargestTicket = B.LargestTicket
from ( Select Acct, MAX(TransAmt) as LargestTicket
FROM _FinalTrans
GROUP BY AcctNo ) B where _FinalTrans.Acct = B.Acct
September 12, 2006 at 4:08 pm
Hope this helps:
Select Auction.AuctionRefID,AuctionRefID.AuctionPrice,
Customer.CustomerName,Products.ProductName
from Auction INNER JOIN
(
select AuctionRefID,max(AuctionPrice) as MaxPrice,min(AuctionID) as MinAuctionID
from Auction
Group by AuctionRefID ) WinningBid on Auction.AuctionRefID = WinningBid.AuctionRefID
and Auction.AuctionID = WinningBid.MinAuctionID
INNER JOIN Customer ON Auction.CustomerID...
September 12, 2006 at 4:05 pm
If your database is huge the backup and restore is going to take some time.But the same is the case of "snapshot" Replication. DTS is not the way to do...
September 12, 2006 at 1:38 pm
DR is based on your requirements and the expectation by the end users on How much data loss can your users tolerate and how long can the wait.
To begin with...
September 12, 2006 at 1:33 pm
If this process needs to work it should keep running every X minutes. But the problem is then you need to schedule a job that keeps running and sends email....
September 12, 2006 at 11:14 am
Do you have trouble connecting to SQL Server with your "Machine Name"?
September 12, 2006 at 9:45 am
My guess is if you have a dot in the name SQL will assume it to be Owner.tableName instead of treating the table "Daily_transactions.hist" as table Name.
Thanks
Sreejith
September 12, 2006 at 9:44 am
SQL BOL(Books Online) has everything u have asked for.
Thanks
Sreejith
September 12, 2006 at 8:41 am
Just an FYI, keep in mind about what SQL considers a week. You can do that by SELECT @@DATEFIRST. Default is Sunday so if your week starts on Monday then...
September 12, 2006 at 8:36 am
Have u looked at query execution plan? That should point you in the right direction.Do you have Index on bloodType?
September 12, 2006 at 4:02 am
Viewing 15 posts - 181 through 195 (of 314 total)