Viewing 15 posts - 4,156 through 4,170 (of 5,103 total)
suppose you want to run your replace on a TABLE.
Are you going to run your loop on every record ?
wouldn't it be better and SET BASED to create the replace( replace...
February 25, 2005 at 2:24 pm
if you follow the table route probably generating the sql dynamically is the fastest way
HTH
February 25, 2005 at 2:00 pm
Have a look at this
http://support.microsoft.com/default.aspx?scid=kb;en-us;299410
http://www.microsoft.com/technet/scriptcenter/scripts/ad/computer/default.mspx
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/distributed_query.asp
February 25, 2005 at 1:20 pm
It was just a missing parenthesis, sorry. Look again
February 25, 2005 at 12:34 pm
Just a missing parenthesis ![]()
SELECT SUM(Order_details.OrderPrice) AS OrderTotal,
MIN(Products.Manufacturer + ' ' + Products.ProductName) AS ProductNameFull2
FROM Order_details INNER JOIN
Orders ON Order_details.LinkToOrders = Orders.OrderID INNER...
February 25, 2005 at 12:32 pm
manojkanoi, I just posted the answer in a different thread that you started:
http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=8&messageid=164127
February 25, 2005 at 12:27 pm
Change
HAVING to a WHERE Clause!
Like
SELECT SUM(Order_details.OrderPrice) AS OrderTotal,
MIN(Products.Manufacturer + ' ' + Products.ProductName) AS ProductNameFull2
FROM Order_details INNER JOIN
Orders ON Order_details.LinkToOrders = Orders.OrderID INNER JOIN
Products ON Order_details.LinkToProducts = Products.SKUCode
WHERE...
February 25, 2005 at 12:19 pm
February 25, 2005 at 12:05 pm
Think about it this way (replace 'delete' for 'update' if necessary).
If you delete a Room you will have to delete an Employee and from there you delete the device OR...
February 25, 2005 at 12:03 pm
Tim,
This is a divide and conquer case. As a guidance you can take a look at the following code
Create table #TDups( Person_Id int,
Role varchar(50),
Dte datetime,
...
February 25, 2005 at 11:43 am
My approach to that is to use a Job but some others prefer DMO have alook at this thread for a DMO example
HTH
February 25, 2005 at 8:04 am
Adam,
In 'details' type of tables I usually implement an Identity field and all is good ordering by the Identity value but the User wants to see 1,2,3... not 345,456,585, on...
February 24, 2005 at 11:50 am
I have done A LOT of ADP work in the past and It is intended as a Client Side in a Client/Server enviroment (You will need a copy at each client...
February 24, 2005 at 9:17 am
2 questions:
- why are you opening a transaction when you read?
- what is the error message ?
February 24, 2005 at 7:44 am
Viewing 15 posts - 4,156 through 4,170 (of 5,103 total)